3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 0; $b = 2000000000; $k = 40; echo count(array_filter(range($a, $b), function ($i) use ($k) { return $i % $k === 0; }));
Output for git.master, git.master_jit
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 34359738376 bytes) in /in/GckMJ on line 8
Process exited with code 255.
Output for rfc.property-hooks
Fatal error: Uncaught ValueError: The supplied range exceeds the maximum array size: start=0 end=2000000000 in /in/GckMJ:8 Stack trace: #0 /in/GckMJ(8): range(0, 2000000000) #1 {main} thrown in /in/GckMJ on line 8
Process exited with code 255.

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:
46.28 ms | 401 KiB | 8 Q