3v4l.org

run code in 300+ PHP versions simultaneously
<?php $kdmember = "6000797711"; $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.0050.01016.48
8.3.50.0100.01016.59
8.3.40.0170.00018.65
8.3.30.0070.00718.88
8.3.20.0040.00420.19
8.3.10.0040.00421.90
8.3.00.0050.00321.73
8.2.180.0070.01116.63
8.2.170.0140.00322.96
8.2.160.0100.00320.30
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0060.00319.14
8.2.120.0000.00726.35
8.2.110.0100.00019.38
8.2.100.0120.00017.93
8.2.90.0000.00719.05
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0000.00917.90
8.2.50.0110.00018.09
8.2.40.0080.00020.41
8.2.30.0040.00419.45
8.2.20.0040.00417.82
8.2.10.0080.00018.07
8.2.00.0000.00717.90
8.1.280.0040.01425.92
8.1.270.0040.00422.14
8.1.260.0070.00028.09
8.1.250.0070.00728.09
8.1.240.0030.00722.17
8.1.230.0090.00317.70
8.1.220.0000.00717.76
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00419.00
8.1.180.0080.00018.10
8.1.170.0050.00618.52
8.1.160.0000.00720.73
8.1.150.0040.00418.83
8.1.140.0000.00817.40
8.1.130.0040.00417.69
8.1.120.0050.00317.42
8.1.110.0000.00717.38
8.1.100.0030.00917.43
8.1.90.0000.00717.45
8.1.80.0070.00317.40
8.1.70.0030.00517.45
8.1.60.0050.00317.43
8.1.50.0040.00417.51
8.1.40.0090.00317.54
8.1.30.0030.00617.72
8.1.20.0000.01017.62
8.1.10.0050.00217.64
8.1.00.0040.00417.46
8.0.300.0030.00518.77
8.0.290.0070.00016.63
8.0.280.0000.00718.45
8.0.270.0000.00716.81
8.0.260.0080.00017.26
8.0.250.0000.00717.00
8.0.240.0020.00517.02
8.0.230.0030.00317.00
8.0.220.0000.00716.96
8.0.210.0000.00716.83
8.0.200.0000.00716.98
8.0.190.0050.00217.00
8.0.180.0050.00216.83
8.0.170.0040.00416.95
8.0.160.0000.00716.96
8.0.150.0000.00716.88
8.0.140.0040.00416.77
8.0.130.0000.00613.36
8.0.120.0040.00416.74
8.0.110.0050.00316.91
8.0.100.0040.00416.78
8.0.90.0000.00716.88
8.0.80.0160.00616.89
8.0.70.0050.00316.78
8.0.60.0040.00416.98
8.0.50.0040.00416.71
8.0.30.0100.00717.14
8.0.20.0100.01017.40
8.0.10.0000.00717.08
8.0.00.0170.00316.85
7.4.330.0000.00516.67
7.4.320.0070.00016.37
7.4.300.0060.00316.52
7.4.290.0050.00316.65
7.4.280.0040.00316.63
7.4.270.0000.00716.63
7.4.260.0000.00716.59
7.4.250.0040.00416.58
7.4.240.0030.00316.56
7.4.230.0020.00516.51
7.4.220.0070.01116.68
7.4.210.0060.01116.66
7.4.200.0030.00316.52
7.4.160.0130.00316.52
7.4.150.0070.01017.40
7.4.140.0100.00817.86
7.4.130.0120.00816.67
7.4.120.0090.00816.50
7.4.110.0060.01016.50
7.4.100.0110.00716.53
7.4.90.0110.01116.54
7.4.80.0090.00919.39
7.4.70.0040.01216.41
7.4.60.0120.01216.34
7.4.50.0020.01216.38
7.4.40.0150.00616.39
7.4.30.0130.00716.59
7.4.00.0070.00715.07
7.3.330.0020.00213.20
7.3.320.0030.00313.02
7.3.310.0070.00016.18
7.3.300.0030.00316.13
7.3.290.0000.00716.27
7.3.280.0070.01016.30
7.3.270.0140.00317.40
7.3.260.0080.00816.29
7.3.250.0140.01116.38
7.3.240.0100.01016.37
7.3.230.0100.00716.43
7.3.210.0090.00916.30
7.3.200.0040.01419.39
7.3.190.0110.00816.33
7.3.180.0120.00316.27
7.3.170.0140.00316.52
7.3.160.0060.01216.26
7.2.330.0030.01516.68
7.2.320.0100.01016.50
7.2.310.0090.00916.49
7.2.300.0110.00716.66
7.2.290.0030.01416.47
7.2.60.0050.00816.79
7.2.00.0030.01119.48
7.1.200.0000.01215.46
7.1.100.0000.00818.01
7.1.70.0030.00617.03
7.1.60.0140.00719.40
7.1.50.0060.01616.66
7.1.00.0070.07322.55
7.0.200.0470.00314.48
7.0.60.0170.04319.96
7.0.50.0100.05017.79
7.0.40.0030.05720.31
7.0.30.0200.05720.13
7.0.20.0200.08020.30
7.0.10.0100.03720.30
7.0.00.0030.08720.33
5.6.280.0000.04720.89
5.6.210.0030.04020.71
5.6.200.0030.04718.12
5.6.190.0000.08320.78
5.6.180.0330.07020.78
5.6.170.0370.05020.50
5.6.160.0070.07720.61
5.6.150.0030.08718.13
5.6.140.0100.08318.11
5.6.130.0070.08718.19
5.6.120.0030.04721.11
5.6.110.0170.07721.04
5.6.100.0070.05320.98
5.6.90.0070.04021.14
5.6.80.0100.08020.45
5.5.350.0300.06720.32
5.5.340.0100.03717.88
5.5.330.0070.04720.21
5.5.320.0570.05320.30
5.5.310.0100.04720.41
5.5.300.0070.04717.96
5.5.290.0030.09017.91
5.5.280.0070.08320.91
5.5.270.0030.05020.76
5.5.260.0100.08020.87
5.5.250.0000.04720.71
5.5.240.0170.06720.26

preferences:
64.77 ms | 400 KiB | 5 Q