3v4l.org

run code in 300+ PHP versions simultaneously
<?php // ---------------------------------------------------------------------------- // Opgave 12 $spellen = Array( 'Index' => Array( 'Spel' => 'Spel', 'Aantal Spelers' => 'Aantal Spelers', 'Vanaf' => 'Vanaf', 'Prijs' => 'Prijs' ), 'Catan' => Array( 'Spel' => 'Kolonisten van Catan', 'Aantal Spelers' => '3 à 4', 'Vanaf' => '10 jaar', 'Prijs' => '€ 36,95' ), 'Agricola' => Array( 'Spel' => 'Agricola', 'Aantal Spelers' => '2 à 4', 'Vanaf' => '10 jaar', 'Prijs' => '€ 28,45' ), 'Regenwormen' => Array( 'Spel' => 'Regenwormen', 'Aantal Spelers' => '2 à 4', 'Vanaf' => '6 jaar', 'Prijs' => '€ 24,95' ) ); echo "<table cellpadding='5' style='border:1px solid #999'>"; foreach($spellen as $spel) { echo "<tr>"; echo "<td>".$spel['Spel']."</td>"; echo "<td>".$spel['Aantal Spelers']."</td>"; echo "<td>".$spel['Vanaf']."</td>"; echo "<td>".$spel['Prijs']."</td>"; echo "</tr>"; } echo '</table><br>'; foreach($spellen as $spel) { if($spel['Spel'] != "Spel") echo "Het spel ".$spel['Spel']." kan gespeeld worden met ".$spel['Aantal Spelers']." spelers vanaf ".$spel['Vanaf']." en kost in de winkel ".$spel['Prijs'].".<br>"; }

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.0070.00716.63
8.3.50.0110.00722.84
8.3.40.0120.00318.75
8.3.30.0120.00918.91
8.3.20.0040.00420.16
8.3.10.0000.00823.71
8.3.00.0090.00019.13
8.2.180.0070.01116.63
8.2.170.0070.00722.96
8.2.160.0110.00420.52
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00421.03
8.2.110.0040.00420.39
8.2.100.0060.00617.91
8.2.90.0040.00417.88
8.2.80.0000.00818.82
8.2.70.0040.00417.93
8.2.60.0090.00018.16
8.2.50.0040.00418.10
8.2.40.0000.00719.44
8.2.30.0000.00819.27
8.2.20.0030.00517.77
8.2.10.0000.00718.00
8.2.00.0000.00717.58
8.1.280.0110.00325.92
8.1.270.0050.00323.96
8.1.260.0000.00726.35
8.1.250.0060.00928.09
8.1.240.0060.00323.95
8.1.230.0060.00622.07
8.1.220.0070.00017.76
8.1.210.0080.00018.77
8.1.200.0000.00817.35
8.1.190.0000.00817.13
8.1.180.0040.00419.09
8.1.170.0080.00018.49
8.1.160.0040.00419.09
8.1.150.0000.00918.92
8.1.140.0000.00817.36
8.1.130.0040.00417.89
8.1.120.0070.00017.42
8.1.110.0040.00417.46
8.1.100.0040.00417.54
8.1.90.0070.00017.55
8.1.80.0040.00417.44
8.1.70.0030.00317.40
8.1.60.0000.00717.52
8.1.50.0070.00017.50
8.1.40.0030.00617.41
8.1.30.0030.00517.68
8.1.20.0070.00017.56
8.1.10.0000.00917.61
8.1.00.0060.00317.53
8.0.300.0040.00418.87
8.0.290.0030.00516.75
8.0.280.0040.00418.47
8.0.270.0030.00517.15
8.0.260.0030.00317.39
8.0.250.0060.00016.84
8.0.240.0080.00016.98
8.0.230.0000.00816.86
8.0.220.0090.00316.82
8.0.210.0000.00716.88
8.0.200.0000.00716.99
8.0.190.0040.00416.93
8.0.180.0040.00416.99
8.0.170.0000.00817.00
8.0.160.0000.00716.98
8.0.150.0040.00416.82
8.0.140.0000.00716.77
8.0.130.0040.00413.38
8.0.120.0090.00016.86
8.0.110.0040.00416.96
8.0.100.0000.00716.74
8.0.90.0040.00416.91
8.0.80.0130.00316.88
8.0.70.0000.00716.80
8.0.60.0040.00416.88
8.0.50.0040.00416.80
8.0.30.0130.00717.17
8.0.20.0070.01217.40
8.0.10.0000.00716.95
8.0.00.0100.01116.68
7.4.330.0020.00215.00
7.4.320.0040.00416.44
7.4.300.0030.00616.64
7.4.290.0060.00016.57
7.4.280.0050.00216.51
7.4.270.0070.00016.39
7.4.260.0030.00316.61
7.4.250.0030.00516.44
7.4.240.0030.00516.61
7.4.230.0000.00716.53
7.4.220.0140.00416.74
7.4.210.0040.01116.57
7.4.200.0070.00016.41
7.4.160.0040.01216.48
7.4.150.0070.01017.40
7.4.140.0120.00817.86
7.4.130.0100.00816.48
7.4.120.0130.00516.58
7.4.110.0100.00716.56
7.4.100.0090.00916.51
7.4.90.0100.00716.57
7.4.80.0110.00819.39
7.4.70.0140.00316.45
7.4.60.0070.01016.37
7.4.50.0070.00016.68
7.4.40.0060.00916.53
7.4.30.0080.00716.48
7.4.10.0070.01316.35
7.4.00.0080.01015.33
7.3.330.0050.00013.20
7.3.320.0030.00313.17
7.3.310.0030.00316.26
7.3.300.0030.00316.35
7.3.290.0000.01316.32
7.3.280.0050.01116.29
7.3.270.0100.01017.40
7.3.260.0070.01716.28
7.3.250.0070.01016.40
7.3.240.0120.00616.42
7.3.230.0100.00716.52
7.3.210.0130.00416.55
7.3.200.0110.01119.39
7.3.190.0100.00716.37
7.3.180.0130.00616.28
7.3.170.0030.01316.39
7.3.160.0130.00316.41
7.3.130.0090.00616.45
7.3.120.0070.01215.29
7.3.110.0030.01315.21
7.3.100.0080.00615.34
7.3.90.0060.00915.19
7.3.80.0050.00815.21
7.3.70.0050.01015.15
7.3.60.0060.00815.25
7.3.50.0080.00515.18
7.3.40.0050.01015.31
7.3.30.0050.00815.22
7.3.20.0060.01017.05
7.3.10.0070.00716.97
7.3.00.0100.00616.94
7.2.330.0000.01716.57
7.2.320.0100.00716.81
7.2.310.0040.01516.73
7.2.300.0060.01316.73
7.2.290.0160.00316.63
7.2.260.0140.00716.59
7.2.250.0080.01115.42
7.2.240.0060.01315.63
7.2.230.0070.01015.65
7.2.220.0070.00715.51
7.2.210.0050.00815.53
7.2.200.0050.00715.37
7.2.190.0080.00615.42
7.2.180.0070.00715.42
7.2.170.0060.00815.49
7.2.160.0070.00915.84
7.2.150.0060.00817.60
7.2.140.0050.00817.67
7.2.130.0100.00717.65
7.2.120.0040.00917.60
7.2.110.0090.00917.73
7.2.100.0060.01417.68
7.2.90.0060.01117.70
7.2.80.0080.00617.83
7.2.70.0070.01017.60
7.2.60.0060.00817.49
7.2.50.0050.01117.71
7.2.40.0080.00617.82
7.2.30.0060.00717.65
7.2.20.0040.01117.70
7.2.10.0050.01017.77
7.2.00.0050.01018.30
7.1.330.0070.00716.24
7.1.320.0050.00816.21
7.1.310.0080.00516.22
7.1.300.0030.01116.29
7.1.290.0050.00816.15
7.1.280.0030.01116.03
7.1.270.0100.00416.24
7.1.260.0100.00416.16
7.1.250.0070.01216.65
7.1.240.0070.00916.54
7.1.230.0100.00616.47
7.1.220.0040.01316.42
7.1.210.0050.01016.42
7.1.200.0090.00516.21
7.1.190.0060.00816.57
7.1.180.0060.00616.69
7.1.170.0110.00416.49
7.1.160.0060.00916.60
7.1.150.0070.00716.51
7.1.140.0020.00916.38
7.1.130.0050.01016.56
7.1.120.0020.01216.63
7.1.110.0050.00716.50
7.1.100.0060.00617.16
7.1.90.0090.00316.40
7.1.80.0010.01016.48
7.1.70.0040.00816.64
7.1.60.0040.01217.52
7.1.50.0070.00516.74
7.1.40.0060.00816.65
7.1.30.0070.00616.63
7.1.20.0070.00916.56
7.1.10.0020.01316.39
7.1.00.0060.02818.47
7.0.330.0050.01016.19
7.0.320.0020.01216.15
7.0.310.0120.00316.12
7.0.300.0070.00416.11
7.0.290.0010.00916.26
7.0.280.0060.00716.21
7.0.270.0030.01016.10
7.0.260.0050.00816.20
7.0.250.0060.00616.15
7.0.240.0060.00816.41
7.0.230.0080.00416.07
7.0.220.0060.00816.23
7.0.210.0090.00416.08
7.0.200.0070.00816.29
7.0.190.0050.00816.29
7.0.180.0090.00516.29
7.0.170.0050.00816.18
7.0.160.0090.00516.14
7.0.150.0050.00616.26
7.0.140.0050.02518.06
7.0.130.0090.00616.23
7.0.120.0060.00616.16
7.0.110.0020.00716.30
7.0.100.0070.00516.14
7.0.90.0030.00716.18
7.0.80.0070.00816.29
7.0.70.0030.00916.24
7.0.60.0090.03317.47
7.0.50.0050.03216.70
7.0.40.0040.02716.09
7.0.30.0100.03116.32
7.0.20.0150.03016.21
7.0.10.0030.02716.12
7.0.00.0060.03416.21
5.6.400.0080.00514.96
5.6.390.0060.00715.08
5.6.380.0070.00815.19
5.6.370.0030.01115.09
5.6.360.0080.00815.22
5.6.350.0050.01015.27
5.6.340.0080.00715.37
5.6.330.0050.01015.04
5.6.320.0090.00415.41
5.6.310.0070.01015.23
5.6.300.0070.00515.36
5.6.290.0010.01215.36
5.6.280.0030.03317.07
5.6.270.0020.01115.33
5.6.260.0070.00615.22
5.6.250.0050.00815.12
5.6.240.0030.01015.07
5.6.230.0020.01215.21
5.6.220.0090.00414.99
5.6.210.0030.02517.13
5.6.200.0080.03116.03
5.6.190.0100.02716.98
5.6.180.0150.02016.83
5.6.170.0120.03416.85
5.6.160.0080.02816.93
5.6.150.0040.03316.03
5.6.140.0090.02616.09
5.6.130.0100.02716.12
5.6.120.0070.03017.24
5.6.110.0100.02917.09
5.6.100.0070.02717.14
5.6.90.0080.03117.11
5.6.80.0100.02816.86
5.6.70.0050.00815.09
5.6.60.0060.00514.98
5.6.50.0050.00815.11
5.6.40.0060.00815.15
5.6.30.0030.01015.19
5.6.20.0110.00315.04
5.6.10.0080.00515.09
5.6.00.0040.00915.07
5.5.380.0050.00815.03
5.5.370.0060.00915.22
5.5.360.0060.00715.29
5.5.350.0130.03216.76
5.5.340.0070.01616.02
5.5.330.0060.03316.74
5.5.320.0080.02016.88
5.5.310.0150.03016.82
5.5.300.0050.02416.03
5.5.290.0090.02316.11
5.5.280.0080.03116.96
5.5.270.0080.03117.11
5.5.260.0050.02916.89
5.5.250.0110.02916.91
5.5.240.0070.02916.80
5.5.230.0080.00314.95
5.5.220.0080.00615.15
5.5.210.0030.01415.01
5.5.200.0100.00214.98
5.5.190.0050.01114.99
5.5.180.0040.00714.90
5.5.170.0090.00515.15
5.5.160.0050.00815.09
5.5.150.0030.01015.12
5.5.140.0050.00815.17
5.5.130.0020.01414.85
5.5.120.0050.00914.99
5.5.110.0060.00715.06
5.5.100.0060.00615.15
5.5.90.0050.00915.07
5.5.80.0020.01015.05
5.5.70.0020.01215.05
5.5.60.0080.00715.00
5.5.50.0080.00715.00
5.5.40.0090.00515.07
5.5.30.0020.01114.95
5.5.20.0050.00815.12
5.5.10.0020.01215.06
5.5.00.0050.01015.12
5.4.450.0090.02314.26
5.4.440.0070.02014.43
5.4.430.0140.01314.36
5.4.420.0070.01714.36
5.4.410.0300.01914.38
5.4.400.0050.01614.09
5.4.390.0170.01914.39
5.4.380.0200.01914.12
5.4.370.0160.02414.07
5.4.360.0130.02114.02
5.4.350.0110.02314.06
5.4.340.0160.02513.98
5.4.330.0050.00811.86
5.4.320.0030.01912.03
5.4.310.0050.01512.10
5.4.300.0040.01912.03
5.4.290.0020.02012.12
5.4.280.0050.01611.95
5.4.270.0040.01611.92
5.4.260.0070.01911.93
5.4.250.0050.01612.00
5.4.240.0030.01712.11
5.4.230.0070.01412.09
5.4.220.0070.01512.02
5.4.210.0050.01812.01
5.4.200.0060.01712.00
5.4.190.0060.02012.00
5.4.180.0060.01512.05
5.4.170.0060.01612.00
5.4.160.0070.01612.07
5.4.150.0060.02012.05
5.4.140.0080.01511.88
5.4.130.0060.02211.89
5.4.120.0100.01511.88
5.4.110.0030.01611.84
5.4.100.0060.01611.89
5.4.90.0040.01711.86
5.4.80.0040.01711.83
5.4.70.0030.01911.96
5.4.60.0060.01511.90
5.4.50.0040.01911.90
5.4.40.0070.01611.90
5.4.30.0070.01411.93
5.4.20.0040.01711.91
5.4.10.0060.01811.91
5.4.00.0060.01511.70
5.3.290.0080.04712.80
5.3.280.0100.04212.71
5.3.270.0100.04112.72
5.3.260.0070.04212.72
5.3.250.0070.05412.72
5.3.240.0150.05012.72
5.3.230.0110.04512.71
5.3.220.0080.03612.68
5.3.210.0070.04512.68
5.3.200.0060.03712.68
5.3.190.0100.03412.68
5.3.180.0070.04312.67
5.3.170.0070.03612.67
5.3.160.0090.03412.67
5.3.150.0050.03912.68
5.3.140.0060.03812.66
5.3.130.0050.04212.66
5.3.120.0070.04112.66
5.3.110.0040.04212.66
5.3.100.0060.03812.12
5.3.90.0060.03712.08
5.3.80.0080.03812.07
5.3.70.0030.04012.07
5.3.60.0090.03912.07
5.3.50.0070.03612.00
5.3.40.0120.04412.00
5.3.30.0080.04411.96
5.3.20.0100.04611.73
5.3.10.0090.04311.70
5.3.00.0110.03311.69
5.2.170.0110.0389.20
5.2.160.0120.0359.20
5.2.150.0150.0349.20
5.2.140.0070.0339.19
5.2.130.0060.0289.16
5.2.120.0040.0309.15
5.2.110.0050.0309.16
5.2.100.0070.0289.16
5.2.90.0050.0299.15
5.2.80.0080.0319.15
5.2.70.0070.0329.15
5.2.60.0050.0319.11
5.2.50.0040.0419.08
5.2.40.0040.0309.05
5.2.30.0070.0319.03
5.2.20.0030.0319.02
5.2.10.0060.0388.93
5.2.00.0050.0318.80
5.1.60.0050.0238.08
5.1.50.0030.0278.08
5.1.40.0060.0238.05
5.1.30.0040.0298.41
5.1.20.0050.0348.43
5.1.10.0040.0278.16
5.1.00.0050.0258.16
5.0.50.0060.0186.63
5.0.40.0030.0206.49
5.0.30.0030.0336.30
5.0.20.0030.0206.27
5.0.10.0010.0226.25
5.0.00.0050.0306.25
4.4.90.0030.0164.78
4.4.80.0040.0144.75
4.4.70.0030.0204.76
4.4.60.0050.0144.75
4.4.50.0060.0134.77
4.4.40.0030.0264.71
4.4.30.0030.0164.76
4.4.20.0040.0164.84
4.4.10.0030.0164.85
4.4.00.0050.0274.76
4.3.110.0040.0174.67
4.3.100.0020.0164.66
4.3.90.0030.0204.63
4.3.80.0050.0224.58
4.3.70.0050.0124.63
4.3.60.0030.0144.63
4.3.50.0020.0164.63
4.3.40.0030.0244.54
4.3.30.0020.0163.30
4.3.20.0030.0153.28
4.3.10.0020.0163.24
4.3.00.0070.01718.56

preferences:
67.69 ms | 401 KiB | 5 Q