3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key_arr = array(0x09, 0x76, 0x28, 0x34, 0x3f, 0xe9, 0x9e, 0x23, 0x76, 0x5c, 0x15, 0x13, 0xac, 0xcf, 0x8b, 0x02); $iv_arr = array(0x56, 0x2e, 0x17, 0x99, 0x6d, 0x09, 0x3d, 0x28, 0xdd, 0xb3, 0xba, 0x69, 0x5a, 0x2e, 0x6f, 0x58); $key = implode(array_map("chr", $key_arr)); $iv = implode(array_map("chr", $iv_arr)); $encryptedMessage = openssl_encrypt("openssl: hello", 'AES-128-CBC', $key, OPENSSL_RAW_DATA, $iv); $decryptedMessage = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $encryptedMessage, MCRYPT_MODE_CBC, $iv); echo $decryptedMessage; echo "\n"; $encryptedMessage = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, "mcrypt: hello", MCRYPT_MODE_CBC, $iv); $decryptedMessage = openssl_decrypt($encryptedMessage, 'AES-128-CBC', $key, OPENSSL_RAW_DATA|OPENSSL_ZERO_PADDING, $iv); echo $decryptedMessage;

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.3.60.0080.01316.88
8.3.50.0190.00316.33
8.3.40.0070.00718.79
8.3.30.0070.00718.84
8.3.20.0040.00421.73
8.3.10.0060.00323.65
8.3.00.0080.00023.65
8.2.180.0110.01116.88
8.2.170.0130.00322.96
8.2.160.0030.01021.20
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00819.95
8.2.110.0000.01022.14
8.2.100.0100.00017.72
8.2.90.0000.00917.84
8.2.80.0040.00419.17
8.2.70.0090.00017.80
8.2.60.0000.00818.09
8.2.50.0040.00418.10
8.2.40.0040.00420.42
8.2.30.0040.00422.41
8.2.20.0070.00018.07
8.2.10.0030.00617.95
8.2.00.0040.00418.07
8.1.280.0120.00625.92
8.1.270.0040.00422.05
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0040.00423.97
8.1.230.0040.00720.89
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0100.00017.36
8.1.190.0000.00817.13
8.1.180.0030.00618.10
8.1.170.0000.00818.46
8.1.160.0080.00018.80
8.1.150.0000.00721.97
8.1.140.0000.00817.64
8.1.130.0030.00318.90
8.1.120.0040.00417.43
8.1.110.0040.00417.42
8.1.100.0040.00417.44
8.1.90.0030.00417.45
8.1.80.0050.00317.36
8.1.70.0000.00817.43
8.1.60.0030.00617.60
8.1.50.0030.00717.43
8.1.40.0040.00417.48
8.1.30.0040.00417.72
8.1.20.0060.00317.68
8.1.10.0040.00417.58
8.1.00.0000.00817.48
8.0.300.0000.00819.85
8.0.290.0040.00416.63
8.0.280.0030.00318.44
8.0.270.0030.00517.23
8.0.260.0030.00316.84
8.0.250.0030.00317.01
8.0.240.0040.00416.94
8.0.230.0070.00016.88
8.0.220.0030.00316.91
8.0.210.0000.00716.79
8.0.200.0080.00016.95
8.0.190.0040.00416.95
8.0.180.0000.00716.84
8.0.170.0030.00716.80
8.0.160.0000.00716.90
8.0.150.0030.00616.88
8.0.140.0000.00716.90
8.0.130.0000.00513.29
8.0.120.0080.00016.86
8.0.110.0050.00216.92
8.0.100.0040.00416.73
8.0.90.0070.00016.96
8.0.80.0100.01116.87
8.0.70.0070.00016.68
8.0.60.0040.00416.70
8.0.50.0030.00516.90
8.0.30.0100.01017.02
8.0.20.0060.01217.40
8.0.10.0000.00716.84
8.0.00.0080.01016.92
7.4.330.0000.00615.55
7.4.320.0060.00016.57
7.4.300.0030.00316.57
7.4.290.0070.00016.57
7.4.280.0020.00516.57
7.4.270.0080.00016.64
7.4.260.0090.00016.50
7.4.250.0030.00316.55
7.4.240.0030.00416.66
7.4.230.0000.00716.70
7.4.220.0040.00416.73
7.4.210.0080.00616.54
7.4.200.0000.00816.50
7.4.160.0100.01016.52
7.4.140.0110.01017.86
7.4.130.0140.00316.38
7.4.120.0100.00816.59
7.4.110.0100.00716.52
7.4.100.0070.01016.42
7.4.90.0070.01416.53
7.4.80.0110.01419.39
7.4.70.0120.00616.56
7.4.60.0060.00916.47
7.4.50.0100.00716.63
7.4.40.0100.00716.55
7.4.00.0060.00914.98
7.3.330.0000.00613.15
7.3.320.0000.00613.01
7.3.310.0030.00316.35
7.3.300.0040.00416.36
7.3.290.0070.00916.25
7.3.280.0100.00616.27
7.3.260.0090.00816.43
7.3.240.0070.01116.33
7.3.230.0070.01016.27
7.3.210.0190.00016.52
7.3.200.0160.00016.40
7.3.190.0040.01216.45
7.3.180.0130.00316.19
7.3.170.0120.00616.30
7.3.160.0100.01016.46
7.2.330.0140.00316.33
7.2.320.0070.01016.68
7.2.310.0000.01816.59
7.2.300.0090.00916.66
7.2.290.0120.00816.73
7.2.60.0030.00616.71
7.2.30.0130.01118.56
7.2.20.0430.01418.49
7.2.10.0110.01318.57
7.2.00.0140.01018.42
7.1.200.0000.01115.86
7.1.150.0130.01017.38
7.1.140.0120.01317.31
7.1.130.0130.01117.35
7.1.120.0110.01217.28
7.1.110.0310.01116.89
7.1.100.0110.01216.90
7.1.90.0110.01116.82
7.1.80.0100.01116.81
7.1.70.0090.01015.88
7.1.60.0280.01633.71
7.1.50.0300.01733.52
7.1.40.0300.01733.22
7.1.30.0520.01933.22
7.1.20.0230.01433.34
7.1.10.0090.01215.45
7.1.00.0120.01015.45

preferences:
63.52 ms | 400 KiB | 5 Q