3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { $a = 1; if ($a === 1) { $a = rand(0,1) ? 1 : 0; } if ($a === 1) { var_dump("hit"); } } foo(); foo(); foo(); foo(); foo();
Output for git.master
string(3) "hit"
Output for git.master_jit
string(3) "hit" string(3) "hit" string(3) "hit" string(3) "hit"

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:
33.56 ms | 406 KiB | 5 Q