3v4l.org

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