3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cipher = 'AES-256-CBC'; // $cipher = 'AES-256-CFB8'; $cipher = OPENSSL_CIPHER_AES_256_CBC; $mode = strtolower(substr($cipher, strrpos($cipher, '-') - strlen($cipher))); $ivSize = openssl_cipher_iv_length($cipher); $blockSize = $ivSize > 0 ? $ivSize : openssl_cipher_iv_length(str_ireplace('-' . $mode, '', $cipher)); var_dump($mode); var_dump($ivSize); var_dump($blockSize);

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.40.0160.00618.78
8.3.30.0070.00718.84
8.3.20.0080.00018.98
8.3.10.0080.00021.85
8.3.00.0070.00022.29
8.2.170.0120.00322.96
8.2.160.0130.00721.19
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00619.49
8.2.110.0140.00720.99
8.2.100.0030.00917.70
8.2.90.0050.00319.20
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0090.00017.75
8.2.50.0000.00817.63
8.2.40.0040.00419.31
8.2.30.0000.00717.68
8.2.20.0050.00317.67
8.2.10.0000.00718.14
8.2.00.0090.00318.04
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.80
8.1.230.0130.00017.70
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0030.00617.36
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0060.00317.62
8.1.160.0050.00218.96
8.1.150.0000.00718.89
8.1.140.0000.00719.66
8.1.130.0040.00417.73
8.1.120.0040.00417.48
8.1.110.0080.00017.50
8.1.100.0040.00417.44
8.1.90.0040.00417.44
8.1.80.0000.00717.46
8.1.70.0030.00317.46
8.1.60.0040.00417.49
8.1.50.0030.00617.45
8.1.40.0030.00517.53
8.1.30.0030.00617.59
8.1.20.0040.00417.65
8.1.10.0040.00417.53
8.1.00.0040.00817.51
8.0.300.0000.00918.77
8.0.290.0000.00816.73
8.0.280.0030.00318.06
8.0.270.0030.00318.01
8.0.260.0070.00016.79
8.0.250.0000.00816.94
8.0.240.0000.00716.95
8.0.230.0040.00417.05
8.0.220.0000.00716.86
8.0.210.0000.00716.98
8.0.200.0000.00617.03
8.0.190.0050.00317.00
8.0.180.0030.00616.89
8.0.170.0000.00716.93
8.0.160.0020.00517.03
8.0.150.0000.00716.97
8.0.140.0070.00016.89
8.0.130.0030.00313.41
8.0.120.0040.00416.84
8.0.110.0060.00317.00
8.0.100.0040.00417.07
8.0.90.0050.00317.00
8.0.80.0070.01417.01
8.0.70.0050.00316.87
8.0.60.0000.00716.98
8.0.50.0040.00416.97
8.0.30.0100.00717.01
8.0.20.0120.00817.41
8.0.10.0000.00717.16
8.0.00.0110.00716.84
7.4.330.0050.00015.08
7.4.320.0000.00616.50
7.4.300.0060.00016.67
7.4.290.0000.00716.51
7.4.280.0040.00416.51
7.4.270.0040.00416.50
7.4.260.0030.00316.57
7.4.250.0080.00016.46
7.4.240.0000.00716.64
7.4.230.0070.00016.64
7.4.220.0060.01216.64
7.4.210.0050.01016.51
7.4.200.0040.00416.36
7.4.160.0080.00716.55
7.4.150.0090.00917.40
7.4.140.0060.01217.86
7.4.130.0140.00416.50
7.4.120.0120.01316.66
7.4.110.0070.01016.55
7.4.100.0060.01016.32
7.4.90.0090.00916.57
7.4.80.0090.00919.39
7.4.70.0140.00916.58
7.4.60.0080.00816.50
7.4.50.0100.00616.30
7.4.40.0030.01316.68
7.4.30.0080.01516.60
7.4.00.0050.01015.10
7.3.330.0000.00513.02
7.3.320.0030.00313.19
7.3.310.0030.00316.46
7.3.300.0000.00816.17
7.3.290.0070.00016.27
7.3.280.0110.00616.32
7.3.270.0100.00717.40
7.3.260.0120.00516.35
7.3.250.0070.01216.47
7.3.240.0120.00916.27
7.3.230.0140.00316.39
7.3.210.0130.00316.52
7.3.200.0140.00316.43
7.3.190.0040.01216.34
7.3.180.0090.01416.43
7.3.170.0080.00816.55
7.3.160.0070.01016.51
7.3.120.0090.00914.98
7.3.110.0090.00814.81
7.3.100.0080.00714.61
7.3.90.0030.01214.99
7.3.80.0080.00514.62
7.3.70.0100.00014.77
7.3.60.0080.00814.71
7.3.50.0040.01114.85
7.3.40.0050.00514.64
7.3.30.0000.01514.72
7.3.20.0030.01316.74
7.3.10.0040.00916.78
7.3.00.0080.00617.50
7.2.330.0110.00516.45
7.2.320.0080.01416.68
7.2.310.0180.00416.42
7.2.300.0100.01016.48
7.2.290.0110.00616.65
7.2.250.0040.01415.13
7.2.240.0140.00715.25
7.2.230.0030.01215.13
7.2.220.0070.00714.82
7.2.210.0110.00414.95
7.2.200.0040.01114.62
7.2.190.0070.00714.98
7.2.180.0090.00614.84
7.2.170.0040.01215.10
7.2.130.0000.00917.00
7.2.120.0000.01116.89
7.2.110.0030.01317.05
7.2.100.0040.00416.77
7.2.90.0110.00617.92
7.2.80.0030.00916.97
7.2.70.0050.00516.89
7.2.60.0050.00816.79
7.2.50.0030.01216.86
7.2.40.0000.01216.98
7.2.30.0070.00717.10
7.2.20.0100.00316.79
7.2.10.0060.00616.77
7.2.00.0070.00716.64
7.1.330.0150.00417.58
7.1.320.0070.00715.98
7.1.310.0080.00815.66
7.1.300.0090.00615.71
7.1.290.0150.00015.65
7.1.280.0030.01015.61
7.1.270.0060.00915.69
7.1.260.0060.00615.97
7.1.250.0000.01715.62
7.1.200.0030.01015.91
7.1.70.0030.00616.82
7.1.60.0070.00417.20
7.1.00.0030.09022.32
7.0.200.0300.01014.94
7.0.100.0130.05721.83
7.0.90.0070.06721.70
7.0.80.0100.07021.98
7.0.70.0030.07721.80
7.0.60.0100.06321.79
7.0.50.0100.06022.19
7.0.40.0100.05722.17
7.0.30.0070.05722.09
7.0.20.0030.07022.18
7.0.10.0130.06022.13
7.0.00.0370.05720.44
5.6.250.0070.06320.68
5.6.240.0130.05320.57
5.6.230.0100.06020.62
5.6.220.0000.06720.81
5.6.210.0130.07020.74
5.6.200.0100.06021.10
5.6.190.0100.06021.06
5.6.180.0170.05021.06
5.6.170.0100.06021.10
5.6.160.0100.05321.13
5.6.150.0170.04721.06
5.6.140.0170.05321.20
5.6.130.0100.06021.10
5.6.120.0000.07321.10
5.6.110.0170.07321.07
5.6.100.0130.06321.14
5.6.90.0170.06021.00
5.6.80.0100.05720.46
5.6.70.0100.07020.39
5.6.60.0200.05720.49
5.6.50.0130.04720.55
5.6.40.0170.04720.38
5.6.30.0070.05720.44
5.6.20.0130.05320.48
5.6.10.0170.04720.41
5.6.00.0130.04720.36

preferences:
58.72 ms | 400 KiB | 5 Q