3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('memory_limit', '2K'); //$y = str_repeat("x", 1000); set_error_handler(function() { //global $y; //$y = ''; print 'Ahh, there is a fatal'; //print memory_get_usage(); }); register_shutdown_function(function() { //print memory_get_usage(); print 'Shutdown'; }); //print memory_get_usage(); $x = str_repeat("x", 2*1024*1024);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Failed to set memory limit to 2048 bytes (Current memory usage is 2097152 bytes) in /in/lGsK4 on line 2 Shutdown

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:
55.41 ms | 401 KiB | 8 Q