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', ]); define("ERROR_TYPES", array_keys(ERROR_LOOKUP)); $errors = []; foreach (array_diff_key($e, ERROR_TYPES) 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.4.130.0100.01017.50
8.4.120.0130.00520.60
8.4.110.0090.00822.60
8.4.100.0100.00817.95
8.4.90.0130.00718.78
8.4.80.0130.00819.69
8.4.70.0120.00917.80
8.4.60.0140.00618.67
8.4.50.0030.00618.69
8.4.40.0100.00319.41
8.4.30.0130.01022.52
8.4.20.0070.00318.83
8.4.10.0040.00422.52
8.3.260.0120.00616.57
8.3.250.0110.00918.83
8.3.240.0090.00916.67
8.3.230.0120.00716.73
8.3.220.0050.00317.17
8.3.210.0060.00216.66
8.3.200.0080.00116.59
8.3.190.0050.00518.86
8.3.180.0050.00418.87
8.3.170.0070.01117.18
8.3.160.0070.01118.56
8.3.150.0040.00417.08
8.3.140.0170.00320.55
8.3.130.0090.00018.26
8.3.120.0110.00820.88
8.3.110.0040.00416.65
8.3.100.0060.00616.38
8.3.90.0080.00016.63
8.3.80.0080.00018.30
8.3.70.0180.00418.56
8.3.60.0150.00618.53
8.3.50.0080.00618.35
8.3.40.0070.00718.88
8.3.30.0090.00618.60
8.3.20.0030.00621.89
8.3.10.0090.00023.61
8.3.00.0080.00022.52
8.2.290.0150.00420.43
8.2.280.0120.00718.57
8.2.270.0000.01416.63
8.2.260.0080.00017.30
8.2.250.0060.00316.62
8.2.240.0040.00417.41
8.2.230.0040.00420.94
8.2.220.0100.00624.06
8.2.210.0040.00426.77
8.2.200.0040.00416.50
8.2.190.0110.00416.63
8.2.180.0060.00916.88
8.2.170.0120.00322.96
8.2.160.0000.01420.22
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00019.96
8.2.110.0030.00620.55
8.2.100.0060.00617.84
8.2.90.0040.00420.59
8.2.80.0040.00420.39
8.2.70.0040.00418.16
8.2.60.0080.00018.16
8.2.50.0000.00818.10
8.2.40.0040.00421.25
8.2.30.0030.00719.40
8.2.20.0020.00518.43
8.2.10.0000.00719.30
8.2.00.0000.00719.21
8.1.330.0110.00723.51
8.1.320.0100.01118.18
8.1.310.0080.00016.82
8.1.300.0040.00418.71
8.1.290.0090.00018.88
8.1.280.0080.00625.92
8.1.270.0080.00020.50
8.1.260.0060.00326.35
8.1.250.0000.00728.09
8.1.240.0040.00423.55
8.1.230.0080.00420.66
8.1.220.0000.00817.76
8.1.210.0000.00819.15
8.1.200.0040.00417.25
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0040.00418.61
8.1.160.0070.00019.02
8.1.150.0040.00418.90
8.1.140.0080.00020.80
8.1.130.0000.00720.16
8.1.120.0030.00317.50
8.1.110.0050.00317.50
8.1.100.0030.00417.52
8.1.90.0000.00717.37
8.1.80.0000.00817.36
8.1.70.0030.00317.45
8.1.60.0040.00417.62
8.1.50.0040.00417.60
8.1.40.0000.00817.54
8.1.30.0030.00617.67
8.1.20.0040.00417.56
8.1.10.0000.00717.59
8.1.00.0030.00617.38
8.0.300.0060.00319.88
8.0.290.0060.00316.75
8.0.280.0030.00318.45
8.0.270.0030.00317.24
8.0.260.0030.00319.96
8.0.250.0000.00816.84
8.0.240.0030.00317.02
8.0.230.0030.00316.96
8.0.220.0070.00017.00
8.0.210.0000.00716.97
8.0.200.0070.00016.98
8.0.190.0030.00316.84
8.0.180.0090.00016.83
8.0.170.0060.00316.93
8.0.160.0040.00416.88
8.0.150.0000.01016.82
8.0.140.0040.00416.75
8.0.130.0030.00313.35
8.0.120.0000.00716.82
8.0.110.0030.00516.73
8.0.100.0040.00416.79
8.0.90.0030.00616.92
8.0.80.0060.01116.86
8.0.70.0040.00416.76
8.0.60.0030.00516.93
8.0.50.0020.00516.82
8.0.30.0170.00617.21
8.0.20.0150.00817.20
8.0.10.0000.00716.87
8.0.00.0110.00616.86
7.4.330.0020.00215.55
7.4.320.0000.00616.45
7.4.300.0000.00616.51
7.4.290.0050.00516.52
7.4.280.0040.00416.59
7.4.270.0000.00716.67
7.4.260.0040.00313.36
7.4.250.0040.00416.50
7.4.240.0000.00716.48
7.4.230.0070.00016.64
7.4.220.0050.00216.73
7.4.210.0070.01116.65
7.4.200.0030.00316.63
7.4.140.0090.00917.86
7.4.130.0080.00816.74
7.4.120.0060.01216.75
7.4.110.0060.01016.46
7.4.100.0140.00416.39
7.4.90.0100.01416.64
7.4.80.0070.01019.39
7.4.70.0060.00916.53
7.4.60.0080.00816.55
7.4.50.0090.00616.35
7.4.40.0080.00816.63
7.4.00.0030.01014.87
7.3.330.0040.00416.32
7.3.320.0000.00513.21
7.3.310.0030.00316.16
7.3.300.0040.00416.37
7.3.290.0080.00516.34
7.3.280.0070.00716.33
7.3.260.0100.00816.56
7.3.240.0100.00816.45
7.3.230.0120.00816.70
7.3.210.0110.00716.38
7.3.200.0090.00916.68
7.3.190.0080.00816.66
7.3.180.0120.00316.32
7.3.170.0120.00616.57
7.3.160.0080.00816.45
7.3.110.0030.01114.99
7.3.100.0100.00714.87
7.3.90.0160.02214.76
7.3.80.0030.01014.80
7.3.70.0030.01015.08
7.3.60.0000.01314.89
7.3.50.0100.00714.65
7.3.40.0070.00714.60
7.3.30.0060.00715.05
7.3.20.0110.00314.95
7.3.10.0060.00814.88
7.3.00.0100.00314.77
7.2.330.0040.01316.60
7.2.320.0090.00916.81
7.2.310.0060.01216.70
7.2.300.0090.01316.38
7.2.290.0100.00716.70
7.2.240.0050.01015.09
7.2.230.0090.00914.79
7.2.220.0040.01114.86
7.2.210.0100.00314.95
7.2.200.0030.01015.20
7.2.190.0100.00715.21
7.2.180.0100.00715.07
7.2.170.0060.00915.11
7.2.160.0110.00314.95
7.2.150.0060.00915.27
7.2.140.0140.00315.17
7.2.130.0060.00815.13
7.2.120.0000.01415.09
7.2.110.0100.00315.22
7.2.100.0060.00714.95
7.2.90.0030.01115.07
7.2.80.0070.00715.25
7.2.70.0070.00715.17
7.2.60.0060.00915.05
7.2.50.0090.00614.86
7.2.40.0160.00315.07
7.2.30.0100.01014.89
7.2.20.0100.01014.61
7.2.10.0120.00915.13
7.2.00.0090.01014.94
7.1.330.0070.01014.07
7.1.320.0090.00414.13
7.1.310.0030.00914.05
7.1.300.0100.01014.05
7.1.290.0120.00013.88
7.1.280.0120.00314.05
7.1.270.0110.00313.95
7.1.260.0060.00613.72
7.1.250.0030.00914.17

preferences:
29.28 ms | 403 KiB | 5 Q