3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('052' => 'nanana'); $b = array('042' => 'wayne'); $c = array(42 => 'batman'); var_dump($a + $c);
Output for 4.3.0 - 5.4.42, 5.4.44 - 7.2.0
array(2) { ["052"]=> string(6) "nanana" [42]=> string(6) "batman" }
Output for 5.4.43

Process exited with code 137.