3v4l.org

run code in 300+ PHP versions simultaneously
<?php register_shutdown_function(function () { $error = error_get_last(); if ($error !== null) { throw new ErrorException($error['message'], 0, $error['type'], $error['file'], $error['line']); } }); try { ini_set('memory_limit',1); $a = range(1,100000); } catch (Throwable $e) { echo "Caught: ".$e; }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Failed to set memory limit to 1 bytes (Current memory usage is 2097152 bytes) in /in/AQWMC on line 12 Fatal error: Uncaught ErrorException: Failed to set memory limit to 1 bytes (Current memory usage is 2097152 bytes) in /in/AQWMC:12 Stack trace: #0 [internal function]: {closure}() #1 {main} thrown in /in/AQWMC on line 12
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:
60.04 ms | 401 KiB | 8 Q