3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class o { function __set($name,$val) { $name= 'set_'.$name; if(method_exists($this,$name)) $this->{$name}($val); else $this->{$name}= $val; // causing infinite recursion } } $o= new o; $o->some_prop= 10; // infinite recursion occurs
based on BAEqo
Output for 7.0.0 - 7.1.0
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 24576 bytes) in /in/EgfMa on line 6
Process exited with code 255.
Output for 5.6.7 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 15886 bytes) in /in/EgfMa on line 7
Process exited with code 255.
Output for 5.4.0 - 5.5.35
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 15906 bytes) in /in/EgfMa on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 15874 bytes) in /in/EgfMa on line 7
Process exited with code 255.
Output for 5.2.2 - 5.2.17
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 15998 bytes) in /in/EgfMa on line 7
Process exited with code 255.
Output for 5.2.1
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 16002 bytes) in /in/EgfMa on line 7
Process exited with code 255.
Output for 5.1.1 - 5.2.0

Process exited with code 139.
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/EgfMa on line 15
Process exited with code 255.
Output for 4.3.0 - 5.0.5