3v4l.org

run code in 300+ PHP versions simultaneously
<?php class abc { private $abc; public function abc() { $this->abc = range( 1, 10000000 ); } } $abc = new abc();
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.31, 7.4.3 - 7.4.33
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; abc has a deprecated constructor in /in/FKQ1l on line 2 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 536870920 bytes) in /in/FKQ1l on line 7
Process exited with code 255.
Output for 7.3.32 - 7.3.33
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 536870920 bytes) in /in/FKQ1l on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.25, 5.4.0 - 5.4.15
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/FKQ1l on line 7
Process exited with code 255.

preferences:
138.12 ms | 402 KiB | 183 Q