3v4l.org

run code in 300+ PHP versions simultaneously
<?php //header('Content-Type: application/json'); $json = '{"hello" : "wow"}'; //$array = array("hello" => "wow"); //$json = json_encode($array); $decode = json_decode($json, TRUE); print_r($decode); //echo $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.0120.00416.63
8.3.50.0110.00622.94
8.3.40.0040.01118.42
8.3.30.0070.00719.00
8.3.20.0000.00720.14
8.3.10.0060.00323.48
8.3.00.0040.00419.26
8.2.180.0000.01517.94
8.2.170.0040.01122.96
8.2.160.0120.00320.37
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0070.00021.16
8.2.110.0030.00620.50
8.2.100.0090.00318.03
8.2.90.0000.00719.22
8.2.80.0030.00617.97
8.2.70.0080.00017.38
8.2.60.0030.00617.92
8.2.50.0000.00818.07
8.2.40.0030.01118.09
8.2.30.0040.00418.04
8.2.20.0000.00717.57
8.2.10.0000.00818.11
8.2.00.0030.00617.66
8.1.280.0090.01325.92
8.1.270.0040.00423.97
8.1.260.0050.00226.35
8.1.250.0000.00828.09
8.1.240.0060.00323.76
8.1.230.0080.00319.01
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0040.00418.41
8.1.160.0000.00721.85
8.1.150.0040.00418.89
8.1.140.0030.00517.37
8.1.130.0000.00717.73
8.1.120.0030.00317.36
8.1.110.0080.00017.44
8.1.100.0050.00317.25
8.1.90.0040.00417.34
8.1.80.0070.00017.40
8.1.70.0000.00717.27
8.1.60.0080.00017.46
8.1.50.0040.00417.47
8.1.40.0090.00017.34
8.1.30.0040.00417.52
8.1.20.0050.00517.62
8.1.10.0040.00417.42
8.1.00.0000.00717.35
8.0.300.0000.00718.77
8.0.290.0020.00516.75
8.0.280.0000.00718.41
8.0.270.0020.00517.24
8.0.260.0030.00317.19
8.0.250.0030.00316.81
8.0.240.0060.00016.87
8.0.230.0030.00316.85
8.0.220.0000.00716.84
8.0.210.0030.00316.88
8.0.200.0030.00316.88
8.0.190.0040.00416.87
8.0.180.0040.00416.73
8.0.170.0080.00016.81
8.0.160.0030.00316.80
8.0.150.0040.00416.66
8.0.140.0050.00216.69
8.0.130.0000.00713.23
8.0.120.0050.00316.75
8.0.110.0000.00716.79
8.0.100.0050.00216.80
8.0.90.0040.00416.78
8.0.80.0060.00916.82
8.0.70.0000.00816.68
8.0.60.0070.00016.85
8.0.50.0050.00216.68
8.0.30.0080.01316.96
8.0.20.0100.01217.40
8.0.10.0000.00916.74
8.0.00.0070.01316.64
7.4.330.0050.00015.00
7.4.320.0000.00616.52
7.4.300.0060.00016.53
7.4.290.0000.00616.34
7.4.280.0070.00016.50
7.4.270.0030.00316.52
7.4.260.0030.00316.27
7.4.250.0040.00416.48
7.4.240.0050.00316.51
7.4.230.0000.00816.63
7.4.220.0070.01016.50
7.4.210.0100.01016.57
7.4.200.0030.00316.23
7.4.160.0060.01016.42
7.4.150.0070.01517.40
7.4.140.0090.01017.86
7.4.130.0150.00416.40
7.4.120.0090.00816.44
7.4.110.0070.01016.49
7.4.100.0090.00916.48
7.4.90.0130.00716.39
7.4.80.0160.00616.37
7.4.70.0050.01216.31
7.4.60.0100.00616.14
7.4.50.0030.00516.35
7.4.40.0030.01416.58
7.4.30.0100.00716.38
7.4.00.0140.00014.75
7.3.330.0030.00312.98
7.3.320.0050.00012.87
7.3.310.0070.00015.96
7.3.300.0040.00416.12
7.3.290.0030.00916.12
7.3.280.0070.01116.11
7.3.270.0100.00717.40
7.3.260.0090.01315.98
7.3.250.0070.00916.15
7.3.240.0130.01016.21
7.3.230.0120.00616.39
7.3.210.0180.00916.20
7.3.200.0040.01219.39
7.3.190.0190.00316.18
7.3.180.0060.00916.26
7.3.170.0070.00716.27
7.3.160.0080.00816.18
7.2.330.0130.00616.34
7.2.320.0070.01016.64
7.2.310.0030.01416.15
7.2.300.0150.00616.39
7.2.290.0110.00816.54
7.2.60.0000.00916.98
7.2.00.0030.00919.37
7.1.200.0040.00415.63
7.1.100.0040.00418.12
7.1.70.0080.00817.21
7.1.60.0060.01919.46
7.1.50.0090.01616.99
7.1.00.0000.08022.30
7.0.200.0040.00416.82
7.0.140.0000.07322.05
7.0.60.0100.07720.06
7.0.50.0070.08317.78
7.0.40.0030.06320.04
7.0.30.0570.06720.13
7.0.20.0330.08020.12
7.0.10.0030.06320.21
7.0.00.0100.08020.11
5.6.280.0000.07721.09
5.6.210.0030.08020.70
5.6.200.0170.04018.08
5.6.190.0100.07720.56
5.6.180.0230.04720.35
5.6.170.0330.07020.38
5.6.160.0070.08320.71
5.6.150.0130.07318.12
5.6.140.0070.06018.20
5.6.130.0030.05318.08
5.6.120.0130.06321.09
5.6.110.0130.07721.08
5.6.100.0000.04721.07
5.6.90.0100.08020.99
5.6.80.0130.07320.37
5.5.350.0270.06720.40
5.5.340.0100.07017.93
5.5.330.0070.09020.23
5.5.320.0130.07320.24
5.5.310.0230.07720.28
5.5.300.0130.03717.90
5.5.290.0070.05718.02
5.5.280.0030.08720.76
5.5.270.0000.05020.86
5.5.260.0070.08320.86
5.5.250.0070.03720.76
5.5.240.0230.07720.06
5.4.450.0630.03719.58
5.4.440.0230.04319.45
5.4.430.0870.04019.47
5.4.420.0300.04319.41
5.4.410.0230.04719.27
5.4.400.0300.04019.25
5.4.390.0530.05318.93
5.4.380.0330.06318.68
5.4.370.0130.05718.78
5.4.360.0370.06018.49
5.4.350.0400.05018.77
5.4.340.0430.05318.76
5.4.320.0090.03912.45
5.4.310.0080.03912.45
5.4.300.0070.03712.45
5.4.290.0080.03712.45
5.4.280.0080.03412.35
5.4.270.0070.04312.34
5.4.260.0080.05612.34
5.4.250.0080.05112.35
5.4.240.0090.05012.34
5.4.230.0110.04812.34
5.4.220.0100.05212.34
5.4.210.0110.04212.34
5.4.200.0100.05012.34
5.4.190.0070.04912.34
5.4.180.0070.03912.34
5.4.170.0080.03412.35
5.4.160.0060.03712.34
5.4.150.0030.03912.34
5.4.140.0060.03712.02
5.4.130.0070.03412.01
5.4.120.0040.03711.96
5.4.110.0030.04011.96
5.4.100.0050.03711.96
5.4.90.0100.03311.96
5.4.80.0040.03911.96
5.4.70.0030.03911.96
5.4.60.0050.04111.96
5.4.50.0080.03311.96
5.4.40.0050.03611.95
5.4.30.0060.03711.95
5.4.20.0100.04211.95
5.4.10.0080.04611.94
5.4.00.0030.03911.44
5.3.290.0050.04112.80
5.3.280.0070.03712.71
5.3.270.0120.04612.72
5.3.260.0100.04012.71
5.3.250.0070.03712.72
5.3.240.0060.03712.71
5.3.230.0070.03812.71
5.3.220.0050.04912.68
5.3.210.0070.04412.68
5.3.200.0070.03612.68
5.3.190.0070.03612.68
5.3.180.0050.03812.67
5.3.170.0070.03912.67
5.3.160.0070.03412.68
5.3.150.0060.03712.67
5.3.140.0060.04112.66
5.3.130.0040.04112.66
5.3.120.0020.04212.66
5.3.110.0080.03912.66
5.3.100.0040.03812.12
5.3.90.0060.03912.08
5.3.80.0080.04012.07
5.3.70.0040.03812.08
5.3.60.0050.03712.07
5.3.50.0060.04012.00
5.3.40.0070.03512.00
5.3.30.0020.03811.95
5.3.20.0070.03511.72
5.3.10.0060.03511.69
5.3.00.0060.03611.68
5.2.170.0050.0299.18
5.2.160.0050.0289.18
5.2.150.0030.0319.18
5.2.140.0060.0359.18
5.2.130.0070.0289.13
5.2.120.0050.0369.14
5.2.110.0060.0279.14
5.2.100.0070.0279.13
5.2.90.0070.0329.13
5.2.80.0040.0309.13
5.2.70.0030.0329.13
5.2.60.0050.0299.09
5.2.50.0100.0259.05
5.2.40.0060.0279.03
5.2.30.0040.0319.00
5.2.20.0020.0319.00
5.2.10.0050.0278.92
5.2.00.0020.0328.77
5.1.60.0030.0258.06
5.1.50.0060.0238.06
5.1.40.0060.0228.04
5.1.30.0040.0268.39
5.1.20.0030.0278.41
5.1.10.0050.0258.14
5.1.00.0030.0278.14
5.0.50.0030.0226.61
5.0.40.0030.0206.48
5.0.30.0020.0326.29
5.0.20.0040.0186.26
5.0.10.0020.0216.24
5.0.00.0020.0316.23
4.4.90.0010.0174.78
4.4.80.0020.0154.75
4.4.70.0020.0154.75
4.4.60.0030.0154.75
4.4.50.0010.0214.77
4.4.40.0040.0244.71
4.4.30.0030.0154.76
4.4.20.0040.0174.84
4.4.10.0020.0204.85
4.4.00.0020.0264.75
4.3.110.0030.0234.67
4.3.100.0040.0134.66
4.3.90.0030.0144.63
4.3.80.0030.0254.58
4.3.70.0060.0114.63
4.3.60.0040.0134.63
4.3.50.0070.0124.62
4.3.40.0040.0244.53
4.3.30.0020.0153.28
4.3.20.0020.0163.26
4.3.10.0020.0153.22
4.3.00.0000.01715.68

preferences:
34.86 ms | 401 KiB | 5 Q