3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_export([-0.0,1.0]); echo "\n"; var_dump([-0.0,1.0]); echo "\n";
based on Whcsr
Output for 7.0.2 - 7.2.0
array ( 0 => -0.0, 1 => 1.0, ) array(2) { [0]=> float(-0) [1]=> float(1) }
Output for 5.4.11 - 7.0.1
array ( 0 => 0, 1 => 1, ) array(2) { [0]=> float(0) [1]=> float(1) }
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/nC3tC on line 3
Process exited with code 255.