3v4l.org

run code in 300+ PHP versions simultaneously
<?php $kdmember = "7000988593"; $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.0040.01118.30
8.3.50.0110.01117.85
8.3.40.0110.00418.98
8.3.30.0110.00418.89
8.3.20.0080.00019.10
8.3.10.0040.00421.03
8.3.00.0040.00417.93
8.2.180.0100.00717.00
8.2.170.0140.00718.95
8.2.160.0030.01022.96
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0050.00319.77
8.2.120.0070.00026.35
8.2.110.0060.00322.11
8.2.100.0090.00317.84
8.2.90.0000.00918.03
8.2.80.0030.00518.03
8.2.70.0030.00517.91
8.2.60.0000.00817.93
8.2.50.0060.00318.10
8.2.40.0050.00319.28
8.2.30.0040.00419.30
8.2.20.0040.00417.91
8.2.10.0060.00318.14
8.2.00.0070.00019.33
8.1.280.0070.00725.92
8.1.270.0000.00922.05
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00021.09
8.1.230.0030.00720.95
8.1.220.0000.00817.74
8.1.210.0080.00020.50
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.52
8.1.160.0000.00818.89
8.1.150.0040.00418.90
8.1.140.0050.00317.70
8.1.130.0000.00818.95
8.1.120.0040.00417.43
8.1.110.0030.00617.36
8.1.100.0040.00417.30
8.1.90.0000.00717.45
8.1.80.0000.00717.31
8.1.70.0080.00417.30
8.1.60.0090.00017.52
8.1.50.0040.00417.56
8.1.40.0040.00417.53
8.1.30.0060.00317.67
8.1.20.0040.00417.68
8.1.10.0040.00417.60
8.1.00.0050.00317.50
8.0.300.0040.00419.89
8.0.290.0040.00416.75
8.0.280.0030.00618.41
8.0.270.0000.00817.14
8.0.260.0030.00317.16
8.0.250.0030.00316.86
8.0.240.0000.00816.95
8.0.230.0060.00316.99
8.0.220.0100.00016.80
8.0.210.0000.00816.95
8.0.200.0030.00316.91
8.0.190.0040.00416.85
8.0.180.0050.00316.89
8.0.170.0060.00316.87
8.0.160.0000.00716.98
8.0.150.0040.00416.75
8.0.140.0000.00716.84
8.0.130.0000.00613.40
8.0.120.0000.00816.92
8.0.110.0040.00416.98
8.0.100.0000.00816.79
8.0.90.0000.00716.98
8.0.80.0100.01316.89
8.0.70.0000.00716.93
8.0.60.0070.00016.92
8.0.50.0030.00516.97
8.0.30.0080.01317.09
8.0.20.0120.00917.40
8.0.10.0000.00717.06
8.0.00.0110.00716.69
7.4.330.0000.00615.55
7.4.320.0000.00616.45
7.4.300.0000.00716.47
7.4.290.0050.00316.53
7.4.280.0050.00316.64
7.4.270.0070.00016.62
7.4.260.0000.00716.49
7.4.250.0040.00416.50
7.4.240.0000.00816.55
7.4.230.0040.00416.58
7.4.220.0040.00416.60
7.4.210.0070.00716.53
7.4.200.0000.00716.32
7.4.160.0090.00716.57
7.4.140.0120.00717.86
7.4.130.0070.01116.57
7.4.120.0100.00816.52
7.4.110.0070.01416.50
7.4.100.0070.01416.58
7.4.90.0110.00616.55
7.4.80.0150.01219.39
7.4.70.0080.00816.67
7.4.60.0030.01216.36
7.4.50.0070.01116.58
7.4.40.0170.00616.52
7.4.00.0060.00914.83
7.3.330.0020.00213.05
7.3.320.0030.00313.12
7.3.310.0030.00316.24
7.3.300.0000.00616.19
7.3.290.0000.00716.33
7.3.280.0080.00916.27
7.3.260.0100.00716.35
7.3.240.0080.01016.32
7.3.230.0070.01016.53
7.3.210.0070.01016.53
7.3.200.0090.01216.57
7.3.190.0090.00616.33
7.3.180.0160.00016.32
7.3.170.0110.00516.43
7.3.160.0060.00916.52
7.2.330.0100.01016.36
7.2.320.0150.00416.32
7.2.310.0110.01416.59
7.2.300.0080.00816.26
7.2.290.0110.01216.36
7.2.60.3690.01114.90
7.2.50.2590.00914.93
7.2.40.2810.01115.28
7.2.30.3350.01415.38
7.2.20.3270.01615.30
7.2.10.2640.01015.52
7.2.00.2620.00915.35
7.1.200.0030.00915.49
7.1.170.2680.00713.80
7.1.160.2870.01116.42
7.1.150.2850.01316.56
7.1.140.3220.01316.92
7.1.130.2580.00916.85
7.1.120.2710.01016.93
7.1.110.3440.00816.04
7.1.100.3030.00816.25
7.1.90.2990.01216.24
7.1.80.3180.01116.21
7.1.70.3000.01015.34
7.1.60.2840.01333.00
7.1.50.4230.01632.88
7.1.40.4180.01832.50
7.1.30.5240.01732.59
7.1.20.4410.01432.43
7.1.10.3380.00914.73
7.1.00.2870.00814.63

preferences:
56.18 ms | 401 KiB | 5 Q