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(\bin2hex(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.3.60.0100.00718.43
8.3.50.0070.00716.61
8.3.40.0120.00418.85
8.3.30.0130.00918.55
8.3.20.0040.00421.87
8.3.10.0040.00421.91
8.3.00.0080.00019.69
8.2.180.0070.00725.92
8.2.170.0110.00718.91
8.2.160.0070.00722.96
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0080.00020.35
8.2.120.0070.00026.35
8.2.110.0030.00721.18
8.2.100.0080.00318.16
8.2.90.0040.00418.03
8.2.80.0080.00017.97
8.2.70.0040.00417.80
8.2.60.0040.00418.09
8.2.50.0040.00418.10
8.2.40.0050.00320.45
8.2.30.0040.00419.26
8.2.20.0030.00718.08
8.2.10.0040.00417.90
8.2.00.0000.00817.93
8.1.280.0060.01325.92
8.1.270.0050.00323.82
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00620.78
8.1.230.0040.00820.96
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0030.00617.00
8.1.180.0050.00318.10
8.1.170.0000.00818.80
8.1.160.0040.00418.84
8.1.150.0000.00818.71
8.1.140.0000.00719.43
8.1.130.0040.00418.79
8.1.120.0060.00317.42
8.1.110.0000.00717.45
8.1.100.0000.00717.46
8.1.90.0040.00417.26
8.1.80.0000.00717.31
8.1.70.0040.00417.29
8.1.60.0050.00317.48
8.1.50.0040.00417.44
8.1.40.0060.00317.46
8.1.30.0030.00517.62
8.1.20.0030.00617.55
8.1.10.0070.00017.58
8.1.00.0080.00017.54
8.0.300.0020.00521.70
8.0.290.0040.00416.75
8.0.280.0000.00718.32
8.0.270.0020.00517.31
8.0.260.0030.00319.09
8.0.250.0000.00717.01
8.0.240.0000.00816.81
8.0.230.0030.00316.95
8.0.220.0000.00816.87
8.0.210.0050.00216.82
8.0.200.0030.00316.82
8.0.190.0040.00416.80
8.0.180.0000.00716.82
8.0.170.0040.00416.85
8.0.160.0030.00316.82
8.0.150.0070.00016.91
8.0.140.0070.00016.72
8.0.130.0050.00313.39
8.0.120.0000.00716.89
8.0.110.0040.00416.90
8.0.100.0000.00916.89
8.0.90.0000.00716.98
8.0.80.0120.00316.95
8.0.70.0040.00416.93
8.0.60.0000.00816.89
8.0.50.0040.00416.75
8.0.30.0140.00817.11
8.0.20.0170.00517.41
8.0.10.0000.00817.09
8.0.00.0150.00616.96
7.4.330.0000.00515.55
7.4.320.0030.00316.46
7.4.300.0070.00016.61
7.4.290.0030.00316.61
7.4.280.0000.00816.50
7.4.270.0030.00316.61
7.4.260.0070.00016.58
7.4.250.0070.00016.57
7.4.240.0000.00816.61
7.4.230.0030.00316.71
7.4.220.0070.01716.55
7.4.210.0060.00916.59
7.4.200.0000.00816.71
7.4.160.0110.00416.43
7.4.150.0120.00617.40
7.4.140.0090.00917.86
7.4.130.0060.01516.41
7.4.120.0060.01216.45
7.4.110.0060.01116.68
7.4.100.0040.01816.52
7.4.90.0180.00016.63
7.4.80.0110.00619.39
7.4.70.0080.00816.48
7.4.60.0030.01316.48
7.4.50.0070.01016.45
7.4.40.0000.01716.66
7.4.30.0070.01116.52
7.4.10.0000.01715.26
7.4.00.0070.00914.99
7.3.330.0030.00313.30
7.3.320.0030.00313.16
7.3.310.0070.00016.21
7.3.300.0000.00716.33
7.3.290.0000.00716.32
7.3.280.0090.00916.28
7.3.270.0100.01017.40
7.3.260.0110.00716.36
7.3.250.0090.00816.34
7.3.240.0140.00916.42
7.3.230.0090.01516.58
7.3.210.0100.00716.38
7.3.200.0100.00716.54
7.3.190.0110.00616.54
7.3.180.0110.00616.28
7.3.170.0170.00016.24
7.3.160.0090.00616.30
7.3.130.0060.01314.78
7.3.120.0030.01515.00
7.3.110.0120.00614.46
7.3.100.0040.00814.91
7.3.90.0090.00614.80
7.3.80.0000.00814.91
7.3.70.0040.00714.84
7.3.60.0110.00414.84
7.3.50.0130.00014.54
7.3.40.0000.01314.77
7.3.30.0030.00914.89
7.3.20.0030.00616.68
7.3.10.0090.00016.59
7.3.00.0100.00316.68
7.2.330.0090.00916.68
7.2.320.0060.01516.46
7.2.310.0090.00916.30
7.2.300.0080.00816.62
7.2.290.0110.00516.56
7.2.260.0150.00414.97
7.2.250.0100.00714.95
7.2.240.0090.00614.81
7.2.230.0030.00914.87
7.2.220.0070.01015.09
7.2.210.0040.00815.14
7.2.200.0120.00314.73
7.2.190.0070.01014.84
7.2.180.0040.00814.91
7.2.170.0000.01414.95
7.2.160.0070.00714.94
7.2.150.0060.00616.48
7.2.140.0060.00316.82
7.2.130.0090.00316.70
7.2.120.0120.00016.93
7.2.110.0090.00616.78
7.2.100.0100.00316.76
7.2.90.0060.00916.84
7.2.80.0000.01716.87
7.2.70.0040.01116.66
7.2.60.0090.00516.90
7.2.50.0090.00617.00
7.2.40.0030.00916.67
7.2.30.0040.01116.82
7.2.20.0030.00716.87
7.2.10.0030.01016.73
7.2.00.0100.00716.50
7.1.330.0070.00715.73
7.1.320.0030.01015.69
7.1.310.0000.01115.78
7.1.300.0030.00715.60
7.1.290.0040.00715.74
7.1.280.0000.01415.86
7.1.270.0070.00715.73
7.1.260.0050.00515.62
7.1.250.0110.00015.82
7.1.240.0070.00715.95
7.1.230.0040.00415.79
7.1.220.0060.00615.73
7.1.210.0040.00415.65
7.1.200.0020.01015.65
7.1.190.0000.01415.83
7.1.180.0090.00615.73
7.1.170.0030.01415.80
7.1.160.0090.00615.58
7.1.150.0030.01215.74
7.1.140.0110.00415.64
7.1.130.0070.00715.52
7.1.120.0060.00915.77
7.1.110.0080.00415.80
7.1.100.0070.00715.89
7.1.90.0110.00315.54
7.1.80.0060.00815.93
7.1.70.0040.00916.44
7.1.60.0050.00716.50
7.1.50.0570.01024.27
7.1.40.0250.00824.26
7.1.30.0380.01124.24
7.1.20.0320.01224.38
7.1.10.0150.01215.23
7.1.00.0150.01015.35
7.0.330.0090.00615.38
7.0.320.0030.00615.51
7.0.310.0060.00315.50
7.0.300.0060.00615.18
7.0.290.0080.00015.21
7.0.280.0070.00315.54
7.0.270.0040.01115.37
7.0.260.0030.00715.26
7.0.250.0100.00315.60
7.0.240.0030.00715.42
7.0.230.0000.01315.53
7.0.220.0090.00315.41
7.0.210.0040.01215.40
7.0.200.0030.00816.10
7.0.190.0290.01015.08
7.0.180.0170.01314.78
7.0.170.0290.01114.83
7.0.160.0250.00714.75
7.0.150.0180.01014.88
7.0.140.0200.00714.87
7.0.130.0280.00715.01
7.0.120.0120.01015.06
7.0.110.0200.00814.96
7.0.100.0190.00514.87
7.0.90.0270.01014.95
7.0.80.0180.00814.94
7.0.70.0180.00714.93
7.0.60.0150.01014.77
7.0.50.0180.01714.95
7.0.40.0170.01014.05
7.0.30.0210.00313.91
7.0.20.0200.00614.02
7.0.10.0120.01614.01
7.0.00.0420.00914.01
5.6.400.0030.00614.27
5.6.390.0090.00414.29
5.6.380.0060.01014.11
5.6.370.0030.00613.88
5.6.360.0140.00013.93
5.6.350.0070.00414.11
5.6.340.0060.01014.36
5.6.330.0000.01314.23
5.6.320.0050.00514.09
5.6.310.0000.00914.23
5.6.300.0090.00314.04
5.6.290.0070.01014.17
5.6.280.0110.00414.32
5.6.270.0060.01014.31
5.6.260.0040.01114.33
5.6.250.0090.00614.13
5.6.240.0090.00314.05
5.6.230.0080.00314.24
5.6.220.0060.00814.33
5.6.210.0070.00714.25
5.6.200.0070.01314.31
5.6.190.0030.01014.23
5.6.180.0120.00314.19
5.6.170.0080.00314.25
5.6.160.0030.01014.11
5.6.150.0040.01214.14
5.6.140.0000.00813.88
5.6.130.0090.00614.00
5.6.120.0040.00413.95
5.6.110.0030.01014.44
5.6.100.0060.00914.02
5.6.90.0040.01414.18
5.6.80.0000.01014.15
5.6.70.0000.01213.98
5.6.60.0120.00313.98
5.6.50.0030.01013.89
5.6.40.0000.00914.05
5.6.30.0000.01414.09
5.6.20.0070.00413.80
5.6.10.0060.00614.05
5.6.00.0040.01114.06

preferences:
53.86 ms | 401 KiB | 5 Q