serialize vs json_encode in php
Based on the benchmark results , it appears that json_encode is slightly faster than the serialize method for serializing data in PHP.
#php#phpbench#phpbenchmarks
En fait, je me rends compte qu'en #PHP, on utilise encore beaucoup trop les tableaux :)
Comme on me faisait remarquer, avec l'opérateur de coalesce "??", on devrait avoir moins besoin de faire du isset/array_key_exists
Et pour être 100% sur github.com/lyrixx/php-bench/…
Même constant.
Pour info le \ change *complétement* les OPCode sur *certaines* fonction. ce n'est pas juste un raccourci pour trouver la "vraie" fonction