3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = 'foo'; $c1 = eval('return (3 == $x);'); $c2 = eval('return ((((3 == $x))));'); $x1 = $c1(); $x2 = $c2(); $y1 = (3 == $x); $y2 = (((3 == $x)));
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Function name must be a string in /in/JZChW:8 Stack trace: #0 {main} thrown in /in/JZChW on line 8
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Fatal error: Function name must be a string in /in/JZChW on line 8
Process exited with code 255.