3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<pre><?php class A { function __call($f, $a) { echo "Called $f\n"; } } $a = new A(); $a->if(); $a->exit(); $a->throw();
Output for 5.0.0 - 7.1.0
<pre>Called if Called exit Called throw
Output for 4.4.5 - 4.4.9
<pre> Fatal error: Call to undefined method: a->if() in /in/HTnWN on line 10
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<pre> Fatal error: Call to undefined function: if() in /in/HTnWN on line 10
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<pre> Fatal error: Call to undefined function: if() in /in/HTnWN on line 10