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???\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";

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.0140.00416.63
8.3.50.0050.01121.94
8.3.40.0140.00018.71
8.3.30.0070.00719.08
8.3.20.0040.00420.21
8.3.10.0000.00923.65
8.3.00.0040.00421.04
8.2.180.0090.00616.75
8.2.170.0070.00722.96
8.2.160.0100.00322.26
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00321.02
8.2.110.0070.00319.33
8.2.100.0070.00317.71
8.2.90.0040.00419.10
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0090.00017.93
8.2.50.0030.00518.10
8.2.40.0070.00020.60
8.2.30.0000.00918.15
8.2.20.0040.00417.68
8.2.10.0040.00418.25
8.2.00.0040.00417.69
8.1.280.0070.00725.92
8.1.270.0000.00724.66
8.1.260.0000.01526.35
8.1.250.0070.00028.09
8.1.240.0060.00319.21
8.1.230.0080.00420.98
8.1.220.0070.00017.78
8.1.210.0030.00618.77
8.1.200.0070.00317.36
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0070.00018.66
8.1.160.0000.00822.02
8.1.150.0000.00718.66
8.1.140.0000.00817.46
8.1.130.0030.00317.75
8.1.120.0030.00317.49
8.1.110.0060.00317.48
8.1.100.0020.00517.48
8.1.90.0050.00317.37
8.1.80.0040.00417.47
8.1.70.0030.00317.32
8.1.60.0000.00817.48
8.1.50.0040.00417.52
8.1.40.0050.00317.57
8.1.30.0070.00317.62
8.1.20.0030.00617.68
8.1.10.0000.00717.57
8.1.00.0030.00717.50
8.0.300.0000.00720.02
8.0.290.0070.00016.75
8.0.280.0030.00318.45
8.0.270.0030.00517.22
8.0.260.0000.00817.27
8.0.250.0050.00216.99
8.0.240.0050.00316.88
8.0.230.0070.00016.83
8.0.220.0070.00016.90
8.0.210.0030.00316.94
8.0.200.0030.00316.95
8.0.190.0000.00716.86
8.0.180.0070.00316.89
8.0.170.0000.00716.82
8.0.160.0040.00416.88
8.0.150.0000.00716.86
8.0.140.0040.00416.89
8.0.130.0030.00313.30
8.0.120.0000.00816.92
8.0.110.0050.00216.80
8.0.100.0000.00816.94
8.0.90.0070.00016.96
8.0.80.0190.00316.88
8.0.70.0040.00416.86
8.0.60.0020.00516.66
8.0.50.0080.00016.79
8.0.30.0080.01117.10
8.0.20.0100.00817.40
8.0.10.0000.00716.90
8.0.00.0120.00416.76
7.4.330.0000.00615.17
7.4.320.0060.00016.45
7.4.300.0070.00016.58
7.4.290.0000.01116.66
7.4.280.0030.00516.52
7.4.270.0040.00416.50
7.4.260.0060.00316.62
7.4.250.0040.00416.48
7.4.240.0020.00516.61
7.4.230.0000.00716.65
7.4.220.0030.00316.49
7.4.210.0120.00916.54
7.4.200.0000.00716.47
7.4.160.0040.01316.53
7.4.150.0070.01117.40
7.4.140.0090.00917.86
7.4.130.0090.00716.64
7.4.120.0080.00916.55
7.4.110.0100.00716.54
7.4.100.0210.00416.69
7.4.90.0030.01316.48
7.4.80.0030.01319.39
7.4.70.0100.00616.57
7.4.60.0180.00416.34
7.4.50.0000.00416.40
7.4.40.0070.01016.57
7.4.30.0100.01016.42
7.4.00.0050.01114.87
7.3.330.0000.00712.96
7.3.320.0000.00513.10
7.3.310.0030.00316.06
7.3.300.0060.00016.11
7.3.290.0080.00716.25
7.3.280.0100.00816.19
7.3.270.0180.00617.40
7.3.260.0080.01516.23
7.3.250.0120.00516.30
7.3.240.0030.01216.31
7.3.230.0080.00816.39
7.3.210.0070.01716.23
7.3.200.0060.00919.39
7.3.190.0070.01316.43
7.3.180.0160.00016.06
7.3.170.0070.01416.27
7.3.160.0070.01016.37
7.3.120.0080.00915.01
7.3.110.0070.00414.80
7.3.100.0070.00714.97
7.3.90.0070.00714.88
7.3.80.0070.00714.54
7.3.70.0120.00314.75
7.3.60.0070.00714.67
7.3.50.0040.01514.87
7.3.40.0070.00714.90
7.3.30.0090.00614.75
7.3.20.0070.00716.31
7.3.10.0110.00416.63
7.3.00.0060.00616.75
7.2.330.0110.00616.52
7.2.320.0100.01016.25
7.2.310.0080.01216.48
7.2.300.0060.01216.68
7.2.290.0080.00816.75
7.2.250.0030.01315.21
7.2.240.0070.01315.31
7.2.230.0070.01115.16
7.2.220.0090.00315.00
7.2.210.0080.00615.01
7.2.200.0030.00615.08
7.2.190.0150.00315.10
7.2.180.0120.00615.03
7.2.170.0030.01214.99
7.2.60.0040.01216.90
7.2.00.0030.00919.14
7.1.330.0090.00315.88
7.1.320.0000.01215.77
7.1.310.0070.00715.91
7.1.300.0030.01415.82
7.1.290.0110.00715.73
7.1.280.0070.00715.45
7.1.270.0070.00715.79
7.1.260.0040.01115.75
7.1.200.0120.00315.80
7.1.100.0150.01218.25
7.1.70.0000.01017.13
7.1.60.0040.02119.70
7.1.50.0150.00716.78
7.1.00.0030.07722.40
7.0.200.0360.00014.83
7.0.140.0030.07022.16
7.0.110.0200.07020.09
7.0.100.0130.08020.02
7.0.90.0030.07719.99
7.0.80.0130.06319.95
7.0.70.0100.08019.84
7.0.60.0030.08020.01
7.0.50.0130.07019.90
7.0.40.0100.07019.82
7.0.30.0170.07019.65
7.0.20.0200.06719.64
7.0.10.0030.08019.64
7.0.00.0100.08019.77
5.6.280.0070.07021.02
5.6.260.0030.05020.67
5.6.250.0170.07020.68
5.6.240.0170.07320.66
5.6.230.0030.08320.85
5.6.220.0030.07320.53
5.6.210.0070.04020.39
5.6.200.0100.08320.70
5.6.190.0100.07020.55
5.6.180.0070.08020.66
5.6.170.0170.07320.59
5.6.160.0070.07320.63
5.6.150.0100.08020.51
5.6.140.0070.05320.61
5.6.130.0130.08020.69
5.6.120.0100.07320.55
5.6.110.0030.08720.64
5.6.100.0030.08320.49
5.6.90.0130.07020.68
5.6.80.0100.07319.99
5.6.70.0030.08019.98
5.6.60.0100.08019.98
5.6.50.0130.07719.99
5.6.40.0070.07720.00
5.6.30.0070.08019.91
5.6.20.0130.06319.98
5.6.10.0100.04019.82
5.6.00.0100.06720.20
5.5.380.0100.08720.26
5.5.370.0030.08720.56
5.5.360.0030.09020.45
5.5.350.0170.04020.47
5.5.340.0170.07020.89
5.5.330.0070.08020.99
5.5.320.0130.05720.90
5.5.310.0130.05720.86
5.5.300.0030.08020.91
5.5.290.0030.05020.89
5.5.280.0030.08020.69
5.5.270.0030.04321.02
5.5.260.0100.04720.75
5.5.250.0100.07720.79
5.5.240.0130.07020.27
5.5.230.0030.08720.15
5.5.220.0100.06720.32
5.5.210.0030.08020.21
5.5.200.0170.06320.24
5.5.190.0130.07020.25
5.5.180.0130.07720.31
5.5.160.0030.05320.31
5.5.150.0100.05720.15
5.5.140.0030.08320.28
5.5.130.0070.07720.12
5.5.120.0030.08020.35
5.5.110.0070.08020.14
5.5.100.0030.07720.11
5.5.90.0130.07319.98
5.5.80.0200.05320.13
5.5.70.0030.07320.23
5.5.60.0030.07720.13
5.5.50.0130.07720.25
5.5.40.0170.06020.09
5.5.30.0070.07720.03
5.5.20.0070.07320.18
5.5.10.0000.05020.02
5.5.00.0000.05720.14
5.4.450.0100.07319.44
5.4.440.0000.06319.27
5.4.430.0000.09019.48
5.4.420.0100.07719.27
5.4.410.0070.06719.20
5.4.400.0030.07318.99
5.4.390.0030.05319.16
5.4.380.0100.07019.10
5.4.370.0030.06719.02
5.4.360.0130.07318.93
5.4.350.0030.07319.03
5.4.340.0130.07019.01
5.4.320.0000.05719.12
5.4.310.0130.07018.98
5.4.300.0200.06319.11
5.4.290.0100.06719.00
5.4.280.0030.08019.02
5.4.270.0200.06719.07
5.4.260.0100.07319.24
5.4.250.0030.04719.17
5.4.240.0130.07318.95
5.4.230.0070.06019.28
5.4.220.0030.07719.11
5.4.210.0200.06319.17
5.4.200.0200.04719.11
5.4.190.0100.08018.93
5.4.180.0130.07019.01
5.4.170.0070.05019.02
5.4.160.0000.04719.08
5.4.150.0170.03319.14
5.4.140.0000.04016.17
5.4.130.0070.04716.55
5.4.120.0070.03316.33
5.4.110.0030.04016.18
5.4.100.0000.04016.18
5.4.90.0030.03316.38
5.4.80.0030.04316.17
5.4.70.0030.03716.21
5.4.60.0030.06016.26
5.4.50.0030.03316.36
5.4.40.0000.05316.26
5.4.30.0030.03016.50
5.4.20.0030.03716.46
5.4.10.0000.04316.37
5.4.00.0030.03715.58
5.3.290.0100.07314.50
5.3.280.0070.08014.46
5.3.270.0070.07014.64
5.3.260.0030.04714.70
5.3.250.0000.04314.49
5.3.240.0030.04014.63
5.3.230.0070.03314.70
5.3.220.0030.03714.50
5.3.210.0070.03714.56
5.3.200.0070.03714.45
5.3.190.0000.04314.50
5.3.180.0000.04314.51
5.3.170.0070.03314.43
5.3.160.0100.03314.45
5.3.150.0070.07014.51
5.3.140.0100.03714.43
5.3.130.0030.03714.45
5.3.120.0000.04714.61
5.3.110.0030.05314.58
5.3.100.0130.03313.90
5.3.90.0070.04014.04
5.3.80.0030.03313.96
5.3.70.0030.05713.91
5.3.60.0070.03314.10
5.3.50.0030.03713.78
5.3.40.0070.05713.96
5.3.30.0070.03013.86
5.3.20.0000.04013.60
5.3.10.0000.06313.48
5.3.00.0030.06713.44
5.2.170.0000.03012.21
5.2.160.0030.02712.21
5.2.150.0070.02712.21
5.2.140.0030.03012.21
5.2.130.0030.04012.21
5.2.120.0000.05712.21
5.2.110.0030.03012.21
5.2.100.0000.03012.21
5.2.90.0000.03011.82
5.2.80.0000.03011.82
5.2.70.0070.02711.82
5.2.60.0000.03011.82
5.2.50.0000.03311.82
5.2.40.0000.03011.82
5.2.30.0070.02711.82
5.2.20.0070.05311.82
5.2.10.0030.02711.82
5.2.00.0000.03011.82
5.1.60.0030.02311.82
5.1.50.0000.04011.82
5.1.40.0030.03711.82
5.1.30.0070.03711.82
5.1.20.0070.02011.82
5.1.10.0030.02311.82
5.1.00.0030.02011.82
5.0.50.0000.02011.82
5.0.40.0030.01711.82
5.0.30.0030.03011.82
5.0.20.0030.01711.82
5.0.10.0070.01311.82
5.0.00.0000.03011.82
4.4.90.0030.01311.82
4.4.80.0000.02311.82
4.4.70.0000.02011.82
4.4.60.0030.01011.82
4.4.50.0030.01311.82
4.4.40.0030.02011.82
4.4.30.0000.01711.82
4.4.20.0070.01011.82
4.4.10.0030.01711.82
4.4.00.0070.02011.82
4.3.110.0000.01711.82
4.3.100.0000.01311.82
4.3.90.0030.01311.82
4.3.80.0030.03011.82
4.3.70.0030.01011.82
4.3.60.0000.01311.82
4.3.50.0000.01711.82
4.3.40.0030.02011.82
4.3.30.0000.01311.82
4.3.20.0000.01311.82
4.3.10.0030.01311.82
4.3.00.0000.01311.82

preferences:
50.5 ms | 401 KiB | 5 Q