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 QQmK1
Output for 7.0.2 - 7.2.0
float(-0) float(1) array ( 0 => -0.0, 1 => 1.0, )
Output for 5.4.11 - 7.0.1
float(0) float(1) array ( 0 => 0, 1 => 1, )
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/TZGQQ on line 3
Process exited with code 255.