3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array("00.000","0","00000"); foreach($array as $value){ echo "value is $value \r\n"; if(empty($value)){ echo "empty\r\n"; }else{ echo "full\r\n"; } }
based on OYBQY
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: array in /in/8KncT on line 2 Fatal error: Uncaught Error: Function name must be a string in /in/8KncT:2 Stack trace: #0 {main} thrown in /in/8KncT on line 2
Process exited with code 255.
Output for 5.3.22 - 5.6.28
Notice: Undefined variable: array in /in/8KncT on line 2 Fatal error: Function name must be a string in /in/8KncT on line 2
Process exited with code 255.