3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function truc($source){ $strlen = strlen($source); $bin=''; for($i=0;$i<$strlen;$i=$i+2){ $bin .= chr(hexdec(substr($source,$i,2))); } return $bin; } $app_secret = "257041d0215ab7db7b3f708eb4e7a443"; $encrypted_url ='15a4949e01d827bb6cbad380e035ddc875b7bc1981773faa0b4e31ff2940147f57a093b0e1879d368b87989287a0053599b35f286217ae546b3733096d905966fc80bfa755d6019e841746f8892551abae7503653ef4da342cbbac7bafaff0c965a7b6f87b778e6dcb25073bcc54a4bda6cf2f1d1183713ee423ac46eef4b0448c9339c98f68ec2abbe826fb663117ca9d8cebdbcf3f2e6e72c9e004da866bc645d5778f0b19e97b379152a2bb178119b5b3612026bf7e92974c5aa84462edeefaae37ad9f5a80c33d68f18a11b7745ee36388cbbb50468ac3fc5fcd30474c034d0d10c2ae1c6a62cef1c4941f10f90e283c3e7a4851b5b37164810d98e8070989f80f512973b193b90df55459bf04e5'; $encrypted_url = truc($encrypted_url); $url = mcrypt_ecb(MCRYPT_RIJNDAEL_128,$app_secret,$encrypted_url,MCRYPT_DECRYPT); echo $url; ?>
based on 6APUk
Output for 7.0.0 - 7.2.6
Fatal error: Uncaught Error: Call to undefined function mcrypt_ecb() in /in/i0mhg:17 Stack trace: #0 {main} thrown in /in/i0mhg on line 17
Process exited with code 255.
Output for 5.0.0 - 5.3.29, 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_ecb() in /in/i0mhg on line 17
Process exited with code 255.
Output for 5.5.24 - 5.5.34, 5.6.7 - 5.6.20
Deprecated: Function mcrypt_ecb() is deprecated in /in/i0mhg on line 17 http://cdnt-proxy-5.deezer.com/api/1/f3b99b9ff009e3cb4cc16f2ff19fccb9e2d78b48896abdd25dc5cfb6a48c559e2f5a0bea21e1d6dbd9c8f34c691e12dc83cac650c014d41f69d381b0ce749ff588be12593d1ed321bc3d6c16f5e63f50.mp3?hash=0a9ef63007c5226b91a53&stime=20150710100603&etime=20150710103603
Output for 5.4.0 - 5.4.45
http://cdnt-proxy-5.deezer.com/api/1/f3b99b9ff009e3cb4cc16f2ff19fccb9e2d78b48896abdd25dc5cfb6a48c559e2f5a0bea21e1d6dbd9c8f34c691e12dc83cac650c014d41f69d381b0ce749ff588be12593d1ed321bc3d6c16f5e63f50.mp3?hash=0a9ef63007c5226b91a53&stime=20150710100603&etime=20150710103603
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: mcrypt_ecb() in /in/i0mhg on line 17
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: mcrypt_ecb() in /in/i0mhg on line 17
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: mcrypt_ecb() in /in/i0mhg on line 17