3v4l.org

run code in 300+ PHP versions simultaneously
<?php $errors = array('general' => 'De velden met een sterretje(*) zijn verplicht.', 'personal' => array('voornaam' => '!', 'achternaam' => '!', 'datum' => '!', 'telefoon1' => '!'), 'test' => 'Een test.', 'test2' => array('test2a' => 'Dit is test 2', 'test2b' => 'met een array.')); $string = ''; foreach ($errors as $key => $value) { if ($key !== 'personal') { $string .= is_string($value) ? $value : implode(' ', $value); $string .= ' '; } } echo $string;

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.20.0140.00717.75
8.4.10.0030.00617.66
8.3.140.0080.00016.61
8.3.130.0090.00018.50
8.3.120.0040.00418.93
8.3.110.0000.00820.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0030.00616.88
8.3.70.0160.00316.58
8.3.60.0000.01518.55
8.3.50.0090.01021.27
8.3.40.0070.01018.84
8.3.30.0080.00520.17
8.3.20.0050.00220.34
8.3.10.0040.00421.97
8.3.00.0030.00522.48
8.2.260.0040.01116.79
8.2.250.0130.00316.57
8.2.240.0060.00319.06
8.2.230.0080.00822.58
8.2.220.0040.00437.54
8.2.210.0120.00326.77
8.2.200.0060.00316.63
8.2.190.0180.00416.58
8.2.180.0090.01216.50
8.2.170.0000.01422.96
8.2.160.0070.01022.26
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00420.88
8.2.110.0030.00620.89
8.2.100.0090.00317.91
8.2.90.0000.00818.16
8.2.80.0030.00617.97
8.2.70.0050.00317.63
8.2.60.0000.00917.50
8.2.50.0000.00817.63
8.2.40.0050.00321.23
8.2.30.0030.00519.42
8.2.20.0040.00417.71
8.2.10.0040.00417.73
8.2.00.0000.00917.62
8.1.310.0000.00818.54
8.1.300.0060.00316.57
8.1.290.0060.00318.88
8.1.280.0100.01025.92
8.1.270.0050.00323.99
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0060.00324.02
8.1.230.0110.00020.87
8.1.220.0000.00817.80
8.1.210.0000.00818.78
8.1.200.0030.00617.35
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0000.00717.62
8.1.160.0040.00418.94
8.1.150.0000.00718.90
8.1.140.0040.00417.49
8.1.130.0000.00717.46
8.1.120.0000.00717.32
8.1.110.0070.00017.53
8.1.100.0040.00417.37
8.1.90.0080.00017.36
8.1.80.0030.00517.48
8.1.70.0040.00417.33
8.1.60.0050.00317.50
8.1.50.0080.00017.42
8.1.40.0080.00317.50
8.1.30.0040.00417.60
8.1.20.0080.00017.71
8.1.10.0030.00617.54
8.1.00.0080.00017.47
8.0.300.0000.00819.90
8.0.290.0060.00316.75
8.0.280.0070.00218.44
8.0.270.0070.00017.17
8.0.260.0000.00716.73
8.0.250.0050.00416.78
8.0.240.0000.01016.95
8.0.230.0000.00716.85
8.0.220.0000.00716.96
8.0.210.0000.00716.78
8.0.200.0000.00616.99
8.0.190.0000.00817.02
8.0.180.0070.00016.95
8.0.170.0040.00416.84
8.0.160.0070.00016.95
8.0.150.0040.00416.83
8.0.140.0030.00616.79
8.0.130.0000.00613.41
8.0.120.0040.00416.86
8.0.110.0000.00716.89
8.0.100.0040.00416.86
8.0.90.0030.00316.96
8.0.80.0040.01116.77
8.0.70.0050.00216.68
8.0.60.0000.00716.79
8.0.50.0040.00416.78
8.0.30.0090.01017.07
8.0.20.0090.01117.40
8.0.10.0040.00416.81
8.0.00.0080.01116.85
7.4.330.0030.00316.83
7.4.320.0030.00316.41
7.4.300.0000.00616.52
7.4.290.0000.00816.55
7.4.280.0000.00716.59
7.4.270.0030.00316.58
7.4.260.0020.00313.39
7.4.250.0040.00416.46
7.4.240.0040.00316.51
7.4.230.0030.00316.30
7.4.220.0070.01016.54
7.4.210.0090.00616.59
7.4.200.0000.00816.55
7.4.190.0030.00316.41
7.4.160.0130.00316.34
7.4.150.0100.00717.40
7.4.140.0070.00917.86
7.4.130.0080.00916.51
7.4.120.0070.01016.60
7.4.110.0110.00716.48
7.4.100.0160.00716.61
7.4.90.0110.00616.48
7.4.80.0120.00619.39
7.4.70.0090.00716.42
7.4.60.0120.00316.39
7.4.50.0000.00816.50
7.4.40.0060.00922.77
7.4.30.0110.00616.52
7.4.00.0060.01015.07
7.3.330.0000.00513.14
7.3.320.0000.00513.27
7.3.310.0030.00316.27
7.3.300.0030.00316.33
7.3.290.0110.01116.32
7.3.280.0080.00716.35
7.3.270.0080.00917.40
7.3.260.0090.00916.36
7.3.250.0060.01116.35
7.3.240.0070.01516.23
7.3.230.0090.00916.57
7.3.210.0100.00616.54
7.3.200.0090.00919.39
7.3.190.0130.00416.34
7.3.180.0030.01316.60
7.3.170.0100.00716.47
7.3.160.0080.00816.64
7.3.120.0050.01314.56
7.3.110.0070.01014.45
7.3.100.0030.01414.76
7.3.90.0000.01214.97
7.3.80.0070.00714.57
7.3.70.0120.00314.93
7.3.60.0000.01514.73
7.3.50.0090.00314.56
7.3.40.0000.01414.60
7.3.30.0100.00314.68
7.3.20.0080.00816.65
7.3.10.0080.00716.82
7.3.00.0040.00916.64
7.2.330.0070.01016.57
7.2.320.0170.00016.86
7.2.310.0100.00716.73
7.2.300.0030.01316.54
7.2.290.0100.00716.71
7.2.250.0000.01915.27
7.2.240.0030.01715.27
7.2.230.0030.01315.02
7.2.220.0110.00314.93
7.2.210.0060.01215.03
7.2.200.0040.00815.12
7.2.190.0040.01015.13
7.2.180.0070.00714.96
7.2.170.0040.00715.06
7.2.130.0120.00017.07
7.2.120.0110.00416.69
7.2.110.0070.00716.96
7.2.100.0030.00916.63
7.2.90.0060.00616.83
7.2.80.0040.01217.00
7.2.70.0030.01016.85
7.2.60.0050.01016.99
7.2.50.0000.01116.49
7.2.40.0110.00716.80
7.2.30.0060.00616.99
7.2.20.0030.01216.96
7.2.10.0110.00616.82
7.2.00.0050.00516.99
7.1.330.0030.00915.93
7.1.320.0090.00615.98
7.1.310.0030.00715.48
7.1.300.0040.01115.92
7.1.290.0100.00015.80
7.1.280.0070.00415.51
7.1.270.0030.01015.82
7.1.260.0070.00715.89
7.1.250.0030.00915.90
7.1.200.0040.00715.96
7.1.70.0000.01817.23
7.1.60.0120.00619.17
7.1.50.0040.01417.02
7.1.00.0000.07022.40
7.0.200.0080.00316.92
7.0.140.0000.07722.11
7.0.60.0030.06719.87
7.0.50.0030.07717.82
7.0.40.0070.07019.98
7.0.30.0170.06020.10
7.0.20.0130.05020.06
7.0.10.0030.07320.09
7.0.00.0030.06020.18
5.6.280.0000.07720.89
5.6.210.0000.08720.66
5.6.200.0100.04718.19
5.6.190.0030.04320.49
5.6.180.0370.07320.57
5.6.170.0270.07720.50
5.6.160.0100.07320.44
5.6.150.0070.07318.12
5.6.140.0070.07318.20
5.6.130.0100.04018.22
5.6.120.0130.07321.14
5.6.110.0030.04021.01
5.6.100.0030.04321.10
5.6.90.0070.07721.02
5.6.80.0100.06320.28
5.5.350.0230.07320.38
5.5.340.0070.06317.89
5.5.330.0030.04720.23
5.5.320.0100.07320.21
5.5.310.0170.04320.19
5.5.300.0030.04018.00
5.5.290.0130.07717.95
5.5.280.0100.07020.98
5.5.270.0070.08320.79
5.5.260.0100.08020.76
5.5.250.0030.04720.79
5.5.240.0370.07020.34
5.4.450.0000.05019.13
5.4.440.0030.08019.46
5.4.430.0030.08319.53
5.4.420.0000.04719.37
5.4.410.0030.04319.29
5.4.400.0070.07319.05
5.4.390.0030.08319.13
5.4.380.0030.04718.79
5.4.370.0070.05019.08
5.4.360.0000.04318.88
5.4.350.0000.05319.16
5.4.340.0130.04319.10
5.4.320.0130.06718.81
5.4.310.0030.06019.10
5.4.300.0000.07718.79
5.4.290.0070.06719.13
5.4.280.0000.08319.18
5.4.270.0070.05018.88
5.4.260.0030.04319.16
5.4.250.0070.05719.08
5.4.240.0000.06718.80
5.4.230.0000.06719.07
5.4.220.0000.07718.80
5.4.210.0030.07719.05
5.4.200.0000.06019.14
5.4.190.0100.07719.20
5.4.180.0030.06718.87
5.4.170.0030.05319.07
5.4.160.0030.07318.73
5.4.150.0130.06019.19
5.4.140.0070.06016.17
5.4.130.0030.07316.31
5.4.120.0000.07716.30
5.4.110.0100.07016.20
5.4.100.0030.07016.39
5.4.90.0030.04316.39
5.4.80.0070.04316.18
5.4.70.0100.07016.44
5.4.60.0000.06716.45
5.4.50.0000.04016.40
5.4.40.0000.05016.38
5.4.30.0070.03316.21
5.4.20.0070.07016.14
5.4.10.0030.06316.38
5.4.00.0070.07015.89
5.3.290.0030.07714.57
5.3.280.0100.07014.43
5.3.270.0070.07314.55
5.3.260.0030.07714.45
5.3.250.0100.04314.63
5.3.240.0030.05714.41
5.3.230.0000.06314.55
5.3.220.0000.07714.61
5.3.210.0100.07314.65
5.3.200.0070.05014.41
5.3.190.0100.04314.51
5.3.180.0070.07714.51
5.3.170.0000.08014.41
5.3.160.0000.06314.48
5.3.150.0100.04314.65
5.3.140.0030.08014.39
5.3.130.0070.07314.43
5.3.120.0070.06314.57
5.3.110.0030.07314.38
5.3.100.0030.06713.91
5.3.90.0000.04713.86
5.3.80.0030.04313.89
5.3.70.0100.05713.80
5.3.60.0030.04713.80
5.3.50.0070.04013.77
5.3.40.0000.06013.85
5.3.30.0000.06713.94
5.3.20.0030.04313.54
5.3.10.0030.07013.63
5.3.00.0000.07713.66
5.2.170.0030.04712.21
5.2.160.0000.05012.21
5.2.150.0000.06712.21
5.2.140.0100.03712.21
5.2.130.0030.03312.21
5.2.120.0030.06012.21
5.2.110.0000.05312.21
5.2.100.0000.06312.21
5.2.90.0030.05712.21
5.2.80.0030.04312.21
5.2.70.0030.06012.21
5.2.60.0000.04012.21
5.2.50.0030.03312.21
5.2.40.0000.06312.21
5.2.30.0070.05712.21
5.2.20.0070.06012.21
5.2.10.0030.04712.21
5.2.00.0000.06712.21
5.1.60.0030.04712.21
5.1.50.0030.04712.21
5.1.40.0070.05012.21
5.1.30.0130.03712.21
5.1.20.0030.04312.21
5.1.10.0030.05312.21
5.1.00.0070.05312.21
5.0.50.0000.04312.21
5.0.40.0030.04012.21
5.0.30.0030.06012.21
5.0.20.0030.03312.21
5.0.10.0000.03012.21
5.0.00.0030.03712.21
4.4.90.0030.01312.21
4.4.80.0000.03312.21
4.4.70.0030.03312.21
4.4.60.0000.03012.21
4.4.50.0000.03312.21
4.4.40.0070.05012.21
4.4.30.0030.03712.21
4.4.20.0000.02012.21
4.4.10.0000.03312.21
4.4.00.0000.05312.21
4.3.110.0000.03712.21
4.3.100.0030.03312.21
4.3.90.0000.02012.21
4.3.80.0030.02712.21
4.3.70.0030.03312.21
4.3.60.0030.03312.21
4.3.50.0000.03312.21
4.3.40.0000.05312.21
4.3.30.0000.01712.21
4.3.20.0000.02312.21
4.3.10.0000.01712.21
4.3.00.0000.02012.21

preferences:
19.53 ms | 403 KiB | 5 Q