3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stuff = '{ "input": { "is_tall": [ "BOOLEAN", false ], "profile": { "fav_color": [ "STRING", true ], "sport": [ "STRING", true ] }, "awesome": "BOOLEAN" } }'; $what = json_decode($stuff); var_dump($what); echo "is is_tall an array???<br>"; echo is_array($input['is_tall'])."<br><br>"; echo "is profile an array???<br>"; echo is_array($input['profile'])."<br><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.0030.01316.63
8.3.50.0100.00621.87
8.3.40.0120.00318.84
8.3.30.0110.00319.08
8.3.20.0070.00020.16
8.3.10.0040.00423.54
8.3.00.0050.00320.94
8.2.180.0040.01816.88
8.2.170.0150.00022.96
8.2.160.0030.01020.36
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00420.84
8.2.110.0140.00722.25
8.2.100.0080.00419.76
8.2.90.0000.00819.36
8.2.80.0040.00417.97
8.2.70.0050.00317.75
8.2.60.0000.00818.03
8.2.50.0040.00718.07
8.2.40.0040.00419.89
8.2.30.0000.00918.34
8.2.20.0030.00617.73
8.2.10.0000.00718.16
8.2.00.0000.00917.81
8.1.280.0100.00325.92
8.1.270.0060.00322.14
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00323.77
8.1.230.0040.00819.02
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0050.00517.23
8.1.190.0090.00017.23
8.1.180.0030.00518.10
8.1.170.0040.00418.65
8.1.160.0040.00322.02
8.1.150.0030.00518.62
8.1.140.0080.00017.37
8.1.130.0050.00317.78
8.1.120.0000.00817.38
8.1.110.0040.00417.52
8.1.100.0040.00417.42
8.1.90.0040.00417.45
8.1.80.0080.00017.35
8.1.70.0000.00717.46
8.1.60.0050.00317.62
8.1.50.0020.00517.53
8.1.40.0000.00917.41
8.1.30.0060.00317.70
8.1.20.0040.00417.59
8.1.10.0050.00317.58
8.1.00.0040.00717.57
8.0.300.0040.00418.77
8.0.290.0070.00017.05
8.0.280.0000.00718.51
8.0.270.0050.00217.21
8.0.260.0070.00017.26
8.0.250.0040.00417.00
8.0.240.0030.00617.00
8.0.230.0030.00316.99
8.0.220.0040.00416.87
8.0.210.0070.00017.01
8.0.200.0030.00317.03
8.0.190.0060.00316.96
8.0.180.0000.01016.99
8.0.170.0040.00417.01
8.0.160.0060.00317.02
8.0.150.0040.00316.85
8.0.140.0000.00816.87
8.0.130.0000.00513.41
8.0.120.0050.00316.89
8.0.110.0000.00716.87
8.0.100.0050.00316.86
8.0.90.0040.00416.88
8.0.80.0030.01617.02
8.0.70.0070.00016.86
8.0.60.0000.00816.95
8.0.50.0040.00416.77
8.0.30.0050.01417.10
8.0.20.0130.00717.40
8.0.10.0050.00217.08
8.0.00.0120.00717.05
7.4.330.0060.00015.01
7.4.320.0000.00716.58
7.4.300.0060.00016.52
7.4.290.0040.00416.48
7.4.280.0040.00416.52
7.4.270.0080.00016.57
7.4.260.0040.00416.50
7.4.250.0000.00816.44
7.4.240.0000.00716.48
7.4.230.0030.00316.61
7.4.220.0040.01416.50
7.4.210.0150.00016.58
7.4.200.0040.00416.62
7.4.160.0070.01016.52
7.4.150.0070.01017.40
7.4.140.0110.01317.86
7.4.130.0060.01116.69
7.4.120.0040.01216.51
7.4.110.0130.00716.44
7.4.100.0140.00416.46
7.4.90.0110.00816.58
7.4.80.0120.00919.39
7.4.70.0100.00716.61
7.4.60.0120.00916.64
7.4.50.0030.00316.57
7.4.40.0110.00716.30
7.4.30.0080.00816.50
7.4.00.0070.01214.70
7.3.330.0030.00413.28
7.3.320.0020.00213.27
7.3.310.0050.00316.49
7.3.300.0070.00016.29
7.3.290.0110.00716.39
7.3.280.0100.00816.28
7.3.270.0180.00717.40
7.3.260.0200.00016.54
7.3.250.0120.00916.45
7.3.240.0110.00816.48
7.3.230.0030.01616.51
7.3.210.0110.00716.61
7.3.200.0070.01119.39
7.3.190.0140.00416.29
7.3.180.0060.01116.43
7.3.170.0100.01016.55
7.3.160.0040.01316.48
7.3.120.0060.01114.84
7.3.110.0170.00314.98
7.3.100.0090.00914.93
7.3.90.0100.00314.63
7.3.80.0060.01014.86
7.3.70.0070.00714.71
7.3.60.0070.01014.85
7.3.50.0060.00914.84
7.3.40.0030.01014.92
7.3.30.0070.00314.58
7.3.20.0090.00616.54
7.3.10.0030.00916.25
7.3.00.0030.00916.75
7.2.330.0030.01616.94
7.2.320.0130.00916.74
7.2.310.0110.00716.81
7.2.300.0090.00916.75
7.2.290.0090.00916.74
7.2.250.0070.01014.86
7.2.240.0030.01514.95
7.2.230.0130.00314.97
7.2.220.0060.00915.27
7.2.210.0000.01714.98
7.2.200.0030.00714.95
7.2.190.0100.00715.02
7.2.180.0060.00915.23
7.2.170.0110.00415.08
7.2.60.0080.00516.72
7.2.00.0060.00919.07
7.1.330.0030.01015.82
7.1.320.0090.00315.58
7.1.310.0040.01415.87
7.1.300.0030.01415.79
7.1.290.0040.00715.62
7.1.280.0030.01015.61
7.1.270.0060.00915.74
7.1.260.0110.00415.46
7.1.200.0070.00715.87
7.1.100.0000.00918.17
7.1.70.0040.00416.87
7.1.60.0060.01919.70
7.1.50.0270.00816.68
7.1.00.0130.06722.45
7.0.200.0390.00314.76
7.0.140.0070.07322.08
7.0.60.0070.08020.00
7.0.50.0030.06317.84
7.0.40.0130.08020.23
7.0.30.0200.04020.18
7.0.20.0230.09020.13
7.0.10.0330.06720.09
7.0.00.0030.07020.01
5.6.280.0030.09721.04
5.6.210.0170.07020.49
5.6.200.0030.04318.09
5.6.190.0100.05020.68
5.6.180.0000.05020.39
5.6.170.0400.07020.41
5.6.160.0100.08020.40
5.6.150.0130.04318.13
5.6.140.0070.06318.14
5.6.130.0000.04318.22
5.6.120.0100.08020.89
5.6.110.0030.09020.88
5.6.100.0000.04721.00
5.6.90.0030.07721.02
5.6.80.0070.04020.49
5.6.70.3830.03320.27
5.5.350.0070.08320.41
5.5.340.0030.07318.01
5.5.330.0000.06320.39
5.5.320.0430.05720.31
5.5.310.0300.07320.30
5.5.300.0000.08317.91
5.5.290.0100.03717.91
5.5.280.0030.05020.89
5.5.270.0000.04320.95
5.5.260.0170.07020.75
5.5.250.0100.06320.77
5.5.240.0070.08020.36
5.4.450.0330.04328.29
5.4.440.0430.05728.29
5.4.430.1200.05319.38
5.4.420.0230.04728.28
5.4.410.0270.04728.28
5.4.400.0400.04328.28
5.4.390.0200.04728.28
5.4.380.0370.05018.63
5.4.370.0600.05018.69
5.4.360.0300.04718.71
5.4.350.0300.04718.46
5.4.340.0230.05718.57
5.4.320.0060.04112.45
5.4.310.0060.04112.45
5.4.300.0100.04612.45
5.4.290.0090.05612.45
5.4.280.0080.04612.35
5.4.270.0040.04912.35
5.4.260.0050.03912.35
5.4.250.0090.03612.35
5.4.240.0100.03812.35
5.4.230.0090.03512.34
5.4.220.0080.03412.34
5.4.210.0070.03512.34
5.4.200.0070.03612.34
5.4.190.0060.03612.34
5.4.180.0070.03512.34
5.4.170.0070.03512.35
5.4.160.0060.03712.35
5.4.150.0070.03812.34
5.4.140.0070.04112.03
5.4.130.0100.04612.02
5.4.120.0100.03511.97
5.4.110.0070.03711.96
5.4.100.0070.03711.97
5.4.90.0090.03611.97
5.4.80.0070.03811.97
5.4.70.0050.04011.96
5.4.60.0090.03611.96
5.4.50.0070.04511.96
5.4.40.0040.04211.95
5.4.30.0070.04611.95
5.4.20.0020.03911.95
5.4.10.0060.03611.95
5.4.00.0070.03611.44
5.3.290.0080.04312.80
5.3.280.0060.03912.71
5.3.270.0080.03712.72
5.3.260.0080.03912.72
5.3.250.0060.04912.72
5.3.240.0090.05212.72
5.3.230.0100.04912.71
5.3.220.0140.04612.68
5.3.210.0060.05512.68
5.3.200.0080.05112.68
5.3.190.0150.04412.67
5.3.180.0080.05112.67
5.3.170.0090.04012.67
5.3.160.0080.03612.68
5.3.150.0080.04112.68
5.3.140.0110.04012.66
5.3.130.0050.04212.66
5.3.120.0070.03912.66
5.3.110.0100.03712.66
5.3.100.0080.03912.12
5.3.90.0070.03912.09
5.3.80.0060.03712.07
5.3.70.0040.03912.07
5.3.60.0050.03812.06
5.3.50.0120.03312.00
5.3.40.0070.03812.00
5.3.30.0060.03611.95
5.3.20.0070.03611.73
5.3.10.0070.03711.70
5.3.00.0080.03911.68
5.2.170.0040.0329.18
5.2.160.0040.0339.18
5.2.150.0050.0329.18
5.2.140.0070.0289.18
5.2.130.0060.0289.13
5.2.120.0070.0279.13
5.2.110.0060.0299.14
5.2.100.0050.0299.14
5.2.90.0080.0299.14
5.2.80.0030.0329.14
5.2.70.0070.0289.14
5.2.60.0050.0309.09
5.2.50.0060.0299.05
5.2.40.0070.0269.03
5.2.30.0060.0319.01
5.2.20.0060.0289.00
5.2.10.0070.0258.92
5.2.00.0070.0288.78
5.1.60.0030.0278.07
5.1.50.0050.0268.07
5.1.40.0070.0238.04
5.1.30.0070.0258.39
5.1.20.0070.0258.41
5.1.10.0040.0268.14
5.1.00.0070.0228.14
5.0.50.0030.0226.62
5.0.40.0040.0206.48
5.0.30.0040.0306.29
5.0.20.0060.0166.26
5.0.10.0040.0196.24
5.0.00.0030.0316.23
4.4.90.0020.0164.78
4.4.80.0030.0144.76
4.4.70.0050.0134.75
4.4.60.0070.0114.75
4.4.50.0060.0124.77
4.4.40.0050.0234.71
4.4.30.0060.0124.76
4.4.20.0010.0174.84
4.4.10.0050.0134.85
4.4.00.0030.0244.76
4.3.110.0020.0164.67
4.3.100.0060.0114.66
4.3.90.0070.0104.63
4.3.80.0080.0194.58
4.3.70.0040.0134.63
4.3.60.0050.0124.63
4.3.50.0050.0134.63
4.3.40.0040.0234.54
4.3.30.0030.0153.28
4.3.20.0030.0153.26
4.3.10.0030.0153.22
4.3.00.0000.01328.25

preferences:
41.59 ms | 401 KiB | 5 Q