3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump( array( "begin" => "begin", "foo" => 1, "foo" => 2, "middle" => "middle", "foo" => 3, "foo" => 4, "end" => "end", ) );
based on likkY
Output for 4.3.0 - 5.6.38, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.3.0rc3
array(4) { ["begin"]=> string(5) "begin" ["foo"]=> int(4) ["middle"]=> string(6) "middle" ["end"]=> string(3) "end" }