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' => '%s is not a valid %s', 'missing' => '%s is a required %s - other functions have dependencies on it', ]); $errors = []; foreach ($e as $type => $subtypes) { if (!isset(ERROR_LOOKUP[$type])) { continue; } foreach ($subtypes as $subtype => $entry) { foreach ($entry as $string) { $errors[] = sprintf(ERROR_LOOKUP[$type], $subtype, $string); } } } 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.3.60.0090.00616.75
8.3.50.0060.00918.07
8.3.40.0040.01118.66
8.3.30.0110.00418.79
8.3.20.0040.00423.53
8.3.10.0060.00321.86
8.3.00.0000.00822.48
8.2.180.0180.00418.29
8.2.170.0100.00322.96
8.2.160.0030.01020.35
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0140.00426.16
8.2.110.0090.00022.16
8.2.100.0140.00017.78
8.2.90.0040.00417.75
8.2.80.0050.00318.78
8.2.70.0050.00317.63
8.2.60.0080.00018.34
8.2.50.0080.00018.10
8.2.40.0090.00021.02
8.2.30.0070.00019.28
8.2.20.0070.00018.35
8.2.10.0000.00819.24
8.2.00.0040.00419.19
8.1.280.0100.00325.92
8.1.270.0000.00820.47
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0060.00320.84
8.1.230.0030.00717.89
8.1.220.0000.00817.78
8.1.210.0000.00918.77
8.1.200.0030.00617.23
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0050.00320.68
8.1.160.0040.00418.94
8.1.150.0050.00318.89
8.1.140.0000.00719.07
8.1.130.0000.00717.42
8.1.120.0040.00417.37
8.1.110.0040.00417.47
8.1.100.0030.00317.49
8.1.90.0030.00317.37
8.1.80.0000.00717.38
8.1.70.0030.00317.38
8.1.60.0050.00517.54
8.1.50.0040.00417.43
8.1.40.0000.00817.41
8.1.30.0070.00017.65
8.1.20.0060.00617.64
8.1.10.0000.00817.54
8.1.00.0080.00017.53
8.0.300.0080.00020.43
8.0.290.0090.00016.62
8.0.280.0030.00318.45
8.0.270.0000.00818.62
8.0.260.0030.00316.82
8.0.250.0030.00316.90
8.0.240.0050.00216.98
8.0.230.0000.00816.95
8.0.220.0000.00716.82
8.0.210.0030.00316.79
8.0.200.0030.00316.87
8.0.190.0040.00416.84
8.0.180.0000.00816.96
8.0.170.0030.00516.92
8.0.160.0060.00316.81
8.0.150.0070.00016.82
8.0.140.0040.00316.78
8.0.130.0000.00613.29
8.0.120.0050.00216.85
8.0.110.0030.00516.89
8.0.100.0000.00716.95
8.0.90.0030.00616.79
8.0.80.0000.01416.87
8.0.70.0070.00017.01
8.0.60.0040.00416.77
8.0.50.0050.00316.79
8.0.30.0090.00916.87
8.0.20.0090.00916.95
8.0.10.0000.00716.95
8.0.00.0120.00916.59
7.4.330.0050.00015.55
7.4.320.0030.00316.52
7.4.300.0030.00316.50
7.4.290.0070.00016.51
7.4.280.0040.00416.48
7.4.270.0040.00416.54
7.4.260.0000.00513.39
7.4.250.0050.00216.55
7.4.240.0000.00716.62
7.4.230.0080.00016.62
7.4.220.0050.00216.35
7.4.210.0090.00616.56
7.4.200.0040.00416.50
7.4.140.0120.00617.86
7.4.130.0140.00716.51
7.4.120.0150.00916.40
7.4.110.0030.01416.45
7.4.100.0120.00416.65
7.4.90.0070.01016.38
7.4.80.0130.00519.39
7.4.70.0100.00716.47
7.4.60.0060.00916.62
7.4.50.0030.01016.12
7.4.40.0080.01116.30
7.4.00.0070.01114.95
7.3.330.0050.00316.18
7.3.320.0050.00013.13
7.3.310.0060.00016.32
7.3.300.0040.00416.31
7.3.290.0040.00416.16
7.3.260.0100.01116.43
7.3.230.0170.00016.34
7.3.210.0030.02116.36
7.3.200.0150.00616.70
7.3.190.0180.01516.58
7.3.180.0120.00916.46
7.3.170.0110.00616.37
7.3.160.0130.00316.61
7.3.110.0140.00614.66
7.3.100.0130.00714.80
7.3.90.0060.01714.84
7.3.80.0160.00314.98
7.3.70.0080.01014.67
7.3.60.0170.00414.92
7.3.50.0110.00914.75
7.3.40.0130.00614.61
7.3.30.0160.00314.87
7.3.20.0040.01414.86
7.3.10.0110.00314.96
7.3.00.0110.00714.63
7.2.330.0100.00716.73
7.2.320.0180.00416.71
7.2.310.0100.00716.66
7.2.300.0150.00416.70
7.2.290.0160.00016.33
7.2.240.0100.01115.09
7.2.230.0030.01714.92
7.2.220.0100.01114.95
7.2.210.0150.00614.85
7.2.200.0080.00915.23
7.2.190.0180.00314.68
7.2.180.0130.00614.67
7.2.170.0060.01415.05
7.2.160.0060.01314.89
7.2.150.0030.01615.10
7.2.140.0100.00715.21
7.2.130.0090.00914.81
7.2.120.0110.01015.07
7.2.110.0030.00315.23
7.2.100.0040.01415.19
7.2.90.0070.01415.04
7.2.80.0030.01714.93
7.2.70.0140.00415.11
7.2.60.0100.00714.97
7.2.50.0110.00815.13
7.2.40.0060.01315.23
7.2.30.0130.00715.19
7.2.20.0070.01115.00
7.2.10.0150.00814.95
7.2.00.0130.00814.83
7.1.330.0070.01314.14
7.1.320.0130.00713.91
7.1.310.0160.00414.11
7.1.300.0090.00513.93
7.1.290.0140.00513.97
7.1.280.0070.01114.09
7.1.270.0090.00914.04
7.1.260.0120.00613.52
7.1.250.0070.01313.68

preferences:
58.46 ms | 400 KiB | 5 Q