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['is_tall'])."<br><br>"; echo "is profile an array???<br>"; echo is_array($what['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.0040.01118.41
8.3.50.0070.01421.79
8.3.40.0100.00718.79
8.3.30.0000.01419.04
8.3.20.0080.00020.13
8.3.10.0000.00823.72
8.3.00.0000.00821.01
8.2.180.0110.00416.75
8.2.170.0070.00722.96
8.2.160.0060.00920.37
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0030.01320.70
8.2.110.0030.00621.96
8.2.100.0040.00817.90
8.2.90.0050.00319.30
8.2.80.0000.00817.97
8.2.70.0030.00617.75
8.2.60.0060.00617.93
8.2.50.0030.00618.07
8.2.40.0040.00419.71
8.2.30.0060.00318.19
8.2.20.0030.00617.76
8.2.10.0040.00417.92
8.2.00.0030.00617.80
8.1.280.0030.01425.92
8.1.270.0080.00022.08
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00322.42
8.1.230.0110.00019.18
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0040.00417.10
8.1.180.0050.00318.10
8.1.170.0030.00618.57
8.1.160.0040.00421.88
8.1.150.0000.00718.58
8.1.140.0040.00417.45
8.1.130.0000.00819.16
8.1.120.0030.00517.43
8.1.110.0080.00017.39
8.1.100.0030.00317.30
8.1.90.0040.00417.40
8.1.80.0040.00417.32
8.1.70.0040.00417.36
8.1.60.0000.00817.49
8.1.50.0030.00617.44
8.1.40.0000.00817.42
8.1.30.0030.00717.52
8.1.20.0050.00317.65
8.1.10.0030.00617.46
8.1.00.0110.00017.52
8.0.300.0040.00419.64
8.0.290.0050.00216.63
8.0.280.0030.00318.35
8.0.270.0000.00917.25
8.0.260.0000.00716.86
8.0.250.0040.00417.02
8.0.240.0030.00516.98
8.0.230.0000.00716.94
8.0.220.0050.00216.93
8.0.210.0070.00016.92
8.0.200.0030.00316.89
8.0.190.0040.00416.91
8.0.180.0050.00516.91
8.0.170.0080.00017.00
8.0.160.0040.00416.84
8.0.150.0060.00316.73
8.0.140.0000.00716.87
8.0.130.0000.00513.33
8.0.120.0000.00816.85
8.0.110.0040.00416.81
8.0.100.0000.00816.81
8.0.90.0080.00016.70
8.0.80.0060.01216.85
8.0.70.0040.00416.95
8.0.60.0080.00016.97
8.0.50.0040.00416.96
8.0.30.0130.01017.01
8.0.20.0130.00817.42
8.0.10.0000.00717.06
8.0.00.0090.00916.65
7.4.330.0000.00515.02
7.4.320.0000.00616.55
7.4.300.0030.00316.42
7.4.290.0060.00316.51
7.4.280.0000.00816.61
7.4.270.0070.00016.47
7.4.260.0000.00716.59
7.4.250.0060.00316.55
7.4.240.0020.00516.55
7.4.230.0000.00816.50
7.4.220.0070.01016.63
7.4.210.0050.00916.46
7.4.200.0000.00716.72
7.4.160.0060.01016.66
7.4.150.0140.00717.40
7.4.140.0090.01217.86
7.4.130.0140.00316.53
7.4.120.0100.00716.53
7.4.110.0080.00816.32
7.4.100.0120.00616.61
7.4.90.0160.00316.39
7.4.80.0150.00919.39
7.4.70.0080.01316.60
7.4.60.0100.00716.43
7.4.50.0000.00816.51
7.4.40.0130.01316.48
7.4.30.0060.00916.63
7.4.00.0100.00614.67
7.3.330.0040.00413.13
7.3.320.0000.00613.05
7.3.310.0000.00816.27
7.3.300.0030.00316.29
7.3.290.0070.00716.27
7.3.280.0120.00516.24
7.3.270.0120.01217.40
7.3.260.0080.01216.21
7.3.250.0110.00716.39
7.3.240.0180.00016.30
7.3.230.0140.00316.39
7.3.210.0140.00516.38
7.3.200.0090.00919.39
7.3.190.0110.00616.43
7.3.180.0130.00316.27
7.3.170.0070.01016.56
7.3.160.0140.00816.40
7.3.120.0030.00914.64
7.2.330.0160.00816.37
7.2.320.0030.01816.36
7.2.310.0090.00916.81
7.2.300.0120.00616.50
7.2.290.0100.00716.37
7.2.60.0000.01616.72
7.2.00.0000.01219.40
7.1.200.0000.01315.90
7.1.100.0090.00618.31
7.1.70.0080.00016.99
7.1.60.0030.02119.70
7.1.50.0110.01416.90
7.1.00.0070.07322.33
7.0.200.0320.00314.85
7.0.140.0100.06721.99
7.0.60.0130.07720.07
7.0.50.0130.07717.88
7.0.40.0000.05020.14
7.0.30.0570.07320.20
7.0.20.0170.05720.05
7.0.10.0100.04020.16
7.0.00.0070.07719.99
5.6.210.0030.08320.67
5.6.200.0130.07718.16
5.6.190.0030.08720.57
5.6.180.4070.05320.57
5.6.170.0200.08720.37
5.6.160.0030.05320.61
5.6.150.0100.07318.11
5.6.140.0200.06718.21
5.6.130.0100.08018.22
5.6.120.0100.04320.98
5.6.110.0070.06721.00
5.6.100.0070.08020.99
5.6.90.0070.04021.00
5.6.80.0070.07720.43
5.6.70.4100.03720.39
5.5.350.0170.08020.41
5.5.340.0030.09317.98
5.5.330.0030.04020.23
5.5.320.3570.03720.30
5.5.310.0300.07720.17
5.5.300.0100.03717.98
5.5.290.0030.06017.91
5.5.280.0070.07020.73
5.5.270.0030.09020.70
5.5.260.0070.08320.96
5.5.250.0300.06320.57
5.5.240.0200.08320.24
5.4.450.1530.03319.49
5.4.440.1830.05019.30
5.4.430.1770.04019.43
5.4.420.1670.04319.32
5.4.410.1200.04719.02
5.4.400.0030.07718.85
5.4.390.0000.05718.73
5.4.380.0970.04019.21
5.4.370.1670.04718.97
5.4.360.1700.05319.00
5.4.350.1730.04719.00
5.4.340.1730.04318.69
5.4.320.1600.03719.16
5.4.310.1630.03318.99
5.4.300.1730.04718.82
5.4.290.1500.04018.84
5.4.280.1700.03719.16
5.4.270.1570.03318.79
5.4.260.0700.03719.10
5.4.250.0070.03319.24
5.4.240.0100.04719.15
5.4.230.1430.03318.71
5.4.220.1570.03718.68
5.4.210.1870.04018.68
5.4.200.1770.04018.68
5.4.190.1570.03318.66
5.4.180.1500.04019.15
5.4.170.1570.03018.96
5.4.160.1530.03718.77
5.4.150.1570.03719.09
5.4.140.1800.04016.31
5.4.130.1530.03716.22
5.4.120.0030.05016.33
5.4.110.0030.04716.49
5.4.100.0130.03716.07
5.4.90.0130.06716.41
5.4.80.0170.03316.37
5.4.70.0100.04016.34
5.4.60.0270.02316.28
5.4.50.0230.03716.40
5.4.40.0100.04716.36
5.4.30.0170.03316.36
5.4.20.0170.04016.43
5.4.10.0130.05316.36
5.4.00.0270.03015.90
5.3.290.0170.04714.60
5.3.280.0170.03714.47
5.3.270.0170.05314.55
5.3.260.0170.05014.48
5.3.250.0200.03314.55
5.3.240.0230.04014.45
5.3.230.0230.03314.48
5.3.220.0100.04014.44
5.3.210.0100.05014.44
5.3.200.0230.03714.47
5.3.190.0230.07714.40
5.3.180.0100.05014.66
5.3.170.0170.05714.47
5.3.160.0130.05014.41
5.3.150.0200.07014.39
5.3.140.0230.07014.42
5.3.130.0200.04714.57
5.3.120.0170.07314.41
5.3.110.0230.06714.42
5.3.100.0200.07313.95
5.3.90.0130.07313.87
5.3.80.0200.03714.11
5.3.70.0170.07013.87
5.3.60.0170.07713.84
5.3.50.0230.06713.89
5.3.40.0270.06014.00
5.3.30.0230.05313.82
5.3.20.0200.03713.65
5.3.10.0230.06713.50
5.3.00.0200.07013.52
5.2.170.0200.05711.00
5.2.160.0200.04311.00
5.2.150.0200.05711.30
5.2.140.0130.04011.16
5.2.130.0200.02011.15
5.2.120.0130.05711.15
5.2.110.0200.05011.13
5.2.100.0130.03711.17
5.2.90.0300.05011.00
5.2.80.0200.06011.10
5.2.70.0170.05711.27
5.2.60.0230.03010.98
5.2.50.0200.03311.17
5.2.40.0170.02310.83
5.2.30.0130.03311.02
5.2.20.0170.03710.79
5.2.10.0170.02310.88
5.2.00.0070.03710.80
5.1.60.0200.04310.07
5.1.50.0100.02710.11
5.1.40.0100.05010.05
5.1.30.0130.04710.30
5.1.20.0200.05310.26
5.1.10.0130.03310.15
5.1.00.0200.01710.01
5.0.50.0100.0208.71
5.0.40.0070.0208.34
5.0.30.0100.0278.08
5.0.20.0030.0238.04
5.0.10.0070.0378.07
5.0.00.0070.0308.21
4.4.90.0070.0277.82
4.4.80.0030.0207.82
4.4.70.0070.0177.82
4.4.60.0130.0237.82
4.4.50.0070.0237.82
4.4.40.0130.0507.83
4.4.30.0130.0137.83
4.4.20.0070.0277.84
4.4.10.0070.0207.85
4.4.00.0100.0407.85
4.3.110.0100.0177.86
4.3.100.0070.0207.86
4.3.90.0070.0207.86
4.3.80.0030.0337.86
4.3.70.0070.0377.86
4.3.60.0100.0307.86
4.3.50.0070.0177.87
4.3.40.0100.0307.88
4.3.30.0030.0337.88
4.3.20.0030.0237.88
4.3.10.0030.0307.89
4.3.00.0070.0137.89

preferences:
55.04 ms | 401 KiB | 5 Q