3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $newKey = "c:\\windows\\system\\firewall32.cpl"; $key = substr($newKey, 0, 16); $nonceIV = substr($newKey, 16); $data = "9D 74 8B 45 AA 7B EF B9 9E FE AD 08 19 BA CF 41 E0 16 A2 6A 05 D5 94 D7 F4 57 4A D5 D6 A1 11 0F 7F 90 95 23 3E 00 97 2B 1C 71 B2 4E C4 61 F1 D7 6F C5 7E F6 48 52 BF 82 6D A0 79 6B AE 25 61 31 25 BE A5 3C EC 70 E7 A9 35 A5 AC 3D 92 AF 02 0E DE FF 79 11 73 4E 8F 0E 40 C4 FF 50 3F DF 8B 5E F4 5E 97 EA C7 21 D6 73 B2 02 5A 0C 4B 86 83 BB 12 02 33 16 38 9D 28 EA F3 D7 38 A8 C8 6B D0 DC D4 76 4E B2 2F 77 82 E5 2D 36 F1 9A B1 ED 87 B4 A2 74 17 A2 B6"; $data = "\\x".implode("\\x", explode(" ", $data)); $data = unpack("H*", $data); $decrypted = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $data, 'ctr', $nonceIV); var_dump($decrypted); var_dump($data);
based on ji0vf
Output for 7.0.6 - 7.2.6
Fatal error: Uncaught Error: Call to undefined function mcrypt_decrypt() in /in/9TIpb:9 Stack trace: #0 {main} thrown in /in/9TIpb on line 9
Process exited with code 255.
Output for 5.4.9 - 5.5.34, 5.6.8 - 5.6.20, 7.0.0 - 7.0.5
Warning: mcrypt_decrypt() expects parameter 3 to be string, array given in /in/9TIpb on line 9 NULL array(1) { [1]=> string(1192) "5c7839445c7837345c7838425c7834355c7841415c7837425c7845465c7842395c7839455c7846455c7841445c7830385c7831395c7842415c7843465c7834315c7845305c7831365c7841325c7836415c7830355c7844355c7839345c7844375c7846345c7835375c7834415c7844355c7844365c7841315c7831315c7830465c7837465c7839305c7839355c7832335c7833455c7830305c7839375c7832425c7831435c7837315c7842325c7834455c7843345c7836315c7846315c7844375c7836465c7843355c7837455c7846365c7834385c7835325c7842465c7838325c7836445c7841305c7837395c7836425c7841455c7832355c7836315c7833315c7832355c7842455c7841355c7833435c7845435c7837305c7845375c7841395c7833355c7841355c7841435c7833445c7839325c7841465c7830325c7830455c7844455c7846465c7837395c7831315c7837335c7834455c7838465c7830455c7834305c7843345c7846465c7835305c7833465c7844465c7838425c7835455c7846345c7835455c7839375c7845415c7843375c7832315c7844365c7837335c7842325c7830325c7835415c7830435c7834425c7838365c7838335c7842425c7831325c7830325c7833335c7831365c7833385c7839445c7832385c7845415c7846335c7844375c7833385c7841385c7843385c7836425c7844305c7844435c7844345c7837365c7834455c7842325c7832465c7837375c7838325c7845355c7832445c7833365c7846315c7839415c7842315c7845445c7838375c7842345c7841325c7837345c7831375c7841325c784236" }
Output for 5.3.19 - 5.3.29, 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_decrypt() in /in/9TIpb on line 9
Process exited with code 255.