3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ["subject" => "1"]; $json = json_encode($array); $decoded = json_decode($json); $val = 0; if (!isset($decoded->subjectt) || $decoded->subjectt === '') { $val = 5; } echo $val;

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.70.0090.00916.48
8.3.60.0070.00718.16
8.3.50.0150.00916.42
8.3.40.0070.00718.59
8.3.30.0140.00318.65
8.3.20.0080.00020.34
8.3.10.0090.00023.48
8.3.00.0040.00419.56
8.2.180.0100.00718.16
8.2.170.0090.00622.96
8.2.160.0120.00619.06
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00419.23
8.2.120.0050.00226.35
8.2.110.0110.00021.08
8.2.100.0040.00819.57
8.2.90.0040.00419.05
8.2.80.0100.00317.97
8.2.70.0030.00517.62
8.2.60.0030.00617.80
8.2.50.0030.00518.07
8.2.40.0070.00318.29
8.2.30.0040.00418.03
8.2.20.0030.00517.97
8.2.10.0000.00718.03
8.2.00.0050.00318.06
8.1.280.0090.00925.92
8.1.270.0080.00022.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00721.36
8.1.230.0030.00718.88
8.1.220.0000.00817.79
8.1.210.0060.00318.77
8.1.200.0030.00817.35
8.1.190.0050.00317.36
8.1.180.0080.00018.10
8.1.170.0060.00318.65
8.1.160.0000.00718.80
8.1.150.0060.00320.58
8.1.140.0030.00519.57
8.1.130.0030.00318.89
8.1.120.0000.00717.47
8.1.110.0030.00517.33
8.1.100.0030.00517.44
8.1.90.0040.00417.49
8.1.80.0000.00717.50
8.1.70.0000.00717.47
8.1.60.0000.00717.47
8.1.50.0030.00617.55
8.1.40.0000.00817.39
8.1.30.0000.00717.48
8.1.20.0040.00417.58
8.1.10.0040.00417.47
8.1.00.0000.00817.48
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0000.00718.35
8.0.270.0050.00217.24
8.0.260.0000.00816.82
8.0.250.0030.00316.92
8.0.240.0040.00416.94
8.0.230.0030.00316.82
8.0.220.0030.00316.78
8.0.210.0040.00416.88
8.0.200.0030.00316.97
8.0.190.0030.00717.01
8.0.180.0040.00416.92
8.0.170.0040.00416.95
8.0.160.0030.00516.87
8.0.150.0030.00616.85
8.0.140.0080.00016.77
8.0.130.0000.00613.41
8.0.120.0030.00516.81
8.0.110.0000.00716.95
8.0.100.0040.00416.78
8.0.90.0000.00716.91
8.0.80.0060.01016.86
8.0.70.0040.00416.88
8.0.60.0040.00316.72
8.0.50.0050.00216.98
8.0.30.0090.00917.06
8.0.20.0150.00517.40
8.0.10.0040.00416.86
8.0.00.0130.01016.66
7.4.330.0000.00715.55
7.4.320.0030.00316.43
7.4.300.0080.00016.59
7.4.290.0000.00716.49
7.4.280.0000.00716.35
7.4.270.0000.00816.52
7.4.260.0000.00716.48
7.4.250.0050.00316.38
7.4.240.0030.00516.41
7.4.230.0030.00316.30
7.4.220.0090.00916.54
7.4.210.0070.01416.57
7.4.200.0000.00716.45
7.4.160.0100.00616.49
7.4.150.0110.00617.40
7.4.140.0100.00817.86
7.4.130.0120.00916.49
7.4.120.0130.00616.45
7.4.110.0030.01516.44
7.4.100.0120.00916.40
7.4.90.0070.01016.32
7.4.80.0220.00019.39
7.4.70.0130.00316.39
7.4.60.0000.01516.41
7.4.50.0080.00416.28
7.4.40.0140.00416.46
7.4.30.0110.00516.52
7.4.00.0000.00814.77
7.3.330.0000.00513.11
7.3.320.0050.00013.07
7.3.310.0040.00416.06
7.3.300.0030.00316.19
7.3.290.0110.00516.19
7.3.280.0070.01016.21
7.3.270.0060.01117.40
7.3.260.0130.00416.35
7.3.250.0130.00716.28
7.3.240.0100.00716.25
7.3.230.0120.00816.24
7.3.210.0120.00416.34
7.3.200.0090.00616.44
7.3.190.0090.00616.03
7.3.180.0090.00616.53
7.3.170.0030.01316.25
7.3.160.0060.00916.23
7.2.330.0060.01016.34
7.2.320.0070.01116.65
7.2.310.0100.00716.42
7.2.300.0060.01916.33
7.2.290.0120.00916.38
7.2.60.0030.01016.83
7.2.00.0000.01719.38
7.1.200.0110.00415.52
7.1.100.0030.01318.09
7.1.70.0080.00616.87
7.1.60.0200.00734.99
7.1.50.0110.01734.91
7.1.40.0270.00334.50
7.1.30.0200.00934.32
7.1.20.0210.00734.78
7.1.10.0150.00016.52
7.1.00.0000.01516.84
7.0.200.0090.00916.76
7.0.190.0030.01416.37
7.0.180.0030.01016.01
7.0.170.0110.00716.40
7.0.160.0000.01316.28
7.0.150.0100.00316.45
7.0.140.0000.01516.21
7.0.130.0070.00716.54
7.0.120.0110.00716.41
7.0.110.0000.01216.39
7.0.100.0030.01016.23
7.0.90.0060.00616.36
7.0.80.0050.00816.30
7.0.70.0040.01216.22
7.0.60.0060.00616.09
7.0.50.0090.00616.41
7.0.40.0060.00616.29
7.0.30.0030.00916.69
7.0.20.0060.00616.35
7.0.10.0000.01416.34
7.0.00.0030.01016.65

preferences:
48.49 ms | 401 KiB | 5 Q