3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { $data = str_repeat('.', 1000000); echo strlen(serialize($data)); //echo strlen(serialize(str_repeat('.', 1000000))); //$data = serialize(str_repeat('.', 1000000)); //echo strlen($data); } test(); echo PHP_EOL, memory_get_peak_usage(), PHP_EOL;
Output for git.master
1000013 2394064
Output for git.master_jit
1000013 2353472
Output for rfc.property-hooks
1000013 2394032

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
48.07 ms | 401 KiB | 8 Q