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($what->input['is_tall'])."<br><br>"; echo "is profile an array???<br>"; echo is_array($what->inpu['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.01218.31
8.3.50.0120.00722.09
8.3.40.0140.00018.84
8.3.30.0070.00719.12
8.3.20.0000.00820.38
8.3.10.0080.00023.51
8.3.00.0040.00420.88
8.2.180.0060.01316.88
8.2.170.0120.00322.96
8.2.160.0070.00720.47
8.2.150.0050.00224.18
8.2.140.0030.00524.66
8.2.130.0080.00626.16
8.2.120.0000.00820.90
8.2.110.0000.01022.19
8.2.100.0030.00720.32
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0050.00317.75
8.2.60.0000.01117.93
8.2.50.0050.00518.07
8.2.40.0060.00318.16
8.2.30.0000.01018.20
8.2.20.0070.00017.63
8.2.10.0040.00418.02
8.2.00.0000.00717.74
8.1.280.0070.01125.92
8.1.270.0040.00423.64
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00623.84
8.1.230.0040.00719.16
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0000.00817.22
8.1.180.0030.00518.10
8.1.170.0030.00618.52
8.1.160.0000.00721.84
8.1.150.0000.00718.64
8.1.140.0000.00817.36
8.1.130.0030.00317.85
8.1.120.0030.00317.47
8.1.110.0040.00417.27
8.1.100.0040.00417.37
8.1.90.0040.00417.41
8.1.80.0050.00317.43
8.1.70.0000.00717.39
8.1.60.0070.00017.48
8.1.50.0050.00317.53
8.1.40.0060.00317.59
8.1.30.0000.01017.70
8.1.20.0070.00017.67
8.1.10.0050.00517.57
8.1.00.0080.00417.55
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.57
8.0.270.0000.00917.33
8.0.260.0040.00417.21
8.0.250.0040.00416.96
8.0.240.0030.00616.84
8.0.230.0000.00716.93
8.0.220.0030.00316.82
8.0.210.0000.00716.88
8.0.200.0000.00616.98
8.0.190.0060.00616.86
8.0.180.0040.00716.95
8.0.170.0050.00316.83
8.0.160.0000.00816.80
8.0.150.0040.00416.84
8.0.140.0040.00416.84
8.0.130.0000.00513.38
8.0.120.0040.00416.93
8.0.110.0050.00316.88
8.0.100.0040.00416.92
8.0.90.0070.00016.77
8.0.80.0120.00416.88
8.0.70.0040.00416.78
8.0.60.0000.00716.95
8.0.50.0020.00516.85
8.0.30.0070.01217.27
8.0.20.0110.00817.40
8.0.10.0040.00416.99
8.0.00.0160.00616.78
7.4.330.0050.00015.00
7.4.320.0000.00616.51
7.4.300.0030.00316.54
7.4.290.0030.00616.56
7.4.280.0000.00716.50
7.4.270.0040.00416.51
7.4.260.0000.00816.48
7.4.250.0030.00616.56
7.4.240.0020.00516.48
7.4.230.0000.00716.43
7.4.220.0100.00716.56
7.4.210.0060.01316.66
7.4.200.0000.00716.61
7.4.160.0060.00916.35
7.4.150.0150.00317.40
7.4.140.0060.01317.86
7.4.130.0110.01016.67
7.4.120.0100.00716.41
7.4.110.0030.01316.68
7.4.100.0090.00916.64
7.4.90.0030.01416.42
7.4.80.0150.00319.39
7.4.70.0080.00816.57
7.4.60.0060.01016.63
7.4.50.0050.00016.34
7.4.40.0060.01216.57
7.4.30.0090.00616.60
7.4.00.0090.00714.80
7.3.330.0060.00313.27
7.3.320.0000.00513.19
7.3.310.0030.00316.36
7.3.300.0070.00016.36
7.3.290.0070.01116.34
7.3.280.0110.00916.34
7.3.270.0030.01317.40
7.3.260.0160.00916.66
7.3.250.0090.01416.48
7.3.240.0100.00616.47
7.3.230.0030.01316.59
7.3.210.0060.01616.47
7.3.200.0060.01019.39
7.3.190.0080.01116.27
7.3.180.0090.00616.37
7.3.170.0120.00316.39
7.3.160.0090.00816.30
7.3.120.0080.01014.75
7.3.110.0140.00414.94
7.3.100.0090.00615.03
7.3.90.0070.00714.92
7.3.80.0110.00714.93
7.3.70.0070.00714.91
7.3.60.0070.00414.91
7.3.50.0060.00614.95
7.3.40.0030.00714.88
7.3.30.0120.00614.84
7.3.20.0090.00616.50
7.3.10.0090.00916.39
7.3.00.0110.00716.43
7.2.330.0070.01016.21
7.2.320.0110.00716.68
7.2.310.0110.00716.72
7.2.300.0100.01316.65
7.2.290.0100.00716.73
7.2.250.0040.01515.27
7.2.240.0100.01015.34
7.2.230.0060.00914.82
7.2.220.0060.00615.34
7.2.210.0040.01115.25
7.2.200.0040.00715.00
7.2.190.0070.00714.80
7.2.180.0140.00015.14
7.2.170.0030.00915.08
7.2.130.0140.00316.08
7.2.120.0090.00316.18
7.2.110.0070.01016.30
7.2.100.0110.00416.30
7.2.90.0210.00016.71
7.2.80.0080.00816.54
7.2.70.0060.01016.41
7.2.60.0060.01016.69
7.2.50.0190.00016.41
7.2.40.0120.01216.77
7.2.30.0140.00416.59
7.2.20.0120.00816.06
7.2.10.0120.00916.85
7.2.00.0090.00517.89
7.1.330.0000.01715.82
7.1.320.0030.00915.75
7.1.310.0090.00915.86
7.1.300.0040.01115.88
7.1.290.0070.00715.65
7.1.280.0040.01115.86
7.1.270.0090.00615.99
7.1.260.0040.01115.71
7.1.250.0120.00815.11
7.1.200.0030.01315.72
7.1.100.0060.00618.07
7.1.70.0000.01016.78
7.1.60.0170.00719.70
7.1.50.0060.01916.68
7.1.00.0030.07722.54
7.0.200.0230.00414.92
7.0.140.0000.07322.00
7.0.60.0100.06721.82
7.0.50.0100.07717.89
7.0.40.0000.06320.04
7.0.30.0370.07020.00
7.0.20.0270.07020.30
7.0.10.0030.06719.96
7.0.00.0070.09020.16
5.6.280.0030.07321.06
5.6.210.0070.04020.69
5.6.200.0070.03718.14
5.6.190.0130.07720.67
5.6.180.4130.04320.63
5.6.170.0200.08320.41
5.6.160.0030.04320.40
5.6.150.0200.05018.22
5.6.140.0070.06718.14
5.6.130.0000.04318.11
5.6.120.0070.04320.99
5.6.110.0170.07721.13
5.6.100.0100.07720.95
5.6.90.0070.07720.97
5.6.80.0030.04020.48
5.5.350.0270.07020.35
5.5.340.0070.08318.01
5.5.330.0030.04720.29
5.5.320.3000.04320.21
5.5.310.0230.08020.29
5.5.300.0030.08017.91
5.5.290.0070.08018.02
5.5.280.0030.08320.76
5.5.270.0130.06720.86
5.5.260.0030.04020.87
5.5.250.0070.07720.58
5.5.240.0130.03320.26
5.4.450.0270.04028.29
5.4.440.0400.03328.29
5.4.430.0470.03728.28
5.4.420.0370.04728.28
5.4.410.0270.05328.28
5.4.400.0670.04328.28
5.4.390.0400.04328.28
5.4.380.0970.06318.66
5.4.370.1100.06318.73
5.4.360.1030.05318.73
5.4.350.1070.05318.49
5.4.340.0330.05718.68
5.4.320.0060.03812.46
5.4.310.0090.04112.46
5.4.300.0060.03612.46
5.4.290.0050.03812.46
5.4.280.0040.03712.36
5.4.270.0080.03512.36
5.4.260.0070.03712.36
5.4.250.0060.03812.36
5.4.240.0040.04412.36
5.4.230.0030.05412.35
5.4.220.0050.03612.35
5.4.210.0080.03412.35
5.4.200.0090.03712.35
5.4.190.0020.04012.34
5.4.180.0070.03412.35
5.4.170.0060.03512.36
5.4.160.0060.03512.36
5.4.150.0050.03612.35
5.4.140.0100.03312.03
5.4.130.0040.03712.02
5.4.120.0050.03511.98
5.4.110.0100.03111.98
5.4.100.0060.03411.98
5.4.90.0060.03611.97
5.4.80.0110.03111.97
5.4.70.0080.03211.97
5.4.60.0060.03411.97
5.4.50.0040.03611.97
5.4.40.0060.03411.95
5.4.30.0050.03511.95
5.4.20.0070.03611.95
5.4.10.0060.03311.96
5.4.00.0060.03511.44
5.3.290.0050.05012.80
5.3.280.0050.03812.71
5.3.270.0100.03512.72
5.3.260.0080.03712.72
5.3.250.0060.03612.72
5.3.240.0050.03812.72
5.3.230.0080.03512.71
5.3.220.0050.03712.68
5.3.210.0070.03712.68
5.3.200.0040.03812.68
5.3.190.0050.03912.68
5.3.180.0030.03912.67
5.3.170.0050.03712.67
5.3.160.0060.03612.67
5.3.150.0070.03612.67
5.3.140.0020.04012.66
5.3.130.0070.03712.66
5.3.120.0090.04712.66
5.3.110.0080.03712.66
5.3.100.0090.03412.12
5.3.90.0110.03312.09
5.3.80.0050.03612.08
5.3.70.0110.03112.07
5.3.60.0030.03912.06
5.3.50.0090.03512.00
5.3.40.0070.04512.00
5.3.30.0060.03411.95
5.3.20.0060.03411.73
5.3.10.0060.03411.70
5.3.00.0050.03611.69
5.2.170.0080.0389.19
5.2.160.0060.0419.18
5.2.150.0040.0329.19
5.2.140.0080.0289.18
5.2.130.0070.0279.14
5.2.120.0060.0279.14
5.2.110.0070.0269.15
5.2.100.0080.0269.14
5.2.90.0110.0229.14
5.2.80.0060.0289.14
5.2.70.0060.0289.14
5.2.60.0080.0269.09
5.2.50.0050.0309.06
5.2.40.0080.0259.04
5.2.30.0030.0309.02
5.2.20.0070.0279.00
5.2.10.0020.0318.93
5.2.00.0040.0308.78
5.1.60.0060.0248.07
5.1.50.0050.0238.07
5.1.40.0070.0238.05
5.1.30.0040.0268.39
5.1.20.0030.0288.42
5.1.10.0040.0278.14
5.1.00.0040.0268.14
5.0.50.0040.0226.62
5.0.40.0040.0196.48
5.0.30.0030.0306.29
5.0.20.0020.0206.27
5.0.10.0040.0186.25
5.0.00.0040.0356.23
4.4.90.0040.0164.78
4.4.80.0030.0144.75
4.4.70.0020.0164.75
4.4.60.0040.0214.76
4.4.50.0030.0174.77
4.4.40.0040.0304.71
4.4.30.0050.0194.76
4.4.20.0040.0184.85
4.4.10.0060.0164.85
4.4.00.0020.0254.76
4.3.110.0000.0184.66
4.3.100.0020.0164.67
4.3.90.0020.0184.64
4.3.80.0000.0284.59
4.3.70.0030.0144.63
4.3.60.0060.0234.63
4.3.50.0030.0214.63
4.3.40.0040.0264.53
4.3.30.0020.0163.29
4.3.20.0020.0163.26
4.3.10.0020.0163.21
4.3.00.0070.01728.28

preferences:
43.02 ms | 401 KiB | 5 Q