3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php trait T1 { function a1() { $this->a2(); } } class A { protected function a2() { return $this->a1(); } } class B extends A { use T1; } $a = new B; echo $a->a1();
based on TNcVA
Output for 7.1.0 - 7.1.7, 7.2.0
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 262144 bytes) in /in/INmeE on line 5
Process exited with code 255.
Output for 7.1.10

Process exited with code 137.
Output for 7.0.0 - 7.0.20
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 262144 bytes) in /in/INmeE on line 13
Process exited with code 255.
Output for 5.6.8 - 5.6.21
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 130968 bytes) in /in/INmeE on line 5
Process exited with code 255.
Output for 5.4.9 - 5.5.35
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 130968 bytes) in /in/INmeE on line 13
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected T_STRING in /in/INmeE on line 3
Process exited with code 255.