3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php values = array( 0, -0, +0, '0', '-0', '+0', 1, -1, +1, '1', '-1', '+1', 0.0, -0.0, +0.0, '0.0', '-0.0', '+0.0', 1.0, -1.0, +1.0, '1.0', '-1.0', '+1.0', 1e10, '1e10', true, false, PHP_INT_MAX, ~PHP_INT_MAX ); foreach ($values as $value) { echo var_export($value, true), "\n"; }
Output for 5.3.0 - 5.4.26
Parse error: syntax error, unexpected '=' in /in/Ccn2W on line 3
Process exited with code 255.