3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( 'bathroom' => array ( 'name' => 'Bathroom', 'things' => array ( 0 => array ( 'name' => 'ChevalMirrow', 'cubic' => .14, 'quantity' => 1 ), 1 => array ( 'name' => 'Carton/Wine', 'cubic' => .07, 'quantity' => 1 ), 2 => array ( 'name' => 'Carton/picture', 'cubic' => .07, 'quantity' => 1 ) ) ) ); foreach ($array as $key => $value) { echo "$key:<br>\n"; echo " name: {$value['name']}<br>\n"; foreach ($value['things'] as $t => $thing) { echo "\tthing $t:<br>\n"; foreach ($thing as $name => $val) { echo "\t $name: $val<br>\n"; } } }

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.5.00.0110.01120.11
8.4.150.0000.00114.05
8.4.140.0060.01517.69
8.4.130.0120.00717.63
8.4.120.0100.01022.29
8.4.110.0130.00718.78
8.4.100.0130.00717.60
8.4.90.0130.00818.48
8.4.80.0050.00517.61
8.4.70.0120.00818.00
8.4.60.0100.01018.90
8.4.50.0140.00820.70
8.4.40.0120.00622.47
8.4.30.0090.00922.66
8.4.20.0150.00318.77
8.4.10.0170.00319.45
8.3.280.0140.00618.50
8.3.270.0140.00516.57
8.3.260.0100.00616.70
8.3.250.0100.00619.03
8.3.240.0100.00816.49
8.3.230.0130.00616.70
8.3.220.0060.00216.98
8.3.210.0070.00416.71
8.3.200.0070.00316.39
8.3.190.0090.00916.93
8.3.180.0120.00716.43
8.3.170.0060.01317.13
8.3.160.0110.00718.28
8.3.150.0150.00416.38
8.3.140.0090.00917.04
8.3.130.0040.00418.57
8.3.120.0030.00620.61
8.3.110.0050.00316.43
8.3.100.0090.00318.33
8.3.90.0070.01016.37
8.3.80.0030.00618.56
8.3.70.0070.01116.75
8.3.60.0150.00018.31
8.3.50.0050.00818.01
8.3.40.0150.00018.85
8.3.30.0120.00418.89
8.3.20.0080.00020.57
8.3.10.0040.00420.48
8.3.00.0000.00819.38
8.2.290.0100.00720.46
8.2.280.0040.00518.50
8.2.270.0070.01117.04
8.2.260.0050.00518.60
8.2.250.0060.00317.02
8.2.240.0090.00917.13
8.2.230.0040.00420.94
8.2.220.0060.00324.06
8.2.210.0120.00826.77
8.2.200.0100.00316.75
8.2.190.0100.00718.54
8.2.180.0120.00318.15
8.2.170.0060.00922.96
8.2.160.0070.00719.41
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00719.27
8.2.120.0040.00426.35
8.2.110.0070.01121.00
8.2.100.0070.00417.91
8.2.90.0000.00919.53
8.2.80.0050.00317.97
8.2.70.0000.00917.61
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0040.00418.35
8.2.30.0030.00618.18
8.2.20.0020.00518.01
8.2.10.0050.00219.55
8.2.00.0000.00718.01
8.1.330.0120.00821.96
8.1.320.0140.00715.94
8.1.310.0140.00318.59
8.1.300.0040.00419.64
8.1.290.0000.00918.88
8.1.280.0140.00325.92
8.1.270.0040.00420.25
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0000.01022.44
8.1.230.0030.00920.88
8.1.220.0000.00717.77
8.1.210.0000.00818.89
8.1.200.0030.00617.36
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0000.00818.77
8.1.160.0030.00518.91
8.1.150.0000.00718.90
8.1.140.0030.00320.23
8.1.130.0000.00720.26
8.1.120.0000.00817.54
8.1.110.0070.00017.47
8.1.100.0000.00717.36
8.1.90.0000.00717.44
8.1.80.0030.00617.34
8.1.70.0030.00317.36
8.1.60.0040.00417.58
8.1.50.0030.00517.48
8.1.40.0040.00817.52
8.1.30.0000.00817.49
8.1.20.0090.00017.67
8.1.10.0030.00617.55
8.1.00.0070.00317.46
8.0.300.0050.00320.02
8.0.290.0090.00016.75
8.0.280.0030.00318.46
8.0.270.0000.00817.23
8.0.260.0030.00318.50
8.0.250.0030.00616.84
8.0.240.0030.00316.88
8.0.230.0000.01117.00
8.0.220.0030.00316.80
8.0.210.0050.00316.79
8.0.200.0030.00316.86
8.0.190.0000.00716.80
8.0.180.0030.00516.93
8.0.170.0060.00316.90
8.0.160.0000.00716.97
8.0.150.0000.00816.69
8.0.140.0040.00316.87
8.0.130.0030.00313.29
8.0.120.0040.00416.86
8.0.110.0000.00716.91
8.0.100.0040.00416.87
8.0.90.0000.00716.96
8.0.80.0030.01716.87
8.0.70.0030.00516.91
8.0.60.0040.00416.89
8.0.50.0000.00716.76
8.0.30.0110.01517.04
8.0.20.0160.00917.01
8.0.10.0190.01517.00
8.0.00.0130.01016.85
7.4.330.0000.00415.55
7.4.320.0070.00016.57
7.4.300.0050.00216.58
7.4.290.0050.00516.59
7.4.280.0000.00716.46
7.4.270.0040.00416.60
7.4.260.0040.00416.40
7.4.250.0030.00316.47
7.4.240.0000.00716.54
7.4.230.0040.00416.71
7.4.220.0000.00716.45
7.4.210.0100.00716.52
7.4.200.0000.00716.64
7.4.160.0110.00816.49
7.4.150.0210.00916.50
7.4.140.0170.00917.15
7.4.130.0150.00716.52
7.4.120.0150.00816.42
7.4.110.0130.01016.49
7.4.100.0220.00716.58
7.4.90.0170.00716.56
7.4.80.0110.01117.87
7.4.70.0150.00716.45
7.4.60.0210.00816.31
7.4.50.0150.00716.28
7.4.40.0150.00716.29
7.4.30.0200.00616.38
7.4.20.0230.00416.36
7.4.10.0260.00416.36
7.4.00.0110.01015.42
7.3.330.0020.00213.17
7.3.320.0050.00013.17
7.3.310.0000.00716.16
7.3.300.0030.00316.33
7.3.290.0070.00016.37
7.3.280.0100.01416.35
7.3.270.0090.01816.30
7.3.260.0150.00616.43
7.3.250.0230.00416.34
7.3.240.0200.00816.21
7.3.230.0130.01316.42
7.3.220.0330.00316.30
7.3.210.0160.00816.40
7.3.200.0180.00716.38
7.3.190.0130.01116.24
7.3.180.0130.00816.47
7.3.170.0110.01516.18
7.3.160.0170.00816.33
7.3.150.0150.01516.22
7.3.140.0250.00416.28
7.3.130.0120.01716.15
7.3.120.0150.01215.57
7.3.110.0190.00715.38
7.3.100.0080.01315.37
7.3.90.0200.00515.47
7.3.80.0140.00515.56
7.3.70.0170.00515.35
7.3.60.0110.01415.68
7.3.50.0100.00815.53
7.3.40.0180.00315.62
7.3.30.0200.00415.58
7.3.20.0340.00915.70
7.3.10.0280.00615.96
7.3.00.0360.00715.97
7.2.340.0160.01116.37
7.2.330.0100.01316.45
7.2.320.0140.00716.47
7.2.310.0190.00716.55
7.2.300.0150.00916.38
7.2.290.0160.00916.54
7.2.280.0070.02016.39
7.2.270.0220.00916.34
7.2.260.0240.00816.36
7.2.250.0150.00915.83
7.2.240.0120.01615.64
7.2.230.0140.01215.69
7.2.220.0130.01015.78
7.2.210.0140.01015.58
7.2.200.0170.00715.73
7.2.190.0160.00715.67
7.2.180.0120.01315.73
7.2.170.0180.00615.75
7.2.160.0150.01616.52
7.2.150.0410.00215.77
7.2.140.0430.00715.86
7.2.130.0490.00715.79
7.2.120.0680.00815.92
7.2.110.0390.01015.75
7.2.100.0440.01015.84
7.2.90.0400.01115.84
7.2.80.0400.00715.71
7.2.70.0370.01315.92
7.2.60.0350.01215.68
7.2.50.0330.01415.81
7.2.40.0330.00715.78
7.2.30.0420.00615.78
7.2.20.0680.00515.90
7.2.10.0450.01015.86
7.2.00.0500.00815.91
7.1.330.0140.00815.46
7.1.320.0110.00815.73
7.1.310.0150.00115.49
7.1.300.0140.00715.65
7.1.290.0170.00415.68
7.1.280.0060.01415.57
7.1.270.0150.00615.59
7.1.260.0060.01515.60
7.1.250.0420.00814.63
7.1.240.0170.01315.33
7.1.230.0210.01215.43
7.1.220.0190.00815.42
7.1.210.0160.01615.45
7.1.200.0190.01115.43
7.1.190.0120.01315.40
7.1.180.0180.00915.28
7.1.170.0140.01115.30
7.1.160.0270.00315.30
7.1.150.0170.01115.29
7.1.140.0260.00415.38
7.1.130.0200.00815.46
7.1.120.0260.00615.28
7.1.110.0480.01015.44
7.1.100.0260.00515.39
7.1.90.0250.00615.38
7.1.80.0300.00315.45
7.1.70.0130.01015.26
7.1.60.0230.00615.32
7.1.50.0210.00515.44
7.1.40.0190.01015.38
7.1.30.0190.01515.45
7.1.20.0230.00515.31
7.1.10.0190.00815.32
7.1.00.0160.01215.37

preferences:
32.61 ms | 403 KiB | 5 Q