3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ function __construct(){ register_shutdown_function(array(__CLASS__, 'handle_shutdown')); echo "X\n"; while(1){ $t[]=new B(); } // echo "Y\n"; } static public function handle_shutdown(){ echo "B\n"; $b=new B(); $b=null; } } class B{ } $a=new A(); ?>
Output for git.master, rfc.property-hooks
X Fatal error: Out of memory (allocated 35655680 bytes) (tried to allocate 8388608 bytes) in /in/rtNlK on line 8 B Fatal error: Out of memory (allocated 35655680 bytes) (tried to allocate 8388608 bytes) in /in/rtNlK on line 14 mmap() failed: [12] Cannot allocate memory mmap() failed: [12] Cannot allocate memory mmap() failed: [12] Cannot allocate memory mmap() failed: [12] Cannot allocate memory
Process exited with code 255.
Output for git.master_jit
X Fatal error: Out of memory (allocated 18878464 bytes) (tried to allocate 4194304 bytes) in /in/rtNlK on line 8 B Fatal error: Out of memory (allocated 18878464 bytes) (tried to allocate 4194304 bytes) in /in/rtNlK on line 14 mmap() failed: [12] Cannot allocate memory mmap() failed: [12] Cannot allocate memory mmap() failed: [12] Cannot allocate memory mmap() failed: [12] Cannot allocate memory
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
41.41 ms | 401 KiB | 8 Q