3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $zero = 0.0; echo gettype($zero) . PHP_EOL; echo $zero . PHP_EOL; echo gettype($zero) . PHP_EOL;
based on W1EZO
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.6.30, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.2.6
double 0 double
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/cfaa3 on line 3 doublePHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/cfaa3 on line 4 0PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/cfaa3 on line 5 doublePHP_EOL