3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dmcryptText = "g8GiNK2+2WFwYn1FO5TVUNk16bJXI0F0VtcYLgUY5zTUak7qHvn68CWOLvhhvSwp1Th4gGda9qtDpTUoAduf/KscDfI1kZtNavX5U8zH2Su5FL1qOfh30w=="; $dmcryptText=str_replace(' ','+',base64_decode($dmcryptText)); $key = "92EMXB0LYVHH6MG4JW7245D6"; $m = mcrypt_ecb( MCRYPT_3DES , $key , $dmcryptText, MCRYPT_DECRYPT); var_dump($m); echo '---------'; $arr_resp = explode('&', $m); $cod = explode('=', $arr_resp[0]); $cod = $cod[1]; var_dump($arr_resp);
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught Error: Call to undefined function mcrypt_ecb() in /in/ElEJ1:6 Stack trace: #0 {main} thrown in /in/ElEJ1 on line 6
Process exited with code 255.
Output for 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_ecb() in /in/ElEJ1 on line 6
Process exited with code 255.
Output for 5.5.24 - 5.5.34, 5.6.8 - 5.6.20
Deprecated: Function mcrypt_ecb() is deprecated in /in/ElEJ1 on line 6 string(88) "codRes=9999&mensaje=No se pudo realizar el cobro a la transaccion :TIMEOUT&orderId=103" ---------array(3) { [0]=> string(11) "codRes=9999" [1]=> string(62) "mensaje=No se pudo realizar el cobro a la transaccion :TIMEOUT" [2]=> string(13) "orderId=103" }

preferences:
174.6 ms | 402 KiB | 183 Q