3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isEqual($value, &$a = null, &$b = null) { $a = rand(1,3); $b = rand(1,3); return $a == $b; } $force = true; for($i=0; $i<10; $i++) { if ($isEqual(null, $a, $b) || $force) { echo $i . PHP_EOL; } }
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.25, 7.3.0 - 7.3.12, 7.4.0
Notice: Undefined variable: isEqual in /in/DtjR7 on line 12 Fatal error: Uncaught Error: Function name must be a string in /in/DtjR7:12 Stack trace: #0 {main} thrown in /in/DtjR7 on line 12
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Notice: Undefined variable: isEqual in /in/DtjR7 on line 12 Fatal error: Function name must be a string in /in/DtjR7 on line 12
Process exited with code 255.

preferences:
173.52 ms | 402 KiB | 193 Q