3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "testse"; $key = "password"; //$key = $files[2]; function encrypt($plain) { global $key; $iv = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM); $res = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $plain, "cbc", $iv); $res = base64_encode($iv.$res); return $res; } function decrypt($txt) { global $key; $res = base64_decode($txt); $iv = substr($res, 0, 16); $res = substr($res, 16, strlen($res)-16); $res = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $res, "cbc", $iv); $res = str_replace("\x00", "", $res); return $res; } echo base64_decode(decrypt("ns9ETF/r2Rxe34CgI61GK6uKVuPGWnPf8mzC8yZNIjVaI3y/YTOHtFVygIl17YjxX3wFWATTB23QOOW/9cN7y27giu7xi3epzpkS2t6m7MRxzv2d+UG4ZBwEnI1+6I17BcLLDZHWgDHdKVvlXRZNVyAsQFP/zLsao32fY28ULoHQzXmw8oI7crIVTA46FBLvXl3fxqHTg4KUbd2vtoG5MTmupuLElv73mJ69KhFVMcvc57A2LIfKu09+9quu0wYt6HBX5GOMVPum/upUHLN8krT/drU5v7vlE6asx4+yq7WVgl0oLEr/264NkQvbazIoj9IKmT+69Yt8vbYhU6ABdhsQVS4jJDi1QsGkrkoZflJxR/3CT21KyXWrUZ5dmBm789f73hqkbAzSC9xEr1evyb6BZ0R4XYKalhf3Bj1eCd18nztXyiM8EokwktNvf7Mdp7eisNxv0ivQ7CQ/e1aPTlZng0jUQFUU97+Q109r660uGQ4SxDnvX6JGEKTBtvfq2TJnRpBvOVk5/Xyxux8vk4/Q5FyG8EsbO25A+gr5TUE8TwR83cDe4C6nIXLC+8hcz947Pzb73qbrScvYuOHLi6b1KB4nTQE546JqxkJ8QA4vxfvHjOv9MiyowHgyZK7CfBL2FBTg9xTZ1beEOAQFapnDy6QaXvrzDTJu7lLvbuKvlL66L6oYJ4xifmsJJ0hrRX1Ai8OUSC/Z9oxZx9sJmGA9XOEad27WAzQqTkpQUSg4FcEC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05GAUWnQmntn1D4z/gpjJvOz/G/jMXUOb/jwKKjV58DTP9nUpHJNeYF4vFCEFKvsWaZp6QrAfvpM9Iy2t//9hVTcWJHeNWJ5v+s6zM"))); ?>
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.8
Parse error: syntax error, unexpected ')', expecting ',' or ';' in /in/lbo7f on line 31
Process exited with code 255.
Output for hhvm-3.18.4 - 3.21.0
Fatal error: Uncaught Error: syntax error, unexpected ')', expecting ',' or ';' in /in/lbo7f:31 Stack trace: #0 {main}
Process exited with code 255.