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_array($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.0000.01518.52
8.3.50.0110.00721.98
8.3.40.0070.00718.79
8.3.30.0110.00419.06
8.3.20.0040.00420.16
8.3.10.0080.00023.61
8.3.00.0000.00820.77
8.2.180.0180.00316.63
8.2.170.0120.00322.96
8.2.160.0070.00720.39
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.01426.16
8.2.120.0080.00020.95
8.2.110.0060.00321.89
8.2.100.0060.00617.84
8.2.90.0040.00419.20
8.2.80.0060.00317.97
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0080.00418.07
8.2.40.0040.00418.22
8.2.30.0040.00718.24
8.2.20.0050.00317.64
8.2.10.0050.00317.98
8.2.00.0040.00417.70
8.1.280.0060.01225.92
8.1.270.0080.00023.82
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0080.00023.88
8.1.230.0000.01119.14
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.01017.35
8.1.190.0060.00317.22
8.1.180.0060.00318.10
8.1.170.0030.00618.52
8.1.160.0040.00421.96
8.1.150.0000.00718.51
8.1.140.0040.00417.32
8.1.130.0030.00317.86
8.1.120.0000.00717.32
8.1.110.0040.00417.31
8.1.100.0040.00417.46
8.1.90.0020.00517.45
8.1.80.0030.00517.41
8.1.70.0000.00717.40
8.1.60.0060.00317.45
8.1.50.0030.00617.57
8.1.40.0000.00917.52
8.1.30.0030.00717.61
8.1.20.0050.00317.69
8.1.10.0030.00617.43
8.1.00.0040.00817.40
8.0.300.0000.00718.77
8.0.290.0080.00017.16
8.0.280.0000.00718.47
8.0.270.0050.00517.17
8.0.260.0060.00317.19
8.0.250.0000.00716.96
8.0.240.0030.00616.96
8.0.230.0030.00316.97
8.0.220.0080.00016.86
8.0.210.0000.00716.95
8.0.200.0030.00317.05
8.0.190.0000.00716.87
8.0.180.0040.00816.96
8.0.170.0000.00816.83
8.0.160.0050.00316.74
8.0.150.0030.00316.75
8.0.140.0040.00416.88
8.0.130.0060.00013.32
8.0.120.0000.00716.84
8.0.110.0040.00416.95
8.0.100.0040.00416.96
8.0.90.0070.00016.76
8.0.80.0070.01416.89
8.0.70.0030.00516.80
8.0.60.0040.00416.79
8.0.50.0000.00716.90
8.0.30.0110.00916.95
8.0.20.0100.00917.40
8.0.10.0000.00817.04
8.0.00.0030.01516.77
7.4.330.0020.00215.04
7.4.320.0030.00316.51
7.4.300.0000.00816.55
7.4.290.0030.00616.50
7.4.280.0070.00016.46
7.4.270.0040.00416.47
7.4.260.0050.00216.34
7.4.250.0040.00416.43
7.4.240.0030.00316.59
7.4.230.0000.00716.53
7.4.220.0090.01216.38
7.4.210.0040.01116.58
7.4.200.0070.00016.64
7.4.160.0130.00316.41
7.4.150.0030.01417.40
7.4.140.0110.00617.86
7.4.130.0110.01316.54
7.4.120.0070.00916.47
7.4.110.0080.00816.34
7.4.100.0100.01016.52
7.4.90.0100.01416.39
7.4.80.0120.00419.39
7.4.70.0110.01116.43
7.4.60.0070.01016.38
7.4.50.0030.00616.36
7.4.40.0060.01516.54
7.4.30.0120.00316.48
7.4.00.0030.01015.02
7.3.330.0050.00213.10
7.3.320.0000.00513.11
7.3.310.0040.00416.02
7.3.300.0040.00416.20
7.3.290.0040.01516.22
7.3.280.0110.00716.19
7.3.270.0060.01017.40
7.3.260.0130.01016.55
7.3.250.0080.01116.38
7.3.240.0060.01616.26
7.3.230.0060.01216.39
7.3.210.0110.00816.43
7.3.200.0130.00319.39
7.3.190.0100.00716.43
7.3.180.0060.00916.39
7.3.170.0120.00316.37
7.3.160.0070.01016.25
7.3.120.0040.01114.78
7.3.10.0030.01116.40
7.3.00.0090.00416.61
7.2.330.0060.01116.57
7.2.320.0100.01016.67
7.2.310.0030.01416.71
7.2.300.0070.01016.37
7.2.290.0070.01016.54
7.2.130.0080.00616.76
7.2.120.0040.01116.70
7.2.110.0070.01016.60
7.2.100.0030.00616.82
7.2.90.0030.01017.04
7.2.80.0070.00716.43
7.2.70.0000.00916.79
7.2.60.0100.00516.87
7.2.50.0030.01216.84
7.2.40.0080.01216.80
7.2.30.0000.01216.55
7.2.20.0030.01216.68
7.2.10.0030.01617.02
7.2.00.0050.01018.14
7.1.250.0000.01015.77
7.1.200.0030.00615.52
7.1.100.0040.01117.77
7.1.70.0060.00317.15
7.1.60.0160.00919.70
7.1.50.0130.01016.80
7.1.00.0000.07722.40
7.0.200.0480.00714.82
7.0.140.0070.07022.11
7.0.60.0030.06319.93
7.0.50.0100.06317.91
7.0.40.0130.06020.06
7.0.30.0330.06320.09
7.0.20.0170.04720.13
7.0.10.0070.04720.09
7.0.00.0100.05020.12
5.6.280.0000.07320.99
5.6.210.0100.08320.50
5.6.200.0070.06318.11
5.6.190.0000.06020.45
5.6.180.0100.09020.67
5.6.170.0370.07020.46
5.6.160.0070.06720.49
5.6.150.0070.08318.20
5.6.140.0100.07318.19
5.6.130.0130.07018.21
5.6.120.0130.07721.01
5.6.110.0100.07321.13
5.6.100.0100.08320.88
5.6.90.0170.07321.00
5.6.80.0070.06720.38
5.5.350.3930.04020.40
5.5.340.0070.03317.94
5.5.330.0030.04020.20
5.5.320.0330.07320.29
5.5.310.0270.07720.17
5.5.300.0070.05017.96
5.5.290.0000.08718.02
5.5.280.0030.04720.78
5.5.270.0230.07320.76
5.5.260.0130.08020.84
5.5.250.0130.07720.46
5.5.240.0200.07720.36
5.4.450.0100.04719.14
5.4.440.0170.04019.56
5.4.430.0170.03319.57
5.4.420.0300.05019.38
5.4.410.0270.04019.43
5.4.400.0270.04019.09
5.4.390.0200.03719.22
5.4.380.0200.03719.13
5.4.370.0330.04018.88
5.4.360.0170.04019.10
5.4.350.0230.03019.20
5.4.340.0400.03718.92
5.4.320.0370.04019.16
5.4.310.0170.03319.08
5.4.300.0130.03719.09
5.4.290.0200.03319.21
5.4.280.0170.03719.22
5.4.270.0200.03018.88
5.4.260.0170.03719.09
5.4.250.0170.03319.04
5.4.240.0300.04318.91
5.4.230.0370.03719.08
5.4.220.0300.03719.07
5.4.210.0300.03719.07
5.4.200.0370.03019.07
5.4.190.0370.03019.21
5.4.180.0400.03019.07
5.4.170.0400.06018.77
5.4.160.0270.05019.06
5.4.150.0400.05019.05
5.4.140.0330.03316.45
5.4.130.0300.03316.43
5.4.120.0500.04016.30
5.4.110.0400.03316.34
5.4.100.0270.03716.47
5.4.90.0330.03316.38
5.4.80.0330.03316.18
5.4.70.0300.03716.20
5.4.60.0370.03016.28
5.4.50.0370.06016.36
5.4.40.0370.03016.43
5.4.30.0330.03316.38
5.4.20.0300.04016.04
5.4.10.0370.04716.36
5.4.00.0500.05015.72
5.3.290.0170.04014.61
5.3.280.0330.03714.43
5.3.270.0470.04014.47
5.3.260.0370.06014.46
5.3.250.0300.03714.46
5.3.240.0270.04014.47
5.3.230.0300.03714.70
5.3.220.0330.03714.60
5.3.210.0370.04014.52
5.3.200.0370.03314.43
5.3.190.0230.04714.52
5.3.180.0270.04014.52
5.3.170.0370.03314.45
5.3.160.0370.05314.52
5.3.150.0330.03314.43
5.3.140.0600.06714.65
5.3.130.0230.04314.43
5.3.120.0270.04314.41
5.3.110.0470.05714.46
5.3.100.0300.05013.87
5.3.90.0430.05014.07
5.3.80.0370.03313.86
5.3.70.0300.04313.87
5.3.60.0300.04013.88
5.3.50.0230.04714.00
5.3.40.0300.03713.89
5.3.30.0370.05313.70
5.3.20.0270.04013.50
5.3.10.0270.03713.46
5.3.00.0330.04013.59
5.2.170.0200.03711.04
5.2.160.0300.03011.09
5.2.150.0300.02311.08
5.2.140.0270.02710.98
5.2.130.0230.03011.12
5.2.120.0300.02711.16
5.2.110.0200.03310.96
5.2.100.0170.03711.04
5.2.90.0300.06011.12
5.2.80.0230.03310.93
5.2.70.0300.03010.95
5.2.60.0230.03710.89
5.2.50.0300.02710.85
5.2.40.0200.03010.90
5.2.30.0300.04310.80
5.2.20.0230.03010.81
5.2.10.0200.02710.78
5.2.00.0170.03010.82
5.1.60.0170.02710.11
5.1.50.0270.01710.11
5.1.40.0300.04310.11
5.1.30.0270.03710.30
5.1.20.0270.03710.30
5.1.10.0370.04010.11
5.1.00.0230.04010.16
5.0.50.0130.01710.11
5.0.40.0130.01710.11
5.0.30.0100.03310.11
5.0.20.0100.03010.11
5.0.10.0100.02010.11
5.0.00.0100.03010.11
4.4.90.0100.01310.11
4.4.80.0130.01310.11
4.4.70.0130.01710.11
4.4.60.0100.01710.11
4.4.50.0130.01010.11
4.4.40.0100.02710.11
4.4.30.0100.01310.11
4.4.20.0130.01710.11
4.4.10.0100.02010.11
4.4.00.0070.02710.11
4.3.110.0100.01310.11
4.3.100.0070.01710.11
4.3.90.0070.01710.11
4.3.80.0100.03010.11
4.3.70.0100.01710.11
4.3.60.0130.03710.11
4.3.50.0100.01710.11
4.3.40.0070.02710.11
4.3.30.0070.01310.11
4.3.20.0070.03710.11
4.3.10.0070.02010.11
4.3.00.0070.01310.11

preferences:
48.99 ms | 401 KiB | 5 Q