3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array("", 0, array(), "1", "0"); foreach ($a as $b) { $c = (bool)$b; echo "value = 1" . print_r($b) . "2\n"; echo " result = 3" . print_r($c) . "4\n"; echo "5\n\n6"; }
Output for git.master, git.master_jit, rfc.property-hooks
value = 112 result = 314 5 60value = 112 result = 314 5 6Array ( ) value = 112 result = 314 5 61value = 112 1 result = 314 5 60value = 112 result = 314 5 6

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