3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $zeroInt = 0; $zeroFloat = 0.0; var_dump($zeroInt); var_dump($zeroFloat); var_dump($zeroIntExported = var_export($zeroInt, true)); var_dump($zeroFloatExported = var_export($zeroFloat, true)); eval('$zeroIntDeserialized = '.$zeroIntExported.';'); eval('$zeroFloatDeserialized = '.$zeroFloatExported.';'); var_dump($zeroIntDeserialized); var_dump($zeroFloatDeserialized);
based on 1DrWI
Output for 7.0.2 - 7.2.0
int(0) float(0) string(1) "0" string(3) "0.0" int(0) float(0)
Output for 4.3.0 - 7.0.1
int(0) float(0) string(1) "0" string(1) "0" int(0) int(0)