3v4l.org

run code in 300+ PHP versions simultaneously
<?php $kdmember = "7001644103"; $key = pack('H*', "7A40903624D1AB215FAA4A3E26EB32D7832A0358CDA3B23F7C4D4F4F767BE413"); $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC); $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); $ciphertext = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $kdmember, MCRYPT_MODE_CBC, $iv); $ciphertext = $iv . $ciphertext; $ciphertext_base64 = base64_encode($ciphertext); echo urlencode($ciphertext_base64);

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.0100.00618.50
8.3.50.0150.00319.51
8.3.40.0140.00018.98
8.3.30.0040.01118.84
8.3.20.0060.00321.95
8.3.10.0040.00421.64
8.3.00.0090.00019.73
8.2.180.0110.00418.29
8.2.170.0070.00722.96
8.2.160.0150.00620.85
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00722.25
8.2.120.0040.00426.35
8.2.110.0060.00321.12
8.2.100.0060.00618.09
8.2.90.0080.00019.09
8.2.80.0090.00017.97
8.2.70.0060.00317.38
8.2.60.0030.00517.91
8.2.50.0030.00718.10
8.2.40.0030.00622.24
8.2.30.0030.00519.12
8.2.20.0050.00217.58
8.2.10.0040.00417.97
8.2.00.0020.00518.13
8.1.280.0090.00925.92
8.1.270.0000.00823.79
8.1.260.0030.00628.09
8.1.250.0070.00028.09
8.1.240.0070.01119.09
8.1.230.0080.00417.45
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0050.00317.23
8.1.180.0080.00018.10
8.1.170.0000.00818.42
8.1.160.0000.00822.14
8.1.150.0070.00018.77
8.1.140.0030.00519.45
8.1.130.0040.00417.71
8.1.120.0000.00717.43
8.1.110.0000.00817.39
8.1.100.0040.00417.30
8.1.90.0000.00717.46
8.1.80.0000.00717.36
8.1.70.0000.00717.30
8.1.60.0050.00317.43
8.1.50.0060.00317.56
8.1.40.0080.00017.58
8.1.30.0030.00517.72
8.1.20.0050.00317.65
8.1.10.0020.00517.48
8.1.00.0070.00017.54
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0000.00718.32
8.0.270.0000.00717.22
8.0.260.0000.00617.15
8.0.250.0000.00817.02
8.0.240.0030.00316.86
8.0.230.0000.00816.99
8.0.220.0000.00716.97
8.0.210.0070.00016.79
8.0.200.0040.00416.96
8.0.190.0000.00916.91
8.0.180.0070.00017.00
8.0.170.0030.00616.89
8.0.160.0030.00316.97
8.0.150.0030.00316.84
8.0.140.0050.00216.80
8.0.130.0000.00613.34
8.0.120.0000.00916.89
8.0.110.0070.00016.93
8.0.100.0040.00416.80
8.0.90.0030.00516.79
8.0.80.0030.01216.84
8.0.70.0030.00516.71
8.0.60.0080.00016.98
8.0.50.0050.00316.86
8.0.30.0080.01017.28
8.0.20.0110.00817.40
8.0.10.0050.00217.03
8.0.00.0060.01016.46
7.4.330.0020.00215.08
7.4.320.0030.00316.54
7.4.300.0070.00016.54
7.4.290.0030.00316.63
7.4.280.0070.00016.46
7.4.270.0030.00316.61
7.4.260.0020.00516.50
7.4.250.0030.00316.52
7.4.240.0070.00016.65
7.4.230.0030.00316.65
7.4.220.0120.00616.63
7.4.210.0110.00416.56
7.4.200.0040.00416.72
7.4.160.0050.01116.47
7.4.150.0140.00417.40
7.4.140.0060.01217.86
7.4.130.0100.00716.54
7.4.120.0070.00916.44
7.4.110.0100.00616.44
7.4.100.0040.01216.38
7.4.90.0120.00616.49
7.4.80.0100.00619.39
7.4.70.0090.01316.57
7.4.60.0160.00616.52
7.4.50.0120.00616.64
7.4.40.0090.00616.48
7.4.30.0130.00716.52
7.4.00.0090.00315.07
7.3.330.0050.00213.20
7.3.320.0000.00512.99
7.3.310.0030.00316.35
7.3.300.0000.00616.28
7.3.290.0070.00916.33
7.3.280.0090.00816.26
7.3.270.0140.00317.40
7.3.260.0070.01016.28
7.3.250.0080.00916.41
7.3.240.0100.01016.45
7.3.230.0080.00816.39
7.3.210.0110.00516.25
7.3.200.0070.01016.30
7.3.190.0060.00916.60
7.3.180.0030.01316.36
7.3.170.0040.01916.23
7.3.160.0130.00316.54
7.2.330.0150.01116.65
7.2.320.0070.01016.58
7.2.310.0060.01516.71
7.2.300.0070.01116.31
7.2.290.0140.00716.61
7.2.110.0040.01116.29
7.2.60.0030.00716.88
7.2.00.0060.01219.40
7.1.200.0040.01115.89
7.1.100.0040.00718.06
7.1.70.0030.00616.77
7.1.60.0000.01519.75
7.1.50.0100.01316.89
7.1.00.0070.07322.35
7.0.200.0030.00914.68
7.0.90.0930.07320.12
7.0.80.0130.07719.95
7.0.70.0130.06019.93
7.0.60.0070.06020.07
7.0.50.0100.06020.33
7.0.40.0070.06020.38
7.0.30.0170.05320.43
7.0.20.0030.07020.22
7.0.10.0200.05320.42
7.0.00.0130.06020.25
5.6.240.0130.08320.50
5.6.230.0070.08720.71
5.6.220.0100.06320.59
5.6.210.0130.07720.55
5.6.200.0070.06321.16
5.6.190.0170.05021.05
5.6.180.0130.08021.09
5.6.170.0070.06021.09
5.6.160.0130.05721.02
5.6.150.0100.09021.12
5.6.140.0200.06721.17
5.6.130.0100.09021.10
5.6.120.0170.08021.21
5.6.110.0170.07021.10
5.6.100.0170.07721.16
5.6.90.0100.09021.25
5.6.80.0100.05320.51
5.6.70.0130.06020.46
5.6.60.0100.08020.55
5.6.50.0100.08020.66
5.6.40.0200.07320.46
5.6.30.0070.09320.46
5.6.20.0230.07020.54
5.6.10.0200.07320.50
5.6.00.0100.08320.53

preferences:
81.34 ms | 404 KiB | 6 Q