3v4l.org

run code in 300+ PHP versions simultaneously
<?php $abc = function($code){ $function_A = function($code){ return $code; }; $function_B = function($code) use (&$function_A) { global $function_A; $text = $function_A($code); return $text; }; $function_B($code); }; echo $abc('abc');
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Value of type null is not callable in /in/JN7pl:11 Stack trace: #0 /in/JN7pl(15): {closure}('abc') #1 /in/JN7pl(19): {closure}('abc') #2 {main} thrown in /in/JN7pl on line 11
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:
36.03 ms | 401 KiB | 8 Q