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 ($e as $type => $subtypes) { if (!in_array($type, ERROR_TYPES)) { 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.4.130.0110.00920.20
8.4.120.0120.00917.61
8.4.110.0110.01017.88
8.4.100.0130.01017.86
8.4.90.0070.00222.63
8.4.80.0100.01119.04
8.4.70.0080.00519.01
8.4.60.0100.00520.63
8.4.50.0120.00818.48
8.4.40.0160.00319.46
8.4.30.0070.01322.53
8.4.20.0160.00320.53
8.4.10.0090.00022.51
8.3.260.0100.00916.61
8.3.250.0120.00616.42
8.3.240.0110.01216.64
8.3.230.0140.00516.58
8.3.220.0050.00218.93
8.3.210.0100.00916.45
8.3.200.0040.00416.67
8.3.190.0040.01117.11
8.3.180.0100.00918.79
8.3.170.0090.00917.29
8.3.160.0130.00716.64
8.3.150.0130.00617.17
8.3.140.0090.00916.71
8.3.130.0040.00416.80
8.3.120.0110.00718.88
8.3.110.0090.00016.42
8.3.100.0030.00716.69
8.3.90.0000.00816.69
8.3.80.0030.00718.64
8.3.70.0110.00718.55
8.3.60.0070.01118.68
8.3.50.0100.00518.23
8.3.40.0060.00918.84
8.3.30.0120.00318.83
8.3.20.0040.00421.94
8.3.10.0070.00023.48
8.3.00.0000.00722.43
8.2.290.0080.00616.74
8.2.280.0140.00718.59
8.2.270.0120.00616.41
8.2.260.0040.00417.41
8.2.250.0110.00718.26
8.2.240.0040.00417.21
8.2.230.0090.00020.94
8.2.220.0040.01124.06
8.2.210.0100.00726.77
8.2.200.0090.00016.66
8.2.190.0040.01116.75
8.2.180.0150.00018.42
8.2.170.0080.00822.96
8.2.160.0150.00020.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0050.00326.16
8.2.110.0070.00321.15
8.2.100.0090.00317.78
8.2.90.0060.00317.97
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0040.00417.63
8.2.50.0040.00417.63
8.2.40.0000.00821.06
8.2.30.0040.00419.29
8.2.20.0030.00518.32
8.2.10.0050.00319.33
8.2.00.0000.00819.38
8.1.330.0110.00916.14
8.1.320.0150.00517.70
8.1.310.0030.00516.79
8.1.300.0130.00316.05
8.1.290.0070.00418.88
8.1.280.0180.00625.92
8.1.270.0060.00320.44
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00323.92
8.1.230.0000.01220.96
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0040.00617.21
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0000.00820.77
8.1.160.0000.00819.01
8.1.150.0040.00418.91
8.1.140.0060.00320.71
8.1.130.0000.00720.07
8.1.120.0000.00717.45
8.1.110.0030.00617.51
8.1.100.0060.00317.37
8.1.90.0040.00417.41
8.1.80.0040.00417.43
8.1.70.0080.00017.39
8.1.60.0030.00517.46
8.1.50.0080.00017.59
8.1.40.0050.00317.47
8.1.30.0040.00417.61
8.1.20.0020.00717.65
8.1.10.0000.00817.53
8.1.00.0020.00517.56
8.0.300.0000.00719.96
8.0.290.0060.00316.63
8.0.280.0040.00418.47
8.0.270.0040.00417.28
8.0.260.0000.00620.09
8.0.250.0000.00716.89
8.0.240.0030.00317.00
8.0.230.0030.00317.00
8.0.220.0030.00316.79
8.0.210.0000.00716.75
8.0.200.0000.00716.89
8.0.190.0040.00317.02
8.0.180.0000.00816.90
8.0.170.0030.00616.94
8.0.160.0000.00716.93
8.0.150.0050.00316.94
8.0.140.0070.00016.89
8.0.130.0030.00313.43
8.0.120.0040.00416.77
8.0.110.0050.00216.86
8.0.100.0080.00016.90
8.0.90.0040.00416.82
8.0.80.0100.01216.92
8.0.70.0050.00316.75
8.0.60.0050.00316.80
8.0.50.0040.00417.03
8.0.30.0060.01316.87
8.0.20.0090.00917.08
8.0.10.0080.00017.08
8.0.00.0070.01116.76
7.4.330.0000.00515.55
7.4.320.0030.00316.59
7.4.300.0060.00016.45
7.4.290.0000.00816.62
7.4.280.0040.00416.53
7.4.270.0070.00316.66
7.4.260.0000.00613.30
7.4.250.0040.00416.66
7.4.240.0000.00816.62
7.4.230.0030.00316.63
7.4.220.0050.00216.61
7.4.210.0060.00916.55
7.4.200.0000.00716.43
7.4.140.0100.00717.86
7.4.130.0060.01616.49
7.4.120.0100.00716.34
7.4.110.0060.01516.58
7.4.100.0060.01216.47
7.4.90.0070.01016.64
7.4.80.0210.00019.39
7.4.70.0100.00616.70
7.4.60.0170.00016.64
7.4.50.0070.01116.21
7.4.40.0140.00416.56
7.4.00.0030.01114.94
7.3.330.0000.00716.40
7.3.320.0000.00513.28
7.3.310.0070.00016.45
7.3.300.0070.00016.25
7.3.290.0070.00916.31
7.3.260.0130.00716.43
7.3.240.0070.00916.57
7.3.230.0120.00616.33
7.3.210.0140.00316.29
7.3.200.0070.01016.39
7.3.190.0110.00516.39
7.3.180.0120.00916.72
7.3.170.0060.01116.42
7.3.160.0080.00816.50
7.3.120.0090.01314.74
7.3.110.0090.00614.66
7.3.100.0060.00914.70
7.3.90.0050.00814.77
7.3.80.0050.01014.85
7.3.70.0080.00714.86
7.3.60.0060.00814.73
7.3.50.0060.00714.83
7.3.40.0090.00814.81
7.3.30.0090.00614.76
7.3.20.0070.00615.22
7.3.10.0070.00815.26
7.3.00.0070.00815.34
7.2.330.0100.00716.49
7.2.320.0100.01316.67
7.2.310.0160.00816.71
7.2.300.0060.01316.71
7.2.290.0060.01116.69
7.2.240.0060.01114.92
7.2.230.0050.00915.09
7.2.220.0090.00714.88
7.2.210.0080.00615.01
7.2.200.0070.00915.11
7.2.190.0100.00314.92
7.2.180.0080.00614.86
7.2.170.0070.00915.04
7.2.160.0070.00814.90
7.2.150.0100.00515.49
7.2.140.0070.00915.50
7.2.130.0110.00615.53
7.2.120.0080.00815.52
7.2.110.0060.00915.54
7.2.100.0090.00615.58
7.2.90.0080.00915.60
7.2.80.0100.00615.51
7.2.70.0080.00715.59
7.2.60.0070.00915.52
7.2.50.0080.00815.59
7.2.40.0090.00715.54
7.2.30.0080.00715.53
7.2.20.0080.00715.68
7.2.10.0060.01015.58
7.2.00.0060.00915.71
7.1.330.0100.00315.34
7.1.320.0070.00614.36
7.1.310.0110.00614.33
7.1.300.0040.01014.30
7.1.290.0070.00814.45
7.1.280.0110.00614.38
7.1.270.0060.00814.34
7.1.260.0090.00614.43
7.1.250.0070.00714.51

preferences:
124.05 ms | 403 KiB | 5 Q