3v4l.org

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