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 (array_intersect_key($e, ERROR_LOOKUP) as $type => $subtypes) { 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.70.0110.01116.63
8.3.60.0060.01318.30
8.3.50.0090.00618.17
8.3.40.0120.00318.67
8.3.30.0110.00318.71
8.3.20.0070.00023.53
8.3.10.0040.00421.94
8.3.00.0100.00022.29
8.2.190.0120.00918.41
8.2.180.0110.00725.92
8.2.170.0120.00622.96
8.2.160.0160.00020.38
8.2.150.0070.00025.66
8.2.140.0000.00724.66
8.2.130.0000.00826.16
8.2.120.0040.00426.16
8.2.110.0060.00320.52
8.2.100.0070.00417.91
8.2.90.0000.00919.76
8.2.80.0080.00019.48
8.2.70.0030.00617.75
8.2.60.0060.00318.05
8.2.50.0000.00918.07
8.2.40.0030.00619.89
8.2.30.0000.00818.04
8.2.20.0040.00418.38
8.2.10.0000.00919.38
8.2.00.0000.00719.32
8.1.280.0090.00925.92
8.1.270.0120.00322.06
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0090.00022.66
8.1.230.0090.00322.49
8.1.220.0000.00817.79
8.1.210.0040.00418.97
8.1.200.0070.00417.36
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0040.00418.50
8.1.160.0040.00418.88
8.1.150.0030.00518.88
8.1.140.0090.00020.79
8.1.130.0030.00620.12
8.1.120.0030.00417.36
8.1.110.0030.00517.46
8.1.100.0000.00817.34
8.1.90.0070.00017.46
8.1.80.0040.00417.44
8.1.70.0070.00017.36
8.1.60.0050.00317.57
8.1.50.0040.00417.56
8.1.40.0000.00817.50
8.1.30.0080.00017.48
8.1.20.0000.01017.62
8.1.10.0090.00017.61
8.1.00.0000.00717.53
8.0.300.0040.00419.84
8.0.290.0000.00716.63
8.0.280.0030.00318.46
8.0.270.0030.00316.84
8.0.260.0000.00619.98
8.0.250.0040.00416.88
8.0.240.0000.00616.85
8.0.230.0070.00017.00
8.0.220.0000.00616.77
8.0.210.0030.00316.89
8.0.200.0030.00316.96
8.0.190.0000.00716.91
8.0.180.0040.00416.91
8.0.170.0030.00616.90
8.0.160.0040.00416.79
8.0.150.0000.00716.72
8.0.140.0000.00716.82
8.0.130.0050.00013.37
8.0.120.0030.00516.93
8.0.110.0040.00416.77
8.0.100.0070.00016.84
8.0.90.0030.00616.95
8.0.80.0050.01116.80
8.0.70.0000.00716.84
8.0.60.0050.00216.93
8.0.50.0080.00016.77
8.0.30.0100.00716.96
8.0.20.0090.01217.03
8.0.10.0030.00316.83
8.0.00.0110.00716.78
7.4.330.0000.00415.55
7.4.320.0000.00616.44
7.4.300.0070.00016.58
7.4.290.0020.00516.37
7.4.280.0060.00316.42
7.4.270.0050.00316.51
7.4.260.0000.00613.20
7.4.250.0000.00816.39
7.4.240.0040.00416.54
7.4.230.0030.00316.68
7.4.220.0050.00216.61
7.4.210.0080.00916.53
7.4.200.0030.00316.68
7.4.140.0080.00817.86
7.4.130.0140.01016.61
7.4.120.0070.01616.63
7.4.110.0030.01316.56
7.4.100.0110.00516.55
7.4.90.0070.01016.49
7.4.80.0060.01019.39
7.4.70.0060.00916.48
7.4.60.0170.01916.56
7.4.50.0070.00716.59
7.4.40.0100.00916.68
7.4.00.0030.01115.09
7.3.330.0000.00716.16
7.3.320.0000.00513.17
7.3.310.0000.00716.16
7.3.300.0020.00516.23
7.3.290.0060.01116.38
7.3.260.0100.01116.48
7.3.230.0120.00416.34
7.3.210.0000.01716.67
7.3.200.0060.01316.41
7.3.190.0100.01016.71
7.3.180.0110.01016.45
7.3.170.0100.00716.23
7.3.160.0100.00716.45
7.3.110.0060.00614.74
7.3.100.0130.00014.93
7.3.90.0070.00714.58
7.3.80.0060.00914.98
7.3.70.0180.01214.88
7.3.60.0050.00814.88
7.3.50.0030.01014.83
7.3.40.0150.00014.71
7.3.30.0030.01014.91
7.3.20.0090.00614.90
7.3.10.0070.00714.87
7.3.00.0070.00714.93
7.2.330.0150.00316.53
7.2.320.0100.00716.51
7.2.310.0000.01616.55
7.2.300.0110.00616.52
7.2.290.0170.00416.74
7.2.240.0070.00714.88
7.2.230.0060.01015.19
7.2.220.0060.00915.03
7.2.210.0000.01415.18
7.2.200.0040.01014.94
7.2.190.0030.01014.99
7.2.180.0100.00314.88
7.2.170.0110.00415.04
7.2.160.0080.00514.95
7.2.150.0090.00615.22
7.2.140.0070.00715.26
7.2.130.0050.00915.23
7.2.120.0080.00515.16
7.2.110.0000.01415.22
7.2.100.0000.01715.24
7.2.90.0130.00415.21
7.2.80.0120.00614.89
7.2.70.0080.01215.00
7.2.60.0080.01115.31
7.2.50.0100.00315.05
7.2.40.0100.01015.27
7.2.30.0070.00715.14
7.2.20.0070.00715.24
7.2.10.0060.00915.10
7.2.00.0120.00915.22
7.1.330.0040.00914.01
7.1.320.0070.00614.07
7.1.310.0060.00613.88
7.1.300.0100.00314.15
7.1.290.0090.00514.07
7.1.280.0030.01014.04
7.1.270.0130.00014.04
7.1.260.0030.01114.21
7.1.250.0030.01013.77

preferences:
66.44 ms | 401 KiB | 5 Q