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(23); echo $b;
based on MaD30
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: b in /in/1lceh on line 6 Fatal error: Uncaught Error: Function name must be a string in /in/1lceh:6 Stack trace: #0 /in/1lceh(9): test(23) #1 {main} thrown in /in/1lceh on line 6
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Notice: Undefined variable: b in /in/1lceh on line 6 Fatal error: Function name must be a string in /in/1lceh on line 6
Process exited with code 255.