3v4l.org

run code in 300+ PHP versions simultaneously
<?php global $🚀; $🚀 = 0; function 🤔($🏷, $🤔 = 0, \Closure $b = null) { global $🚀; echo str_repeat(' ', $🚀) + ($🤔 ? "" : "🚫 ") . $🏷; $🚀 += 4; if ($b !== null) $b(); $🚀 -= 4; } 🤔("Math", null, function(){ 🤔("Addition", null, function(){ 🤔("One plus one equals two.", 1+1 == 2); 🤔("One plus one equals eleven. (This should fail.)", 1+1 == 11); }); 🤔("Subtraction", null, function(){ 🤔("One minus one equals zero.", 1-1 == 0); 🤔("Ten minus one equal nine.", 10-1 == 9); }); });
Output for git.master_jit, git.master, rfc.property-hooks
Fatal error: Uncaught TypeError: Unsupported operand types: string + string in /in/uU94b:9 Stack trace: #0 /in/uU94b(15): 🤔('Math', NULL, Object(Closure)) #1 {main} thrown in /in/uU94b on line 9
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:
31.4 ms | 401 KiB | 8 Q