3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test($n) { $r = $n-$n; $b ($r>0?true:false); return $b; } $b = test($a); echo $b;
based on 6W6C5
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: a in /in/MaD30 on line 9 Notice: Undefined variable: b in /in/MaD30 on line 6 Fatal error: Uncaught Error: Function name must be a string in /in/MaD30:6 Stack trace: #0 /in/MaD30(9): test(NULL) #1 {main} thrown in /in/MaD30 on line 6
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Notice: Undefined variable: a in /in/MaD30 on line 9 Notice: Undefined variable: b in /in/MaD30 on line 6 Fatal error: Function name must be a string in /in/MaD30 on line 6
Process exited with code 255.