3v4l.org

run code in 300+ PHP versions simultaneously
<?php $e['invalid']['key'][] = 'a123'; $e['invalid']['key'][] = 'a456'; $e['invalid']['color'][] = 'red'; $e['missing']['key'][] = 'b72'; $e['missing']['color'][] = 'blue'; $e['missing']['color'][] = 'green'; define("ERROR_LOOKUP", [ 'invalid' => [' is not a valid ', ''], 'missing' => [' is a required ', ' - other functions have dependencies on it'], ]); define("ERROR_TYPES", array_keys(ERROR_LOOKUP)); $errors = []; foreach ($e as $type => $subtypes) { if (!in_array($type, ERROR_TYPES)) { continue; } foreach ($subtypes as $subtype => $entry) { foreach ($entry as $string) { $errors[] = $string . implode($subtype, ERROR_LOOKUP[$type]); } } } echo implode("\n", $errors);

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.130.0110.00617.94
8.4.120.0120.00720.67
8.4.110.0120.00918.80
8.4.100.0050.00517.69
8.4.90.0100.01117.64
8.4.80.0120.00817.98
8.4.70.0080.01217.82
8.4.60.0150.00618.86
8.4.50.0120.00719.51
8.4.40.0060.01319.38
8.4.30.0130.00622.23
8.4.20.0060.01320.68
8.4.10.0090.00022.43
8.3.260.0100.01016.89
8.3.250.0130.00618.81
8.3.240.0130.00716.80
8.3.230.0110.00816.50
8.3.220.0030.00517.22
8.3.210.0110.00816.73
8.3.200.0030.00516.67
8.3.190.0060.00217.29
8.3.180.0080.00216.60
8.3.170.0150.00418.89
8.3.160.0040.00418.41
8.3.150.0070.01120.78
8.3.140.0080.00016.46
8.3.130.0070.00716.49
8.3.120.0170.00320.60
8.3.110.0070.00716.47
8.3.100.0030.00616.80
8.3.90.0040.00418.31
8.3.80.0090.00018.30
8.3.70.0130.00318.18
8.3.60.0110.00718.68
8.3.50.0100.00317.60
8.3.40.0100.00618.87
8.3.30.0100.00718.75
8.3.20.0040.00421.87
8.3.10.0040.00423.53
8.3.00.0000.00822.52
8.2.290.0090.00619.05
8.2.280.0030.00520.05
8.2.270.0070.01118.96
8.2.260.0000.01518.37
8.2.250.0030.00616.59
8.2.240.0030.00716.56
8.2.230.0060.00320.94
8.2.220.0060.00324.06
8.2.210.0040.00426.77
8.2.200.0030.00616.75
8.2.190.0150.00616.58
8.2.180.0110.01116.88
8.2.170.0090.00622.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0000.00826.16
8.2.110.0040.00419.18
8.2.100.0000.01218.22
8.2.90.0080.00018.28
8.2.80.0000.00818.22
8.2.70.0080.00017.93
8.2.60.0090.00018.16
8.2.50.0040.00418.10
8.2.40.0040.00419.48
8.2.30.0060.00319.40
8.2.20.0000.00718.34
8.2.10.0060.00319.45
8.2.00.0050.00319.27
8.1.330.0120.00816.32
8.1.320.0080.01016.43
8.1.310.0110.00418.21
8.1.300.0080.00816.01
8.1.290.0030.00718.88
8.1.280.0110.01125.92
8.1.270.0000.00820.32
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0000.00922.04
8.1.230.0040.00822.75
8.1.220.0030.00617.78
8.1.210.0040.00418.77
8.1.200.0040.00417.22
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0060.00320.63
8.1.160.0020.00519.03
8.1.150.0050.00218.84
8.1.140.0030.00719.04
8.1.130.0050.00520.23
8.1.120.0050.00317.47
8.1.110.0000.00817.32
8.1.100.0040.00417.47
8.1.90.0040.00417.48
8.1.80.0030.00517.43
8.1.70.0040.00417.53
8.1.60.0000.00817.44
8.1.50.0040.00417.45
8.1.40.0040.00417.55
8.1.30.0000.00817.75
8.1.20.0070.00017.58
8.1.10.0040.00417.61
8.1.00.0000.00817.40
8.0.300.0000.00719.60
8.0.290.0040.00416.75
8.0.280.0000.00818.49
8.0.270.0040.00417.21
8.0.260.0000.00620.01
8.0.250.0000.00717.04
8.0.240.0030.00316.95
8.0.230.0030.00316.98
8.0.220.0000.00716.80
8.0.210.0000.00716.91
8.0.200.0030.00316.88
8.0.190.0000.00716.98
8.0.180.0030.00616.96
8.0.170.0000.00916.93
8.0.160.0030.00616.98
8.0.150.0040.00416.79
8.0.140.0080.00016.78
8.0.130.0050.00013.32
8.0.120.0000.00716.79
8.0.110.0040.00416.95
8.0.100.0000.00816.81
8.0.90.0030.00616.75
8.0.80.0090.01316.96
8.0.70.0040.00416.82
8.0.60.0000.00716.91
8.0.50.0000.00716.78
8.0.30.0150.00417.00
8.0.20.0130.00617.00
8.0.10.0000.00716.88
8.0.00.0090.00916.93
7.4.330.0000.00515.55
7.4.320.0000.00716.64
7.4.300.0060.00016.53
7.4.290.0000.00716.52
7.4.280.0040.00416.52
7.4.270.0070.00016.48
7.4.260.0050.00013.30
7.4.250.0000.00716.64
7.4.240.0040.00316.58
7.4.230.0070.00016.68
7.4.220.0040.00416.47
7.4.210.0010.01416.53
7.4.200.0040.00416.33
7.4.130.0100.00716.49
7.4.120.0060.01316.47
7.4.110.0130.00316.59
7.4.100.0100.00716.71
7.4.90.0110.01016.67
7.4.80.0030.01919.39
7.4.70.0100.01316.55
7.4.60.0130.00716.36
7.4.50.0040.01116.41
7.4.40.0080.00816.65
7.4.00.0070.00714.92
7.3.330.0080.00016.47
7.3.320.0030.00313.08
7.3.310.0040.00416.29
7.3.300.0070.00016.30
7.3.290.0110.00616.38
7.3.280.0120.00316.27
7.3.260.0100.00816.34
7.3.240.0080.00816.55
7.3.230.0100.00716.52
7.3.210.0140.00316.41
7.3.200.0120.00916.36
7.3.190.0080.00816.31
7.3.180.0090.00616.54
7.3.170.0030.01316.42
7.3.160.0100.00616.60
7.3.100.0060.00914.82
7.3.90.0040.01414.77
7.3.80.0080.00614.98
7.3.70.0100.00315.00
7.3.60.0070.00714.85
7.3.50.0060.00814.73
7.3.40.0040.01114.57
7.3.30.0000.01414.70
7.3.20.0080.00514.71
7.3.10.0090.00614.79
7.3.00.0130.00714.95
7.2.330.0060.01316.48
7.2.320.0090.00916.78
7.2.310.0060.01216.86
7.2.300.0110.01116.69
7.2.290.0100.00716.52
7.2.230.0090.00615.08
7.2.220.0060.01215.08
7.2.210.0000.01414.76
7.2.200.0060.00915.26
7.2.190.0030.01114.65
7.2.180.0090.00615.09
7.2.170.0040.01115.02
7.2.160.0110.00314.92
7.2.150.0060.00914.86
7.2.140.0060.00915.09
7.2.130.0110.00614.99
7.2.120.0130.01015.24
7.2.110.0090.01215.35
7.2.100.0120.01014.98
7.2.90.0100.00514.89
7.2.80.0090.01215.34
7.2.70.0080.01115.04
7.2.60.0040.01515.13
7.2.50.0120.00414.75
7.2.40.0090.00814.99
7.2.30.0120.00415.09
7.2.20.0110.00615.05
7.2.10.0100.00615.18
7.2.00.0080.00815.04
7.1.320.0100.00713.68
7.1.310.0060.00914.05
7.1.300.0080.00614.13
7.1.290.0090.00613.79
7.1.280.0070.01014.01
7.1.270.0030.01114.09
7.1.260.0070.00714.06
7.1.250.0110.00813.88

preferences:
28.54 ms | 403 KiB | 5 Q