3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = array( '123' => array('data' => array('categories' => array( array( 'id' => '2', 'description' => 'Single-player' ), array( 'id' => '1', 'description' => 'Multi-player' ), array( 'id' => '9', 'description' => 'Co-op' ), array( 'id' => '22', 'description' => 'Steam Achievements' ), array( 'id' => '28', 'description' => 'Full controller support' ) )) ), '456' => array('data' => array('categories' => array( array( 'id' => '21', 'description' => 'Downloadable Content' ) )) ), ); //print_r($json); $result = array(); foreach($json as $j1) { foreach($j1 as $j2) { foreach($j2 as $j3) { print_r($j3); } } }

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.0000.01516.25
8.3.50.0140.00721.93
8.3.40.0100.01018.71
8.3.30.0120.00918.92
8.3.20.0040.00420.34
8.3.10.0070.00021.85
8.3.00.0080.00017.80
8.2.180.0120.00316.32
8.2.170.0070.00722.96
8.2.160.0040.00920.18
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0090.00020.85
8.2.110.0040.00422.25
8.2.100.0070.00317.91
8.2.90.0000.00817.63
8.2.80.0060.00317.97
8.2.70.0080.00017.59
8.2.60.0060.00317.93
8.2.50.0060.00318.07
8.2.40.0030.00518.22
8.2.30.0040.00418.11
8.2.20.0040.00417.59
8.2.10.0000.00718.06
8.2.00.0000.00717.60
8.1.280.0120.00425.92
8.1.270.0080.00023.96
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.92
8.1.230.0030.00719.01
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0000.01117.23
8.1.190.0040.00417.35
8.1.180.0000.00718.10
8.1.170.0000.00818.59
8.1.160.0070.00021.92
8.1.150.0000.00718.78
8.1.140.0040.00417.50
8.1.130.0070.00017.77
8.1.120.0040.00417.52
8.1.110.0050.00317.33
8.1.100.0000.00717.46
8.1.90.0050.00317.47
8.1.80.0000.00717.34
8.1.70.0030.00317.45
8.1.60.0000.00817.54
8.1.50.0080.00017.52
8.1.40.0040.00417.53
8.1.30.0040.00417.54
8.1.20.0000.00817.55
8.1.10.0030.00517.34
8.1.00.0030.00517.24
8.0.300.0040.00419.79
8.0.290.0050.00316.58
8.0.280.0070.00018.42
8.0.270.0000.00717.17
8.0.260.0030.00317.25
8.0.250.0070.00016.99
8.0.240.0060.00016.88
8.0.230.0000.00816.83
8.0.220.0070.00016.91
8.0.210.0030.00516.98
8.0.200.0030.00316.95
8.0.190.0050.00316.97
8.0.180.0050.00216.88
8.0.170.0040.00416.81
8.0.160.0000.00817.00
8.0.150.0000.00716.77
8.0.140.0000.00716.77
8.0.130.0040.00413.34
8.0.120.0070.00016.76
8.0.110.0000.00716.86
8.0.100.0000.00716.68
8.0.90.0030.00516.87
8.0.80.0070.00816.82
8.0.70.0000.00816.96
8.0.60.0050.00316.92
8.0.50.0040.00416.79
8.0.30.0050.00416.97
8.0.20.0190.00317.40
8.0.10.0080.00016.92
8.0.00.0150.00416.66
7.4.330.0060.00015.03
7.4.320.0060.00016.45
7.4.300.0030.00316.53
7.4.290.0030.00516.64
7.4.280.0000.00816.49
7.4.270.0000.00716.62
7.4.260.0030.00316.54
7.4.250.0030.00516.51
7.4.240.0000.00716.46
7.4.230.0000.00716.40
7.4.220.0000.00716.58
7.4.210.0080.00516.52
7.4.200.0000.00716.54
7.4.160.0120.00416.45
7.4.150.0180.00017.40
7.4.140.0120.00717.86
7.4.130.0150.00716.33
7.4.120.0090.00716.48
7.4.110.0120.00616.58
7.4.100.0070.01116.34
7.4.90.0100.00716.45
7.4.80.0120.00919.39
7.4.70.0140.00316.50
7.4.60.0140.00416.61
7.4.50.0030.00516.57
7.4.40.0110.00616.38
7.4.30.0030.01616.68
7.4.00.0060.01014.99
7.3.330.0000.00513.19
7.3.320.0000.00513.18
7.3.310.0040.00216.20
7.3.300.0070.00016.30
7.3.290.0000.01816.23
7.3.280.0110.00816.29
7.3.270.0070.01017.40
7.3.260.0120.00916.49
7.3.250.0140.00516.35
7.3.240.0000.01716.61
7.3.230.0060.01016.47
7.3.210.0100.01016.54
7.3.200.0030.01319.39
7.3.190.0030.01316.21
7.3.180.0100.01016.24
7.3.170.0110.00616.27
7.3.160.0090.00916.20
7.3.120.0060.01114.58
7.3.110.0100.00714.74
7.3.100.0080.00814.43
7.3.90.0000.00914.79
7.3.80.0100.00714.63
7.3.70.0150.00014.66
7.3.60.0100.00014.58
7.3.50.0090.00614.87
7.3.40.0060.00614.59
7.3.30.0100.00314.80
7.3.20.0110.00416.57
7.3.10.0110.00416.44
7.3.00.0090.00616.68
7.2.330.0080.00816.70
7.2.320.0130.00716.66
7.2.310.0070.01016.54
7.2.300.0130.00316.53
7.2.290.0130.00316.30
7.2.250.0070.01115.14
7.2.240.0100.01014.99
7.2.230.0060.00614.75
7.2.220.0040.01114.91
7.2.210.0070.01315.08
7.2.200.0000.01814.89
7.2.190.0070.01014.70
7.2.180.0160.00314.88
7.2.170.0060.01214.62
7.2.60.0090.00616.53
7.2.00.0030.01019.05
7.1.330.0070.01115.77
7.1.320.0030.00715.77
7.1.310.0090.00315.91
7.1.300.0060.00915.83
7.1.290.0060.00615.97
7.1.280.0070.00715.71
7.1.270.0000.01315.52
7.1.260.0040.01215.63
7.1.200.0040.01115.87
7.1.100.0060.00617.80
7.1.70.0050.00217.04
7.1.60.0070.01719.25
7.1.50.0100.01016.58
7.1.00.0030.07722.41
7.0.200.0070.00016.72
7.0.140.0070.07022.11
7.0.60.0100.07019.89
7.0.50.0030.09017.96
7.0.40.0070.07020.39
7.0.30.0230.08720.08
7.0.20.0170.04320.07
7.0.10.0130.07020.19
7.0.00.0100.08720.10
5.6.210.0130.07320.68
5.6.200.0200.07018.19
5.6.190.0100.06720.68
5.6.180.0430.06720.48
5.6.170.0270.04320.50
5.6.160.0070.08320.54
5.6.150.0070.04718.27
5.6.140.0100.03718.28
5.6.130.0100.07718.26
5.6.120.0200.07321.02
5.6.110.0030.07721.04
5.6.100.0100.08321.00
5.6.90.0100.05321.10
5.6.80.0130.06320.29
5.5.350.0000.08320.49
5.5.340.0000.05018.03
5.5.330.0170.03720.41
5.5.320.0400.06320.32
5.5.310.0370.07020.31
5.5.300.0000.04017.98
5.5.290.0000.04318.02
5.5.280.0170.07720.80
5.5.270.0030.04020.95
5.5.260.0100.08320.65
5.5.250.0100.07320.71
5.5.240.0070.03720.07
5.4.450.0270.03719.48
5.4.440.0300.04319.47
5.4.430.0400.03319.32
5.4.420.0300.05319.30
5.4.410.0200.03319.27
5.4.400.0370.03019.08
5.4.390.0270.03719.22
5.4.380.0370.05718.75
5.4.370.0470.06718.52
5.4.360.0300.05318.84
5.4.350.0530.07318.69
5.4.340.0400.07318.84
5.4.320.0050.03712.49
5.4.310.0070.03812.48
5.4.300.0040.04012.49
5.4.290.0070.04112.48
5.4.280.0060.04012.38
5.4.270.0140.04012.38
5.4.260.0040.04012.38
5.4.250.0070.03812.38
5.4.240.0090.05112.38
5.4.230.0100.04912.38
5.4.220.0050.04012.38
5.4.210.0080.03512.37
5.4.200.0060.04012.37
5.4.190.0100.05512.37
5.4.180.0060.03812.37
5.4.170.0060.04012.38
5.4.160.0050.05212.38
5.4.150.0110.04612.38
5.4.140.0030.04412.06
5.4.130.0100.03312.05
5.4.120.0080.03612.01
5.4.110.0090.03512.00
5.4.100.0080.04212.00
5.4.90.0080.05312.00
5.4.80.0070.03812.00
5.4.70.0040.03912.00
5.4.60.0090.03212.00
5.4.50.0030.04012.00
5.4.40.0080.03411.98
5.4.30.0100.03511.98
5.4.20.0060.03811.98
5.4.10.0110.03611.98
5.4.00.0070.03711.47
5.3.290.0040.04312.80
5.3.280.0090.03812.71
5.3.270.0080.04012.73
5.3.260.0090.04512.72
5.3.250.0070.03812.72
5.3.240.0090.04612.72
5.3.230.0060.03912.71
5.3.220.0100.03712.68
5.3.210.0110.05012.68
5.3.200.0080.04912.68
5.3.190.0080.04512.68
5.3.180.0080.03912.68
5.3.170.0140.03812.67
5.3.160.0060.03712.67
5.3.150.0100.04012.67
5.3.140.0120.04112.66
5.3.130.0080.03712.66
5.3.120.0100.04112.66
5.3.110.0040.04312.66
5.3.100.0040.03912.12
5.3.90.0090.03312.09
5.3.80.0080.03512.08
5.3.70.0090.03612.09
5.3.60.0050.04012.07
5.3.50.0050.04112.02
5.3.40.0120.04512.02
5.3.30.0080.03611.98
5.3.20.0090.04411.76
5.3.10.0070.03411.72
5.3.00.0070.03511.71
5.2.170.0020.0349.21
5.2.160.0050.0299.21
5.2.150.0030.0339.21
5.2.140.0070.0299.21
5.2.130.0050.0499.17
5.2.120.0100.0299.17
5.2.110.0060.0299.18
5.2.100.0040.0309.17
5.2.90.0020.0329.18
5.2.80.0070.0299.18
5.2.70.0060.0309.17
5.2.60.0050.0299.12
5.2.50.0020.0349.08
5.2.40.0050.0289.06
5.2.30.0050.0309.04
5.2.20.0030.0329.03
5.2.10.0050.0298.94
5.2.00.0020.0328.80
5.1.60.0040.0258.07
5.1.50.0030.0308.07
5.1.40.0040.0278.05
5.1.30.0050.0268.40
5.1.20.0020.0298.42
5.1.10.0070.0248.15
5.1.00.0040.0278.14
5.0.50.0040.0216.63
5.0.40.0090.0216.48
5.0.30.0070.0376.30
5.0.20.0030.0206.27
5.0.10.0020.0216.24
5.0.00.0020.0326.24
4.4.90.0020.0164.78
4.4.80.0040.0154.76
4.4.70.0050.0144.75
4.4.60.0040.0144.75
4.4.50.0030.0154.77
4.4.40.0060.0224.71
4.4.30.0040.0144.76
4.4.20.0030.0164.84
4.4.10.0040.0154.84
4.4.00.0070.0274.75
4.3.110.0020.0174.67
4.3.100.0030.0154.66
4.3.90.0040.0144.63
4.3.80.0030.0254.58
4.3.70.0030.0214.63
4.3.60.0050.0124.63
4.3.50.0030.0164.62
4.3.40.0020.0274.54
4.3.30.0010.0173.29
4.3.20.0010.0173.27
4.3.10.0070.0153.22
4.3.00.0030.01715.26

preferences:
41.61 ms | 401 KiB | 5 Q