3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array_one = array('key1' => 'value1'); $array_two = array('key1' => 'value1'); var_dump($array_one === $array_two); foreach ($array_two['key2'] as &$entry) { } var_dump($array_one === $array_two); var_dump($array_two);
Output for git.master, git.master_jit, rfc.property-hooks
bool(true) Warning: foreach() argument must be of type array|object, null given in /in/OAqGa on line 8 bool(false) array(2) { ["key1"]=> string(6) "value1" ["key2"]=> NULL }

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