3v4l.org

run code in 300+ PHP versions simultaneously
<?php $kdmember = "7000056743"; $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.70.0130.00316.50
8.3.60.0090.00618.43
8.3.50.0070.01222.09
8.3.40.0060.00618.79
8.3.30.0120.00318.82
8.3.20.0070.00721.91
8.3.10.0070.00021.93
8.3.00.0080.00019.78
8.2.190.0110.00418.66
8.2.180.0090.00918.54
8.2.170.0100.01022.96
8.2.160.0030.01019.21
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0000.00822.14
8.2.120.0040.00426.35
8.2.110.0040.00721.05
8.2.100.0100.00717.73
8.2.90.0040.00418.89
8.2.80.0040.00417.97
8.2.70.0060.00317.36
8.2.60.0060.00318.04
8.2.50.0030.00618.10
8.2.40.0070.00022.19
8.2.30.0040.00419.12
8.2.20.0080.00017.82
8.2.10.0000.00717.98
8.2.00.0080.00017.95
8.1.280.0140.00025.92
8.1.270.0030.00523.81
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0030.00622.62
8.1.230.0070.00419.11
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0100.00017.36
8.1.190.0040.00419.01
8.1.180.0060.00318.10
8.1.170.0040.00418.40
8.1.160.0000.00722.10
8.1.150.0050.00218.72
8.1.140.0040.00319.46
8.1.130.0070.00017.57
8.1.120.0000.00717.40
8.1.110.0000.00717.46
8.1.100.0040.00417.47
8.1.90.0000.00817.40
8.1.80.0000.00817.31
8.1.70.0040.00417.47
8.1.60.0050.00317.43
8.1.50.0040.00417.54
8.1.40.0040.00417.59
8.1.30.0040.00417.65
8.1.20.0000.00717.54
8.1.10.0000.00817.59
8.1.00.0050.00317.52
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0070.00018.34
8.0.270.0040.00417.13
8.0.260.0030.00317.21
8.0.250.0030.00516.88
8.0.240.0040.00416.85
8.0.230.0040.00416.89
8.0.220.0030.00316.81
8.0.210.0060.00016.87
8.0.200.0000.00616.96
8.0.190.0020.00517.04
8.0.180.0040.00416.96
8.0.170.0000.00816.92
8.0.160.0040.00416.95
8.0.150.0040.00416.86
8.0.140.0000.00716.89
8.0.130.0000.00513.38
8.0.120.0030.00516.88
8.0.110.0040.00416.90
8.0.100.0000.00716.87
8.0.90.0070.00016.80
8.0.80.0060.01616.93
8.0.70.0030.00516.78
8.0.60.0040.00416.79
8.0.50.0040.00416.71
8.0.30.0110.00717.18
8.0.20.0090.01017.40
8.0.10.0000.00816.91
8.0.00.0090.00616.79
7.4.330.0000.00615.08
7.4.320.0030.00316.57
7.4.300.0030.00316.53
7.4.290.0000.00716.52
7.4.280.0040.00416.37
7.4.270.0030.00316.52
7.4.260.0070.00016.43
7.4.250.0000.00716.58
7.4.240.0030.00316.43
7.4.230.0050.00216.60
7.4.220.0110.00616.60
7.4.210.0060.00916.53
7.4.200.0000.00716.58
7.4.160.0100.00616.49
7.4.150.0030.01317.40
7.4.140.0090.01217.86
7.4.130.0140.00516.53
7.4.120.0060.01116.49
7.4.110.0040.01216.72
7.4.100.0060.01216.43
7.4.90.0140.00316.64
7.4.80.0090.01219.39
7.4.70.0060.01516.61
7.4.60.0140.00316.58
7.4.50.0040.01416.58
7.4.40.0140.00316.66
7.4.30.0100.01316.64
7.4.00.0050.00914.81
7.3.330.0030.00313.03
7.3.320.0000.00613.22
7.3.310.0070.00016.18
7.3.300.0040.00416.27
7.3.290.0050.00916.31
7.3.280.0090.00816.30
7.3.270.0090.00917.40
7.3.260.0100.00816.37
7.3.250.0070.01016.35
7.3.240.0100.00816.42
7.3.230.0040.01216.42
7.3.210.0030.01416.45
7.3.200.0100.00616.44
7.3.190.0100.00716.58
7.3.180.0120.00616.40
7.3.170.0040.01216.39
7.3.160.0170.00416.55
7.2.330.0130.01016.70
7.2.320.0100.01416.32
7.2.310.0110.00716.39
7.2.300.0030.01416.46
7.2.290.0120.01016.35
7.2.60.0100.00316.54
7.2.00.0100.00018.94
7.1.200.0040.00415.51
7.1.100.0060.00917.66
7.1.70.0030.00716.78
7.1.60.0130.00319.75
7.1.50.0000.01116.71
7.1.00.0030.07722.51
7.0.200.0080.00414.87
7.0.90.0530.05720.01
7.0.80.0230.06019.91
7.0.70.0370.07720.10
7.0.60.0400.05319.84
7.0.50.0570.05020.36
7.0.40.0430.10020.41
7.0.30.0430.07020.44
7.0.20.0300.07020.35
7.0.10.0370.05020.34
7.0.00.0230.07020.41
5.6.240.0170.06020.82
5.6.230.0100.06720.80
5.6.220.0200.06020.61
5.6.210.0030.06320.52
5.6.200.0130.06321.13
5.6.190.0130.07021.24
5.6.180.0130.08321.12
5.6.170.0130.08021.15
5.6.160.0170.06021.18
5.6.150.0200.05021.16
5.6.140.0170.06321.11
5.6.130.0100.07721.17
5.6.120.0230.07321.21
5.6.110.0130.09021.16
5.6.100.0070.08721.17
5.6.90.0230.08021.11
5.6.80.0200.04720.52
5.6.70.0330.04020.59
5.6.60.0170.06320.53
5.6.50.0170.06020.60
5.6.40.0200.07020.50
5.6.30.0130.05720.41
5.6.20.0170.05020.46
5.6.10.0170.05020.45
5.6.00.0170.05320.55

preferences:
25.48 ms | 401 KiB | 5 Q