3v4l.org

run code in 300+ PHP versions simultaneously
<?php function insecureEncryptDoNotUse(string $plaintext, string $key): string { return \openssl_encrypt( $plaintext, 'aes-128-ctr', $key, OPENSSL_RAW_DATA | OPENSSL_ZERO_PADDING, str_repeat("\x00", 16) ); } function insecureDecryptDoNotUse(string $ciphertext, string $key): string { return \openssl_decrypt( $ciphertext, 'aes-128-ctr', $key, OPENSSL_RAW_DATA | OPENSSL_ZERO_PADDING, str_repeat("\x00", 16) ); } $key = str_repeat("3.14", 4); $ciphertextA = insecureEncryptDoNotUse('0000000000000001', $key); $xor = str_repeat("\x00", mb_strlen($ciphertextA, '8bit') - 1) . "\x40"; $ciphertextB = $ciphertextA ^ $xor; var_dump(insecureDecryptDoNotUse($ciphertextB, $key));

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.4.10.0090.00019.68
8.3.140.0040.00417.16
8.3.130.0060.00318.72
8.3.120.0090.00318.99
8.3.110.0070.00020.94
8.3.100.0050.00324.06
8.3.90.0050.00326.77
8.3.80.0030.00618.27
8.3.70.0110.00718.55
8.3.60.0070.01118.43
8.3.50.0130.00616.51
8.3.40.0140.00418.79
8.3.30.0190.00018.88
8.3.20.0000.00721.94
8.3.10.0080.00021.76
8.3.00.0040.00419.55
8.2.260.0070.01118.31
8.2.250.0000.00817.25
8.2.240.0110.00717.28
8.2.230.0110.00822.58
8.2.220.0000.01137.54
8.2.210.0040.00426.77
8.2.200.0060.00318.29
8.2.190.0040.01116.58
8.2.180.0040.01516.75
8.2.170.0150.00619.13
8.2.160.0040.01122.96
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0110.00419.54
8.2.110.0000.00920.89
8.2.100.0070.00717.78
8.2.90.0050.00319.05
8.2.80.0080.00017.97
8.2.70.0060.00317.93
8.2.60.0000.00817.50
8.2.50.0000.01018.10
8.2.40.0040.00418.10
8.2.30.0070.00018.04
8.2.20.0100.00318.05
8.2.10.0000.00817.99
8.2.00.0030.00617.86
8.1.310.0030.00518.41
8.1.300.0120.00317.93
8.1.290.0030.00618.88
8.1.280.0070.00725.92
8.1.270.0080.00023.79
8.1.260.0030.01028.09
8.1.250.0040.00428.09
8.1.240.0060.00321.25
8.1.230.0030.00920.89
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0090.00017.36
8.1.190.0050.00317.36
8.1.180.0040.00418.10
8.1.170.0080.00018.51
8.1.160.0040.00418.75
8.1.150.0000.00818.81
8.1.140.0030.00519.43
8.1.130.0050.00317.36
8.1.120.0030.00517.37
8.1.110.0030.00517.37
8.1.100.0020.00617.36
8.1.90.0040.00417.36
8.1.80.0020.00617.38
8.1.70.0000.00717.28
8.1.60.0060.00217.53
8.1.50.0030.00517.49
8.1.40.0030.00517.50
8.1.30.0050.00417.54
8.1.20.0020.00617.51
8.1.10.0000.00817.57
8.1.00.0040.00417.47
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0000.00718.33
8.0.270.0000.00716.82
8.0.260.0000.00916.73
8.0.250.0040.00416.74
8.0.240.0050.00216.89
8.0.230.0040.00416.83
8.0.220.0020.00716.81
8.0.210.0060.00216.74
8.0.200.0060.00216.89
8.0.190.0060.00216.83
8.0.180.0030.00616.78
8.0.170.0040.00416.79
8.0.160.0020.00616.86
8.0.150.0060.00316.74
8.0.140.0020.00516.72
8.0.130.0030.00315.10
8.0.120.0040.00416.79
8.0.110.0040.00316.89
8.0.100.0000.00716.81
8.0.90.0040.00416.76
8.0.80.0060.00516.81
8.0.70.0020.00716.78
8.0.60.0050.00316.78
8.0.50.0030.00516.81
8.0.30.0070.00817.13
8.0.20.0110.00817.28
8.0.10.0020.00616.88
8.0.00.0090.00616.72
7.4.330.0100.00015.67
7.4.320.0090.00316.37
7.4.300.0060.00616.34
7.4.290.0110.00216.47
7.4.280.0110.00216.48
7.4.270.0120.00116.30
7.4.260.0090.00316.42
7.4.250.0070.00516.47
7.4.240.0080.00416.35
7.4.230.0120.00016.58
7.4.220.0120.00416.43
7.4.210.0090.00816.53
7.4.200.0100.00216.50
7.4.190.0150.00016.42
7.4.180.0120.00316.51
7.4.160.0080.00716.45
7.4.150.0120.00416.89
7.4.140.0080.00817.48
7.4.130.0120.00516.36
7.4.120.0070.01516.46
7.4.110.0080.00816.42
7.4.100.0120.00816.39
7.4.90.0110.01016.39
7.4.80.0140.00217.89
7.4.70.0090.00616.34
7.4.60.0090.00816.34
7.4.50.0140.00416.41
7.4.40.0070.00816.39
7.4.30.0090.00716.37
7.4.20.0110.00316.34
7.4.10.0090.00516.21
7.4.00.0110.00615.35
7.3.330.0060.00414.64
7.3.320.0110.00014.70
7.3.310.0110.00016.23
7.3.300.0090.00216.18
7.3.290.0040.00716.10
7.3.280.0070.01016.28
7.3.270.0150.00016.82
7.3.260.0110.00616.36
7.3.250.0090.01016.29
7.3.240.0120.00716.39
7.3.230.0130.00516.22
7.3.220.0100.00516.23
7.3.210.0090.00816.30
7.3.200.0090.00616.40
7.3.190.0080.00816.33
7.3.180.0050.01016.24
7.3.170.0120.00616.39
7.3.160.0050.01116.19
7.3.150.0050.01016.04
7.3.140.0130.00616.16
7.3.130.0100.00516.12
7.3.120.0070.00715.47
7.3.110.0090.00515.33
7.3.100.0080.00715.28
7.3.90.0070.00615.57
7.3.80.0070.00715.27
7.3.70.0060.00615.37
7.3.60.0090.00515.58
7.3.50.0050.00815.53
7.3.40.0060.00715.37
7.3.30.0110.00415.54
7.3.20.0290.00515.79
7.3.10.0270.00615.83
7.3.00.0280.00415.76
7.2.340.0090.00516.25
7.2.330.0100.00616.34
7.2.320.0100.00516.38
7.2.310.0110.00616.34
7.2.300.0090.00616.26
7.2.290.0120.00316.42
7.2.280.0150.00016.04
7.2.270.0110.00416.15
7.2.260.0050.01016.25
7.2.250.0100.00615.50
7.2.240.0110.00615.58
7.2.230.0100.00515.55
7.2.220.0120.00215.69
7.2.210.0110.00415.44
7.2.200.0100.00615.56
7.2.190.0100.00515.66
7.2.180.0060.00915.63
7.2.170.0080.00615.61
7.2.160.0070.00716.30
7.2.150.0460.00815.48
7.2.140.0440.00315.59
7.2.130.0450.00615.68
7.2.120.0400.00315.53
7.2.110.0500.00415.21
7.2.100.0420.00615.26
7.2.90.0550.00815.95
7.2.80.0470.00815.68
7.2.70.0450.00815.97
7.2.60.0330.00716.11
7.2.50.0620.00616.01
7.2.40.0530.00316.03
7.2.30.0400.00615.83
7.2.20.0470.00715.88
7.2.10.0610.00415.95
7.2.00.0410.00416.92
7.1.330.0090.00516.26
7.1.320.0040.01016.36
7.1.310.0110.00516.46
7.1.300.0080.00316.48
7.1.290.0060.00816.25
7.1.280.0090.00616.48
7.1.270.0060.00816.48
7.1.260.0060.00916.44
7.1.250.0460.00215.50
7.1.240.0380.00915.34
7.1.230.0530.00714.86
7.1.220.0400.00615.00
7.1.210.0410.00614.78
7.1.200.0360.00715.10
7.1.190.0980.00414.88
7.1.180.0450.00614.95
7.1.170.0350.00914.87
7.1.160.0500.00514.88
7.1.150.0430.00314.77
7.1.140.0490.00814.90
7.1.130.0500.00915.00
7.1.120.0430.00314.84
7.1.110.0420.00514.86
7.1.100.0500.00314.97
7.1.90.0420.00114.94
7.1.80.0360.00614.99
7.1.70.0320.00515.53
7.1.60.0390.00620.01
7.1.50.0290.00719.93
7.1.40.0600.00719.79
7.1.30.0330.00619.81
7.1.20.0320.00319.91
7.1.10.0230.00815.37
7.1.00.0230.00515.40
7.0.330.0360.00515.20
7.0.320.0550.00215.26
7.0.310.0720.00214.70
7.0.300.0490.00314.59
7.0.290.0460.00614.61
7.0.280.0420.01114.39
7.0.270.0640.00414.46
7.0.260.0480.00614.52
7.0.250.0470.00614.67
7.0.240.0610.00914.69
7.0.230.0330.00714.72
7.0.220.0300.01114.65
7.0.210.0810.00814.68
7.0.200.0330.00615.07
7.0.190.0280.00415.26
7.0.180.0280.00915.06
7.0.170.0320.00415.05
7.0.160.0270.00715.06
7.0.150.0220.00815.06
7.0.140.0220.00815.10
7.0.130.0190.01015.24
7.0.120.0230.00815.19
7.0.110.0200.00815.08
7.0.100.0260.00515.10
7.0.90.0230.00715.03
7.0.80.0240.00515.01
7.0.70.0280.00614.97
7.0.60.0190.00915.00
7.0.50.0250.00815.14
7.0.40.0290.00415.08
7.0.30.0210.00515.08
7.0.20.0250.00315.00
7.0.10.0230.00714.97
7.0.00.0210.00815.05
5.6.400.0040.00915.79
5.6.390.0080.00615.79
5.6.380.0110.00514.41
5.6.370.0100.00315.79
5.6.360.0070.00715.79
5.6.350.0070.00715.79
5.6.340.0100.00315.79
5.6.330.0040.00815.79
5.6.320.0120.00215.79
5.6.310.0070.00715.79
5.6.300.0090.00615.79
5.6.290.0040.00915.79
5.6.280.0090.00415.79
5.6.270.0130.00015.79
5.6.260.0060.00615.79
5.6.250.0100.00315.79
5.6.240.0090.00415.79
5.6.230.0090.00315.79
5.6.220.0030.00915.79
5.6.210.0120.00215.79
5.6.200.0090.00515.79
5.6.190.0100.00315.79
5.6.180.0100.00315.79
5.6.170.0130.00015.79
5.6.160.0040.00915.79
5.6.150.0090.00315.79
5.6.140.0100.00315.79
5.6.130.0040.00815.79
5.6.120.0080.00515.79
5.6.110.0110.00215.79
5.6.100.0130.00015.79
5.6.90.0130.00015.79
5.6.80.0080.00415.79
5.6.70.0060.00615.79
5.6.60.0120.00015.79
5.6.50.0120.00015.79
5.6.40.0030.00915.79
5.6.30.0120.00015.79
5.6.20.0110.00215.79
5.6.10.0100.00415.79
5.6.00.0130.00015.79
5.5.380.0060.00615.79
5.5.370.0030.00915.79
5.5.360.0060.00615.79
5.5.350.0040.00915.79
5.5.340.0100.00315.79
5.5.330.0100.00215.79
5.5.320.0130.00015.79
5.5.310.0080.00515.79
5.5.300.0040.00815.79
5.5.290.0120.00015.79
5.5.280.0120.00015.79
5.5.270.0060.00615.79
5.5.260.0080.00415.79
5.5.250.0120.00015.79
5.5.240.0080.00415.79
5.5.230.0080.00415.79
5.5.220.0130.00015.79
5.5.210.0120.00015.79
5.5.200.0130.00015.79
5.5.190.0130.00015.79
5.5.180.0060.00615.79
5.5.170.0080.00415.79
5.5.160.0120.00015.79
5.5.150.0080.00415.79
5.5.140.0040.00815.79
5.5.130.0100.00215.79
5.5.120.0090.00315.79
5.5.110.0110.00215.79
5.5.100.0080.00415.79
5.5.90.0000.01215.79
5.5.80.0090.00315.79
5.5.70.0120.00015.79
5.5.60.0120.00015.79
5.5.50.0090.00215.79
5.5.40.0090.00215.79
5.5.30.0060.00615.79
5.5.20.0090.00415.79
5.5.10.0040.00815.79
5.5.00.0080.00415.79
5.4.450.0060.00315.79
5.4.440.0080.00315.79
5.4.430.0100.00015.79
5.4.420.0060.00415.79
5.4.410.0060.00315.79
5.4.400.0080.00215.79
5.4.390.0070.00315.79
5.4.380.0100.00015.79
5.4.370.0100.00015.79
5.4.360.0100.00015.79
5.4.350.0050.00515.79
5.4.340.0070.00215.79
5.4.330.0100.00015.79
5.4.320.0080.00315.79
5.4.310.0100.00015.79
5.4.300.0070.00315.79
5.4.290.0000.01015.79
5.4.280.0100.00015.79
5.4.270.0000.01015.79
5.4.260.0030.00715.79
5.4.250.0100.00015.79
5.4.240.0070.00415.79
5.4.230.0000.01015.79
5.4.220.0050.00515.79
5.4.210.0030.00715.79
5.4.200.0090.00215.79
5.4.190.0100.00015.79
5.4.180.0100.00015.79
5.4.170.0070.00315.79
5.4.160.0100.00015.79
5.4.150.0050.00515.79
5.4.140.0050.00515.79
5.4.130.0070.00315.79
5.4.120.0100.00015.79
5.4.110.0050.00515.79
5.4.100.0050.00515.79
5.4.90.0060.00315.79
5.4.80.0060.00315.79
5.4.70.0090.00015.79
5.4.60.0100.00015.79
5.4.50.0080.00215.79
5.4.40.0060.00315.79
5.4.30.0060.00315.79
5.4.20.0060.00415.79
5.4.10.0030.00715.79
5.4.00.0050.00515.79
5.3.290.0080.00315.79
5.3.280.0070.00315.79
5.3.270.0090.00315.79
5.3.260.0100.00015.79
5.3.250.0070.00315.79
5.3.240.0070.00315.79
5.3.230.0100.00015.79
5.3.220.0100.00015.79
5.3.210.0070.00315.79
5.3.200.0100.00015.79
5.3.190.0100.00015.79
5.3.180.0100.00015.79
5.3.170.0050.00515.79
5.3.160.0110.00015.79
5.3.150.0070.00315.79
5.3.140.0100.00015.79
5.3.130.0100.00015.79
5.3.120.0050.00515.79
5.3.110.0050.00515.79
5.3.100.0100.00015.79
5.3.90.0060.00315.79
5.3.80.0070.00215.79
5.3.70.0100.00015.79
5.3.60.0100.00015.79
5.3.50.0100.00015.79
5.3.40.0070.00315.79
5.3.30.0100.00015.79
5.3.20.0100.00015.79
5.3.10.0030.00615.79
5.3.00.0030.00615.79
5.2.170.0080.00015.79
5.2.160.0040.00415.79
5.2.150.0080.00015.79
5.2.140.0040.00415.79
5.2.130.0090.00015.79
5.2.120.0040.00415.79
5.2.110.0050.00315.79
5.2.100.0090.00015.79
5.2.90.0060.00315.79
5.2.80.0000.00815.79
5.2.70.0060.00315.79
5.2.60.0040.00415.79
5.2.50.0030.00615.79
5.2.40.0040.00415.79
5.2.30.0040.00415.79
5.2.20.0040.00415.79
5.2.10.0050.00315.79
5.2.00.0060.00315.79
5.1.60.0040.00415.79
5.1.50.0080.00015.79
5.1.40.0050.00315.79
5.1.30.0070.00015.79
5.1.20.0080.00015.79
5.1.10.0030.00315.79
5.1.00.0040.00415.79
5.0.50.0030.00315.79
5.0.40.0060.00015.79
5.0.30.0030.00315.79
5.0.20.0030.00315.79
5.0.10.0060.00015.79
5.0.00.0030.00315.79
4.4.90.0040.00015.79
4.4.80.0020.00215.79
4.4.70.0040.00015.79
4.4.60.0000.00415.79
4.4.50.0000.00315.79
4.4.40.0030.00015.79
4.4.30.0040.00015.79
4.4.20.0000.00415.79
4.4.10.0000.00315.79
4.4.00.0020.00215.79
4.3.110.0030.00015.79
4.3.100.0000.00315.79
4.3.90.0000.00315.79
4.3.80.0020.00215.79
4.3.70.0020.00215.79
4.3.60.0040.00015.79
4.3.50.0000.00415.79
4.3.40.0030.00015.79
4.3.30.0010.00115.79
4.3.20.0000.00315.79
4.3.10.0000.00315.79
4.3.00.0020.00115.79

preferences:
30.69 ms | 403 KiB | 5 Q