3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class a { private $prop; public function __construct() { $this->prop = new a(); } } new a();

Abusive script

This script was stopped while abusing our resources

Output for 7.0.32 - 7.1.12, 7.1.14 - 7.1.16, 7.1.18 - 7.2.3, 7.2.5 - 7.2.12
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 4096 bytes) in /in/p07m1 on line 7
Process exited with code 255.
Output for 7.1.13, 7.1.17, 7.2.4

Process exited with code 137.
Output for 5.6.38
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 16777216 bytes) in /in/p07m1 on line 7
Process exited with code 255.