3v4l.org

run code in 300+ PHP versions simultaneously
<?php function println($s) { echo $s."\n"; } function try_switch($a) { switch ($a) { case 'Case 1': println('In 1'); break; case 0: println('In 0'); break; default: println('In default'); break; } } try_switch(true); // Will go into the case 'Case 1', because 'Case 1' == true try_switch(0); // Will go into the case 'Case 1', because 'Case 1' == 0 try_switch(false); // Will go into case 0, because 0 == false
Output for git.master, git.master_jit, rfc.property-hooks
In 1 In 0 In 0

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