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_object($what); die(); echo "is is_tall an array???\r\n"; echo is_array($what->input->is_tall)."\r\n\r\n"; echo "is profile an array???\r\n"; echo is_array($what->input->profile)."\r\n\r\n"; echo "is profile an object???\r\n"; echo is_object($what->input->profile)."\r\n\r\n";

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.01416.50
8.3.50.0100.00821.91
8.3.40.0030.01018.63
8.3.30.0110.00418.82
8.3.20.0000.00820.24
8.3.10.0000.00823.61
8.3.00.0040.00420.94
8.2.180.0240.00016.50
8.2.170.0120.00322.96
8.2.160.0030.01020.46
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0070.01026.16
8.2.120.0050.00320.71
8.2.110.0040.00422.20
8.2.100.0090.00317.78
8.2.90.0040.00419.23
8.2.80.0030.00617.97
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0110.00018.07
8.2.40.0000.00820.01
8.2.30.0110.00018.27
8.2.20.0060.00317.76
8.2.10.0030.00517.97
8.2.00.0050.00317.83
8.1.280.0120.00625.92
8.1.270.0040.00424.02
8.1.260.0020.00526.35
8.1.250.0040.00428.09
8.1.240.0090.00022.19
8.1.230.0110.00019.04
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0090.00017.23
8.1.190.0040.00417.35
8.1.180.0000.00718.10
8.1.170.0030.00518.65
8.1.160.0040.00421.88
8.1.150.0040.00418.63
8.1.140.0000.00717.45
8.1.130.0000.00817.88
8.1.120.0000.00717.31
8.1.110.0040.00417.42
8.1.100.0000.00717.30
8.1.90.0000.00717.29
8.1.80.0030.00417.39
8.1.70.0030.00317.34
8.1.60.0030.00617.49
8.1.50.0000.00817.45
8.1.40.0000.00817.42
8.1.30.0070.00317.67
8.1.20.0030.00517.56
8.1.10.0060.00317.55
8.1.00.0000.01017.32
8.0.300.0000.00718.77
8.0.290.0000.00717.18
8.0.280.0030.00518.45
8.0.270.0090.00017.26
8.0.260.0040.00417.19
8.0.250.0070.00016.86
8.0.240.0040.00416.92
8.0.230.0050.00216.95
8.0.220.0000.00716.85
8.0.210.0030.00316.79
8.0.200.0000.00616.96
8.0.190.0040.00416.96
8.0.180.0060.00316.95
8.0.170.0000.00916.99
8.0.160.0070.00016.95
8.0.150.0080.00016.75
8.0.140.0030.00316.72
8.0.130.0000.00613.34
8.0.120.0000.00816.88
8.0.110.0070.00016.88
8.0.100.0040.00416.89
8.0.90.0040.00416.78
8.0.80.0100.00616.88
8.0.70.0000.00716.75
8.0.60.0040.00416.90
8.0.50.0000.00716.95
8.0.30.0080.01117.20
8.0.20.0140.00517.40
8.0.10.0030.00517.02
8.0.00.0120.00616.78
7.4.330.0050.00015.05
7.4.320.0000.00616.50
7.4.300.0000.00616.47
7.4.290.0060.00316.46
7.4.280.0070.00016.35
7.4.270.0030.00316.48
7.4.260.0000.00816.43
7.4.250.0040.00416.50
7.4.240.0020.00516.42
7.4.230.0000.00716.35
7.4.220.0090.01616.49
7.4.210.0070.01316.59
7.4.200.0080.00016.66
7.4.160.0040.01116.42
7.4.150.0110.00717.40
7.4.140.0100.00817.86
7.4.130.0070.01116.42
7.4.120.0030.01416.45
7.4.110.0110.01116.63
7.4.100.0100.01316.49
7.4.90.0070.01016.45
7.4.80.0080.00819.39
7.4.70.0100.00516.60
7.4.60.0030.01216.61
7.4.50.0000.00416.35
7.4.40.0070.01016.61
7.4.30.0060.01016.54
7.4.00.0070.00714.86
7.3.330.0040.00313.04
7.3.320.0050.00013.02
7.3.310.0070.00016.35
7.3.300.0050.00216.05
7.3.290.0000.01416.32
7.3.280.0120.00516.20
7.3.270.0090.00917.40
7.3.260.0140.01016.48
7.3.250.0130.00416.38
7.3.240.0120.00916.48
7.3.230.0030.01316.39
7.3.210.0080.00816.27
7.3.200.0110.00419.39
7.3.190.0090.00916.60
7.3.180.0100.01016.27
7.3.170.0130.00316.27
7.3.160.0070.00716.40
7.3.120.0030.01014.85
7.2.330.0060.01216.52
7.2.320.0060.01116.55
7.2.310.0120.00616.39
7.2.300.0130.01016.64
7.2.290.0080.00916.64
7.2.60.0070.00716.96
7.1.200.0140.00015.25
7.1.70.0000.00817.19
7.1.60.0060.01619.70
7.1.50.0130.01616.79
7.1.00.0000.07722.47
7.0.200.1140.00314.67
7.0.140.0000.07021.97
7.0.60.0070.07319.92
7.0.50.0130.07017.81
7.0.40.0070.04320.04
7.0.30.0330.05020.09
7.0.20.0200.06720.05
7.0.10.0100.04020.21
7.0.00.0070.04320.29
5.6.280.0000.07320.82
5.6.210.0270.06020.53
5.6.200.0170.06318.20
5.6.190.0100.04320.33
5.6.180.3800.04720.45
5.6.170.0170.08320.41
5.6.160.0200.07020.47
5.6.150.0100.04718.13
5.6.140.0070.03718.17
5.6.130.0000.07718.21
5.6.120.0000.06020.99
5.6.110.0000.04320.96
5.6.100.0130.06720.95
5.6.90.0100.08720.92
5.6.80.0070.06720.39
5.6.70.3970.04320.37
5.5.350.0400.06320.46
5.5.340.0000.04018.02
5.5.330.0000.04720.36
5.5.320.4170.03320.24
5.5.310.0400.06320.20
5.5.300.0030.04717.91
5.5.290.0070.04718.02
5.5.280.0100.07320.84
5.5.270.0000.09320.79
5.5.260.0100.05320.73
5.5.250.0000.08720.61
5.5.240.0200.08020.35
5.4.450.0270.04028.86
5.4.440.0370.04728.29
5.4.430.0770.04028.29
5.4.420.0100.03728.29
5.4.410.0500.04328.29
5.4.400.0500.03728.28
5.4.390.0230.04328.28
5.4.380.0230.04718.68
5.4.370.0170.05018.75
5.4.360.0230.04318.67
5.4.350.0170.07318.66
5.4.340.0200.04718.50
5.4.320.0060.03712.47
5.4.310.0060.03912.46
5.4.300.0070.04412.46
5.4.290.0120.05512.46
5.4.280.0090.05112.36
5.4.270.0050.05512.36
5.4.260.0090.05112.36
5.4.250.0050.05412.36
5.4.240.0050.05312.36
5.4.230.0070.05512.35
5.4.220.0120.04812.35
5.4.210.0080.05612.35
5.4.200.0110.05212.35
5.4.190.0110.04512.35
5.4.180.0050.04212.35
5.4.170.0070.05012.36
5.4.160.0050.04312.35
5.4.150.0060.04012.35
5.4.140.0100.04712.03
5.4.130.0080.03612.02
5.4.120.0120.03111.98
5.4.110.0070.03611.98
5.4.100.0060.04811.98
5.4.90.0090.04811.98
5.4.80.0100.05011.98
5.4.70.0090.04411.97
5.4.60.0150.03611.97
5.4.50.0070.04211.97
5.4.40.0100.04011.96
5.4.30.0120.04311.96
5.4.20.0110.04111.96
5.4.10.0110.05611.96
5.4.00.0120.06311.45
5.3.290.0080.03612.80
5.3.280.0080.05612.71
5.3.270.0060.05812.73
5.3.260.0100.04912.72
5.3.250.0090.04712.72
5.3.240.0100.04812.72
5.3.230.0090.04912.71
5.3.220.0140.04512.68
5.3.210.0090.04712.68
5.3.200.0090.04812.68
5.3.190.0160.04412.68
5.3.180.0120.04712.67
5.3.170.0130.04612.67
5.3.160.0120.04312.68
5.3.150.0140.03012.67
5.3.140.0080.03612.66
5.3.130.0070.03812.66
5.3.120.0060.04112.66
5.3.110.0090.03812.66
5.3.100.0110.03812.12
5.3.90.0060.03912.09
5.3.80.0110.03312.08
5.3.70.0100.04412.08
5.3.60.0060.04212.06
5.3.50.0060.03712.00
5.3.40.0100.03212.00
5.3.30.0080.04711.95
5.3.20.0070.04611.74
5.3.10.0070.04811.70
5.3.00.0070.05011.68
5.2.170.0090.0399.18
5.2.160.0060.0409.19
5.2.150.0080.0399.18
5.2.140.0100.0379.18
5.2.130.0110.0359.14
5.2.120.0060.0399.14
5.2.110.0070.0379.15
5.2.100.0060.0369.14
5.2.90.0050.0379.15
5.2.80.0050.0419.14
5.2.70.0050.0309.14
5.2.60.0050.0339.09
5.2.50.0110.0369.05
5.2.40.0080.0299.04
5.2.30.0040.0319.02
5.2.20.0050.0299.00
5.2.10.0080.0268.92
5.2.00.0090.0258.78
5.1.60.0010.0298.07
5.1.50.0050.0258.06
5.1.40.0080.0228.05
5.1.30.0030.0298.39
5.1.20.0040.0288.42
5.1.10.0060.0268.14
5.1.00.0080.0248.14
5.0.50.0050.0216.62
5.0.40.0020.0226.48
5.0.30.0030.0326.30
5.0.20.0050.0206.26
5.0.10.0060.0256.24
5.0.00.0040.0386.23
4.4.90.0020.0174.78
4.4.80.0050.0154.75
4.4.70.0010.0194.76
4.4.60.0040.0144.75
4.4.50.0030.0234.77
4.4.40.0010.0334.71
4.4.30.0030.0164.76
4.4.20.0030.0164.85
4.4.10.0050.0194.85
4.4.00.0040.0274.76
4.3.110.0040.0144.67
4.3.100.0030.0164.67
4.3.90.0050.0124.63
4.3.80.0010.0254.59
4.3.70.0000.0174.63
4.3.60.0030.0154.63
4.3.50.0030.0174.63
4.3.40.0040.0254.54
4.3.30.0010.0183.29
4.3.20.0000.0183.26
4.3.10.0010.0173.21
4.3.00.0030.01728.28

preferences:
47.05 ms | 401 KiB | 5 Q