3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fucked = new stdClass(); $fucked->{"some 1"} = "hey 1"; $fucked->{"some 2"} = "hey 2"; $fucked->{"some 3"} = "hey 3"; $fucked->{"some 4"} = ""; $fucked->{"some 5"} = "hey 5"; $fucked->{"some 6"} = "hey 6"; $values = []; for($i = 1; $i <= 6; ++$i) { $val = $fucked->{"some $i"}; if($val) { $values[] = $val; } } var_export($values);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => 'hey 1', 1 => 'hey 2', 2 => 'hey 3', 3 => 'hey 5', 4 => 'hey 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:
53.26 ms | 401 KiB | 8 Q