3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function isEqual($value, &$a = null, &$b = null) { $a = $value; $b = 2; return $a == $b; } $force = true; for($i=0; $i<3; $i++) { if ($isEqual($i, $a, $b) || $force) { echo $i . PHP_EOL; } }
based on DtjR7
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: isEqual in /in/8OiIu on line 12 Fatal error: Uncaught Error: Function name must be a string in /in/8OiIu:12 Stack trace: #0 {main} thrown in /in/8OiIu on line 12
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Notice: Undefined variable: isEqual in /in/8OiIu on line 12 Fatal error: Function name must be a string in /in/8OiIu on line 12
Process exited with code 255.