3v4l.org

run code in 300+ PHP versions simultaneously
<?php $centesimas = 598322.3; var_dump(intval($centesimas)== $centesimas); $token = '9b81b2'; $key = 'CualquierCosa'; echo $descifrado = bin2hex(openssl_encrypt($token, "AES-128-ECB", $key, OPENSSL_RAW_DATA)); echo PHP_EOL; echo openssl_error_string(); $tokenBD = '6f79ca09cf1267f02bd6e9179e112a2d'; $tokenCifrado = hex2bin($tokenBD); $token = openssl_decrypt($tokenCifrado, "AES-128-ECB", $key, OPENSSL_RAW_DATA); echo openssl_error_string(); echo $tokenBD.PHP_EOL; echo $descifrado; var_dump($tokenBD == $descifrado);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.4.20.0100.01021.36
8.4.10.0360.01217.71
8.3.150.0000.00817.19
8.3.140.0350.01216.55
8.3.130.0360.00616.55
8.3.120.0270.00816.41
8.3.110.0280.00816.51
8.3.100.0300.00016.55
8.3.90.0240.00316.64
8.3.80.0150.01216.49
8.3.70.0150.00516.52
8.3.60.0180.00416.58
8.3.50.0340.00616.45
8.3.40.0330.00417.16
8.3.30.0430.00317.21
8.3.20.0240.01617.35
8.3.10.0320.00417.56
8.3.00.0180.00717.33
8.2.270.0070.01016.52
8.2.260.0270.01116.47
8.2.250.0230.01516.64
8.2.240.0240.01416.61
8.2.230.0350.00416.47
8.2.220.0340.00316.47
8.2.210.0310.00716.06
8.2.200.0190.01616.78
8.2.190.0350.00316.67
8.2.180.0310.00616.66
8.2.170.0370.00317.59
8.2.160.0310.01017.44
8.2.150.0420.01017.29
8.2.140.0340.00617.49
8.2.130.0180.01817.41
8.2.120.0280.01217.40
8.2.110.0340.00617.56
8.2.100.0410.00017.16
8.2.90.0260.00317.38
8.2.80.0160.00317.35
8.2.70.0160.01217.31
8.2.60.0340.00417.32
8.2.50.0280.01117.46
8.2.40.0330.00317.44
8.2.30.0220.01417.43
8.2.20.0330.00317.11
8.2.10.0330.01017.39
8.2.00.0340.00717.46

preferences:
25.99 ms | 403 KiB | 5 Q