3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface ActionInterface { public function process(); } class Action implements ActionInterface { public function process() { if (static::class !== self::class) { $result = static::process(1, 2, 3); } else { $this->a = 1; } } } class SuperAction extends Action { public function process($a = null, $b = null, $c = null) { $result = parent::process(); var_dump($a, $b, $c); } } $c = new SuperAction(); $c->process();
Output for 7.1.10 - 7.2.0

Process exited with code 137.
Output for 7.1.0 - 7.1.7
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 262144 bytes) in /in/DiAIb on line 19
Process exited with code 255.
Output for 7.0.0 - 7.0.20
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 262144 bytes) in /in/DiAIb on line 10
Process exited with code 255.
Output for 5.6.8 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 130968 bytes) in /in/DiAIb on line 10
Process exited with code 255.
Output for 5.5.24 - 5.5.35
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/DiAIb on line 10
Process exited with code 255.
Output for 5.4.12 - 5.4.45
Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /in/DiAIb on line 9
Process exited with code 255.
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or '$' in /in/DiAIb on line 9
Process exited with code 255.