3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define("Hi", "Hello"); echo Hi; $cars = array("BMW", "Ferrai", "Audi"); echo $count(cars); foreach($cars as $value) { echo "$value <br>"; } function add($x = 10 , $y = 15) { $z = $x+$y; return $z; } echo "4 + 3".add(4,3); echo add(); ?>
based on odn3f
Output for 7.0.0 - 7.2.0
Hello Notice: Undefined variable: count in /in/PGH3B on line 6 Fatal error: Uncaught Error: Function name must be a string in /in/PGH3B:6 Stack trace: #0 {main} thrown in /in/PGH3B on line 6
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Hello Notice: Undefined variable: count in /in/PGH3B on line 6 Fatal error: Function name must be a string in /in/PGH3B on line 6
Process exited with code 255.