3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $alpha = range('A', 'Z'); $ascii = array_map(function($_) { return $_ + (1 << 1 << 1 << 1 << 1 << 1 << 1); }, range(1, 26)); $alpha_vars = array_map(function($_) { return "$$_"; }, $alpha); $ascii_var_list = join(',', $alpha_vars); ("list($ascii_var_list) = \$ascii;"); $sp = 32; $_='_'; $ss='ss'; //$hb=$_.$ss.$_.$ss.$_.$ss.$_.$ss.$_.$ss.$_.$ss.$_.$ss.$_.$ss.$_.$ss.$_.$ss.$_.$ss.$_. //$ss.$_.$ss.$_.$ss.$_.$ss.$_.$ss.$_.$ss.$_.$ss.$_.$ss.$_.$ss.$_.$ss.$_.$ss.$_.$ss.$_.$ss; // I think I just heard the PHP parser cry. ## We're almost done. Just gotta decrypt my data, prepare my formatting, yadda yadda... $decrypted_data = str_rot13("UNCCL OVEGUQNL WBUA CVYR"); echo "1"; $hb=""; for($hb=""; count($hb)/3 < count($decrypted_data); $hb.=$_.$ss); $john_purrier_rocks = str_split($decrypted_data); $brandon_philips_kicks_ass = array_map(function($_) { return ($_ === ' ') ? '$sp' : "\$$_"; }, $john_purrier_rocks); $rabble_makes_me_moist = join(',', $brandon_philips_kicks_ass); ("\$rabble_makes_me_moist = array($rabble_makes_me_moist);"); $appfog_owns = array_map('chr', $rabble_makes_me_moist); array_unshift($appfog_owns, str_replace('_s', '%', $hb)); $happy_birthday = call_user_func_array('sprintf', $appfog_owns); echo $happy_birthday; ?>
Output for 7.0.0 - 7.1.0
1 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 31457288 bytes) in /in/626Rf on line 26
Process exited with code 255.
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
1
Process exited with code 137.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /in/626Rf on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION, expecting ')' in /in/626Rf on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/626Rf on line 5
Process exited with code 255.