3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(-0.0,1.0,0.1); echo "\n"; var_export([-0.0,1.0,0.1]); echo "\n";
based on TZGQQ
Output for 7.1.0 - 7.2.0
float(-0) float(1) float(0.1) array ( 0 => -0.0, 1 => 1.0, 2 => 0.1, )
Output for 7.0.20
float(-0) float(1) float(0.1) array ( 0 => -0.0, 1 => 1.0, 2 => 0.10000000000000001, )
Output for 7.0.2 - 7.0.6
float(-0) float(1) float(0.1) array ( 0 => -0.0, 1 => 1.0, 2 => 0.100000000000000005551115, )
Output for 5.4.22 - 5.6.21, 7.0.0 - 7.0.1
float(0) float(1) float(0.1) array ( 0 => 0, 1 => 1, 2 => 0.100000000000000005551115, )
Output for 5.6.28
float(0) float(1) float(0.1) array ( 0 => 0, 1 => 1, 2 => 0.10000000000000001, )
Output for 5.4.11 - 5.4.21
float(0) float(1) float(0.1) array ( 0 => 0, 1 => 1, 2 => 0.1, )
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/scsLm on line 3
Process exited with code 255.