3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = array( '123' => array('data' => 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(array('id'=>2,'description'=>'Single-player'), array('id'=>1,'description'=>'Multiple-player'))), ); print_r($json);

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.01316.50
8.3.50.0070.00718.05
8.3.40.0120.00318.54
8.3.30.0100.00318.92
8.3.20.0080.00020.04
8.3.10.0000.00821.78
8.3.00.0040.00417.75
8.2.180.0120.00316.38
8.2.170.0060.00822.96
8.2.160.0130.00320.35
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00420.90
8.2.110.0070.00422.16
8.2.100.0100.00319.45
8.2.90.0080.00019.02
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0000.00817.91
8.2.50.0050.00318.07
8.2.40.0040.00418.16
8.2.30.0040.00417.88
8.2.20.0080.00017.56
8.2.10.0040.00418.09
8.2.00.0060.00317.48
8.1.270.0090.00623.79
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00023.88
8.1.230.0070.00419.08
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0040.00717.22
8.1.190.0060.00317.13
8.1.180.0050.00318.10
8.1.170.0000.00918.46
8.1.160.0040.00421.84
8.1.150.0040.00418.81
8.1.140.0030.00617.30
8.1.130.0000.00717.85
8.1.120.0000.00717.38
8.1.110.0040.00417.38
8.1.100.0040.00417.44
8.1.90.0030.00317.21
8.1.80.0000.00717.27
8.1.70.0030.00317.39
8.1.60.0000.00917.46
8.1.50.0000.00817.44
8.1.40.0000.00717.45
8.1.30.0030.00617.54
8.1.20.0040.00417.59
8.1.10.0080.00017.32
8.1.00.0000.00717.33
8.0.300.0000.00718.77
8.0.290.0040.00416.58
8.0.280.0040.00418.37
8.0.270.0080.00017.09
8.0.260.0030.00317.18
8.0.250.0000.00716.84
8.0.240.0020.00516.79
8.0.230.0070.00016.80
8.0.220.0030.00316.85
8.0.210.0050.00216.70
8.0.200.0000.00816.93
8.0.190.0050.00316.75
8.0.180.0000.00816.72
8.0.170.0040.00416.86
8.0.160.0040.00416.80
8.0.150.0030.00916.84
8.0.140.0000.00716.79
8.0.130.0030.00313.23
8.0.120.0040.00416.77
8.0.110.0040.00416.71
8.0.100.0000.00716.88
8.0.90.0040.00416.81
8.0.80.0030.01216.87
8.0.70.0000.00716.73
8.0.60.0000.00716.85
8.0.50.0040.00416.79
8.0.30.0120.00917.18
8.0.20.0100.01017.40
8.0.10.0000.00717.00
8.0.00.0100.00816.64
7.4.330.0020.00215.11
7.4.320.0030.00316.33
7.4.300.0060.00016.41
7.4.290.0030.00516.37
7.4.280.0000.00716.52
7.4.270.0030.00316.38
7.4.260.0000.00716.52
7.4.250.0050.00316.46
7.4.240.0040.00416.46
7.4.230.0030.00316.34
7.4.220.0150.00316.49
7.4.210.0130.00316.46
7.4.200.0030.00316.52
7.4.160.0080.00816.36
7.4.150.0160.00317.40
7.4.140.0090.01117.86
7.4.130.0120.00816.35
7.4.120.0060.01016.37
7.4.110.0120.00916.25
7.4.100.0110.00716.42
7.4.90.0120.00416.19
7.4.80.0190.00319.39
7.4.70.0060.00916.53
7.4.60.0070.01016.36
7.4.50.0060.00016.39
7.4.40.0060.00916.19
7.4.30.0090.00616.41
7.4.00.0040.01514.71
7.3.330.0030.00312.93
7.3.320.0000.00513.04
7.3.310.0000.00716.09
7.3.300.0030.00316.18
7.3.290.0090.00616.06
7.3.280.0090.00816.14
7.3.270.0100.00717.40
7.3.260.0170.00016.13
7.3.240.0170.00016.11
7.3.230.0060.00916.39
7.3.210.0000.02116.02
7.3.200.0120.01219.39
7.3.190.0130.00916.07
7.3.180.0100.01016.26
7.3.170.0140.00316.27
7.3.160.0190.00316.07
7.3.120.0090.00614.80
7.3.10.0070.00516.42
7.3.00.0080.00316.48
7.2.330.0070.01116.43
7.2.320.0100.00916.39
7.2.310.0140.00316.47
7.2.300.0140.00416.27
7.2.290.0030.01316.40
7.2.130.0080.00716.56
7.2.120.0030.00816.79
7.2.110.0090.00516.44
7.2.100.0050.00916.52
7.2.90.0070.00816.62
7.2.80.0080.00816.75
7.2.70.0080.00516.57
7.2.60.0030.01016.63
7.2.50.0030.01116.67
7.2.40.0050.00816.79
7.2.30.0040.01116.46
7.2.20.0080.00716.63
7.2.10.0080.00416.71
7.2.00.0060.00817.60
7.1.250.0060.00615.63
7.1.200.0000.01115.63
7.1.100.0040.00718.07
7.1.70.0050.00316.95
7.1.60.0140.01019.25
7.1.50.0100.00716.78
7.1.00.0000.08022.42
7.0.200.0000.01116.43
7.0.140.0030.06722.00
7.0.60.0200.05319.92
7.0.50.0000.04717.87
7.0.40.0130.07020.27
7.0.30.0200.03720.21
7.0.20.0300.07720.16
7.0.10.0100.05320.23
7.0.00.0000.05720.35
5.6.280.0130.06321.15
5.6.210.0100.07320.43
5.6.200.0070.08318.14
5.6.190.0100.08320.57
5.6.180.0270.04320.41
5.6.170.0300.07320.46
5.6.160.0070.08320.46
5.6.150.0200.05718.24
5.6.140.0000.05018.28
5.6.130.0100.07718.28
5.6.120.0070.07321.02
5.6.110.0100.06720.89
5.6.100.0170.07020.98
5.6.90.0070.06721.09
5.6.80.0030.04720.38
5.5.350.0070.07020.30
5.5.340.0030.08317.94
5.5.330.0100.04720.47
5.5.320.0000.04320.32
5.5.310.0300.08020.30
5.5.300.0030.08317.95
5.5.290.0070.07017.92
5.5.280.0070.08320.77
5.5.270.0130.03320.77
5.5.260.0170.08020.88
5.5.250.0330.06320.69
5.5.240.0300.07320.23
5.4.450.0400.04019.55
5.4.440.0170.05319.38
5.4.430.0230.04719.30
5.4.420.0300.03019.45
5.4.410.0270.03319.33
5.4.400.0300.03319.06
5.4.390.0330.04019.22
5.4.380.0170.07018.56
5.4.370.0200.07018.82
5.4.360.0230.04718.72
5.4.350.0230.05018.59
5.4.340.0300.06018.75
5.4.320.0050.03912.48
5.4.310.0070.04012.48
5.4.300.0090.03512.48
5.4.290.0070.03912.48
5.4.280.0110.04912.38
5.4.270.0170.04112.38
5.4.260.0110.04612.38
5.4.250.0070.04012.38
5.4.240.0080.03812.38
5.4.230.0060.04112.37
5.4.220.0080.03712.37
5.4.210.0120.04712.37
5.4.200.0080.04712.37
5.4.190.0060.03912.37
5.4.180.0140.04112.37
5.4.170.0080.03612.38
5.4.160.0110.04612.38
5.4.150.0090.04312.37
5.4.140.0130.04412.06
5.4.130.0090.04112.04
5.4.120.0150.04612.00
5.4.110.0080.04412.00
5.4.100.0110.03712.00
5.4.90.0080.05211.99
5.4.80.0140.04611.99
5.4.70.0070.05111.99
5.4.60.0180.03411.99
5.4.50.0090.03411.99
5.4.40.0110.03111.98
5.4.30.0080.03511.98
5.4.20.0100.03311.98
5.4.10.0060.03711.98
5.4.00.0110.03511.46
5.3.290.0130.04112.80
5.3.280.0060.04012.71
5.3.270.0080.03912.72
5.3.260.0100.03812.71
5.3.250.0100.03512.72
5.3.240.0100.04912.72
5.3.230.0090.04512.70
5.3.220.0060.03912.68
5.3.210.0070.04012.68
5.3.200.0120.04412.68
5.3.190.0080.03912.68
5.3.180.0080.03612.67
5.3.170.0100.03412.67
5.3.160.0040.04112.67
5.3.150.0080.03612.68
5.3.140.0080.03612.66
5.3.130.0130.03512.66
5.3.120.0130.04912.66
5.3.110.0120.04112.66
5.3.100.0090.04012.12
5.3.90.0100.03312.09
5.3.80.0120.03312.08
5.3.70.0100.03512.08
5.3.60.0080.04612.07
5.3.50.0060.04812.01
5.3.40.0080.03612.01
5.3.30.0100.03211.97
5.3.20.0110.03411.75
5.3.10.0090.03811.71
5.3.00.0070.03611.70
5.2.170.0110.0339.21
5.2.160.0100.0319.21
5.2.150.0060.0409.21
5.2.140.0080.0339.21
5.2.130.0130.0369.16
5.2.120.0080.0299.16
5.2.110.0070.0289.17
5.2.100.0030.0309.17
5.2.90.0060.0319.17
5.2.80.0040.0319.17
5.2.70.0070.0309.17
5.2.60.0060.0319.11
5.2.50.0050.0329.09
5.2.40.0090.0289.06
5.2.30.0080.0369.04
5.2.20.0100.0339.03
5.2.10.0070.0358.93
5.2.00.0110.0348.80
5.1.60.0050.0258.09
5.1.50.0030.0288.08
5.1.40.0100.0228.06
5.1.30.0040.0288.41
5.1.20.0080.0258.43
5.1.10.0100.0228.16
5.1.00.0060.0268.16
5.0.50.0040.0246.63
5.0.40.0080.0186.49
5.0.30.0070.0326.30
5.0.20.0060.0196.27
5.0.10.0070.0186.25
5.0.00.0070.0296.25
4.4.90.0030.0214.77
4.4.80.0070.0134.75
4.4.70.0060.0154.76
4.4.60.0080.0144.75
4.4.50.0080.0124.77
4.4.40.0040.0304.71
4.4.30.0060.0194.76
4.4.20.0050.0154.85
4.4.10.0050.0164.84
4.4.00.0040.0254.76
4.3.110.0040.0164.67
4.3.100.0060.0144.67
4.3.90.0060.0144.63
4.3.80.0040.0244.58
4.3.70.0030.0164.63
4.3.60.0050.0144.63
4.3.50.0080.0134.63
4.3.40.0060.0314.53
4.3.30.0040.0163.29
4.3.20.0030.0183.27
4.3.10.0100.0153.23
4.3.00.0070.01715.26

preferences:
70.91 ms | 400 KiB | 5 Q