3v4l.org

run code in 300+ PHP versions simultaneously
<?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; $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 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
1 Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, string given in /in/is1uI:35 Stack trace: #0 /in/is1uI(35): array_map('chr', '$H,$A,$P,$P,$Y,...') #1 {main} thrown in /in/is1uI on line 35
Process exited with code 255.
Output for 7.3.12 - 7.3.33, 7.4.0 - 7.4.33
1 Warning: array_map(): Expected parameter 2 to be an array, string given in /in/is1uI on line 35 Warning: array_unshift() expects parameter 1 to be array, null given in /in/is1uI on line 36 Warning: call_user_func_array() expects parameter 2 to be array, null given in /in/is1uI on line 37
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0 - 7.2.33
1 Warning: array_map(): Argument #2 should be an array in /in/is1uI on line 35 Warning: array_unshift() expects parameter 1 to be array, null given in /in/is1uI on line 36 Warning: call_user_func_array() expects parameter 2 to be array, null given in /in/is1uI on line 37
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /in/is1uI on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION, expecting ')' in /in/is1uI on line 6
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/is1uI on line 6
Process exited with code 255.

preferences:
241.61 ms | 401 KiB | 354 Q