3v4l.org

run code in 300+ PHP versions simultaneously
<?php $messages = [ 'Fout in veld 1', 'Fout in veld 2', 'Fouten in veld 3' => [ 'titel', 'is niet uniek', 'moet minimaal 3 tekens lang zijn', ], 'Fout in veld 6' ]; function rec($messages, $i = 0) { foreach($messages as $title => $message) { if (is_array($message)) { $k = $i + 1; return rec($message, $k); } $output = ''; for ($j = -1; $j < $i; $j++) { $output .= ' - '; } echo $output . $message + "\n"; } } rec($messages);

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.0200.00018.68
8.3.50.0130.00521.15
8.3.40.0070.00718.96
8.3.30.0040.01118.68
8.3.20.0040.00420.20
8.3.10.0060.00321.72
8.3.00.0080.00020.29
8.2.180.0140.00716.63
8.2.170.0070.00722.96
8.2.160.0070.00720.39
8.2.150.0070.00025.66
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0060.00317.75
8.2.110.0030.00620.38
8.2.100.0040.00717.75
8.2.90.0040.00419.13
8.2.80.0000.00817.97
8.2.70.0080.00017.75
8.2.60.0080.00318.05
8.2.50.0030.00618.07
8.2.40.0090.00019.27
8.2.30.0040.00420.55
8.2.20.0040.00417.86
8.2.10.0070.00018.02
8.2.00.0040.00418.17
8.1.280.0100.01025.92
8.1.270.0150.00623.67
8.1.260.0030.00526.35
8.1.250.0020.00528.09
8.1.240.0090.00922.02
8.1.230.0090.00317.48
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0080.00017.36
8.1.180.0000.00818.10
8.1.170.0060.00318.65
8.1.160.0040.00421.96
8.1.150.0080.00018.95
8.1.140.0040.00417.41
8.1.130.0070.00017.74
8.1.120.0000.00717.50
8.1.110.0030.00317.39
8.1.100.0070.00017.44
8.1.90.0070.00017.41
8.1.80.0050.00217.46
8.1.70.0040.00417.50
8.1.60.0070.00017.46
8.1.50.0060.00317.51
8.1.40.0040.00417.49
8.1.30.0050.00317.52
8.1.20.0020.00517.71
8.1.10.0040.00417.61
8.1.00.0040.00417.46
8.0.300.0080.00018.77
8.0.290.0070.00016.75
8.0.280.0080.00018.36
8.0.270.0030.00317.21
8.0.260.0030.00517.31
8.0.250.0040.00417.01
8.0.240.0030.00316.93
8.0.230.0000.00716.96
8.0.220.0000.01016.96
8.0.210.0040.00416.83
8.0.200.0080.00016.93
8.0.190.0000.00817.02
8.0.180.0070.00016.86
8.0.170.0040.00416.87
8.0.160.0000.00716.98
8.0.150.0040.00416.88
8.0.140.0000.00916.88
8.0.130.0000.00613.41
8.0.120.0030.00516.92
8.0.110.0040.00416.98
8.0.100.0030.00516.82
8.0.90.0040.00416.97
8.0.80.0060.01216.83
8.0.70.0000.00716.89
8.0.60.0000.00716.97
8.0.50.0030.00616.91
8.0.30.0060.01117.01
8.0.20.0090.00917.40
8.0.10.0070.00017.10
8.0.00.0080.01016.74
7.4.330.0050.00015.08
7.4.320.0070.00016.54
7.4.300.0030.00316.50
7.4.290.0000.00716.48
7.4.280.0000.00716.61
7.4.270.0000.00716.60
7.4.260.0070.00016.34
7.4.250.0000.00916.52
7.4.240.0060.00216.51
7.4.230.0030.00316.63
7.4.220.0030.01416.64
7.4.210.0040.01116.56
7.4.200.0070.00016.70
7.4.160.0100.00616.61
7.4.150.0090.00917.40
7.4.140.0100.01517.86
7.4.130.0100.00816.48
7.4.120.0140.00416.63
7.4.110.0150.00316.54
7.4.100.0140.00316.28
7.4.90.0150.00316.59
7.4.80.0040.01219.39
7.4.70.0030.01416.50
7.4.60.0070.01116.55
7.4.50.0000.00816.22
7.4.40.0080.00816.27
7.4.30.0060.01616.55
7.4.00.0070.00915.02
7.3.330.0000.00513.30
7.3.320.0050.00013.35
7.3.310.0030.00316.39
7.3.300.0000.00716.32
7.3.290.0100.00616.32
7.3.280.0060.01116.33
7.3.270.0060.01217.40
7.3.260.0070.01116.54
7.3.250.0150.00616.52
7.3.240.0090.00916.44
7.3.230.0060.01116.39
7.3.210.0050.01116.31
7.3.200.0080.00816.48
7.3.190.0150.00316.64
7.3.180.0040.01216.30
7.3.170.0080.00916.41
7.3.160.0110.00716.46
7.3.120.0090.00914.84
7.3.110.0060.01014.78
7.3.100.0090.00614.94
7.3.90.0090.00914.89
7.3.80.0030.01314.88
7.3.70.0030.00614.97
7.3.60.0070.01014.77
7.3.50.0070.01014.46
7.3.40.0090.00614.88
7.3.30.0070.00714.67
7.3.20.0070.00416.81
7.3.10.0070.00416.80
7.3.00.0000.01116.64
7.2.330.0130.00716.65
7.2.320.0110.01516.83
7.2.310.0060.01216.57
7.2.300.0070.01016.73
7.2.290.0040.01816.79
7.2.250.0090.00614.76
7.2.240.0100.01014.96
7.2.230.0090.00615.16
7.2.220.0030.00715.26
7.2.210.0100.00715.08
7.2.200.0040.00715.04
7.2.190.0030.00714.81
7.2.180.0070.00715.15
7.2.170.0060.00615.00
7.2.60.0000.01616.66
7.2.00.0040.00819.40
7.1.330.0120.00315.87
7.1.320.0040.01115.50
7.1.310.0060.00915.54
7.1.300.0070.00715.77
7.1.290.0060.01015.75
7.1.280.0040.00715.58
7.1.270.0000.01315.86
7.1.260.0070.00715.70
7.1.200.0060.00615.55
7.1.100.0070.00718.35
7.1.70.0030.00716.88
7.1.60.0140.01119.29
7.1.50.0220.01334.99
7.1.00.0000.08022.42
7.0.200.0000.01016.48
7.0.60.0070.08019.93
7.0.50.0030.05317.95
7.0.40.0030.04320.26
7.0.30.0230.04020.13
7.0.20.0300.07320.15
7.0.10.0070.09020.10
7.0.00.0070.06020.30
5.6.280.0000.07721.07
5.6.210.0030.04720.71
5.6.200.0070.08318.19
5.6.190.0100.08020.61
5.6.180.0100.04020.41
5.6.170.0500.06720.55
5.6.160.0070.06320.54
5.6.150.0130.07318.25
5.6.140.0100.06318.27
5.6.130.0100.03718.14
5.6.120.0030.04721.00
5.6.110.0070.04720.89
5.6.100.0100.08021.00
5.6.90.0100.03321.13
5.6.80.0000.07020.41
5.5.350.4170.04020.32
5.5.340.0000.06017.99
5.5.330.0070.04320.38
5.5.320.0330.07320.36
5.5.310.0430.07020.34
5.5.300.0130.03317.93
5.5.290.0070.08017.95
5.5.280.0100.08320.65
5.5.270.0100.04720.77
5.5.260.0100.07020.93
5.5.250.0070.05320.66
5.5.240.0070.07720.26
5.4.450.0270.06719.54
5.4.440.0200.05719.59
5.4.430.0570.06319.53
5.4.420.0670.04719.41
5.4.410.0430.04719.27
5.4.400.0530.07319.24
5.4.390.0800.05318.84
5.4.380.0670.05319.24
5.4.370.0630.06319.00
5.4.360.0530.06019.09
5.4.350.0230.05719.26
5.4.340.0630.06019.04
5.4.320.0770.04719.07
5.4.310.0470.06019.24
5.4.300.0330.06319.07
5.4.290.0130.05319.20
5.4.280.0630.05719.08
5.4.270.0470.06019.09
5.4.260.0530.06719.09
5.4.250.0670.05319.26
5.4.240.0530.07318.86
5.4.230.0800.05019.20
5.4.220.0600.06019.21
5.4.210.0670.05019.20
5.4.200.0770.04719.19
5.4.190.0630.06319.20
5.4.180.0830.05719.23
5.4.170.0600.05318.85
5.4.160.0530.06019.01
5.4.150.0230.04319.30
5.4.140.0700.04016.46
5.4.130.0600.05016.32
5.4.120.0600.04716.46
5.4.110.0630.05316.46
5.4.100.0630.05016.38
5.4.90.0600.04716.63
5.4.80.0630.05316.28
5.4.70.0200.07716.33
5.4.60.0270.07016.52
5.4.50.0170.03316.43
5.4.40.0300.06716.27
5.4.30.0030.03716.52
5.4.20.0070.06316.48
5.4.10.0230.06016.55

preferences:
46.16 ms | 401 KiB | 5 Q