3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo_exported = var_export(array(2 => TRUE), TRUE); $foo_string = 'Array(2 => TRUE)'; $bar = array(); $baz = 'baz'; eval('$bar[$baz]["exported"] = $foo_exported;'); eval('$bar[$baz]["string"] = $foo_string;'); print_r($bar); echo $foo_exported;
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [baz] => Array ( [exported] => array ( 2 => true, ) [string] => Array(2 => TRUE) ) ) array ( 2 => true, )

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