3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php global $🚀; $🚀 = 0; function 🤔($🏷, $🤔 = 0, \Closure $b = null) { global $🚀; echo str_repeat(' ', $🚀) . ($🤔 ? "" : "🚫 ") . $🏷 . PHP_EOL; $🚀 += 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); }); });
based on uU94b
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.3.0alpha1
🚫 Math 🚫 Addition One plus one equals two. 🚫 One plus one equals eleven. (This should fail.) 🚫 Subtraction One minus one equals zero. Ten minus one equal nine.