3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "[]"; if (is_string($data)) { $res = json_decode($data, true); if ($res == NULL) { $res = $data; } } echo $res; echo empty($products);

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.43
8.3.50.0110.00317.93
8.3.40.0090.00618.57
8.3.30.0040.01118.46
8.3.20.0000.00819.24
8.3.10.0090.00021.81
8.3.00.0040.00420.69
8.2.180.0100.00718.29
8.2.170.0140.00022.96
8.2.160.0140.00020.70
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00417.91
8.2.120.0000.00726.35
8.2.110.0100.01321.13
8.2.100.0080.00419.48
8.2.90.0040.00417.75
8.2.80.0040.00417.97
8.2.70.0040.00417.92
8.2.60.0000.00918.22
8.2.50.0000.00818.10
8.2.40.0080.00019.30
8.2.30.0040.00419.24
8.2.20.0040.00418.02
8.2.10.0040.00418.17
8.2.00.0040.00417.80
8.1.280.0070.01425.92
8.1.270.0040.00420.62
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0050.00522.44
8.1.230.0040.00817.70
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0000.00818.44
8.1.160.0030.00518.89
8.1.150.0000.00718.77
8.1.140.0050.00322.07
8.1.130.0000.00720.08
8.1.120.0030.00317.34
8.1.110.0040.00417.33
8.1.100.0050.00317.43
8.1.90.0000.00717.33
8.1.80.0000.00717.45
8.1.70.0040.00417.43
8.1.60.0030.00617.56
8.1.50.0040.00417.55
8.1.40.0040.00417.48
8.1.30.0040.00817.59
8.1.20.0020.00517.55
8.1.10.0040.00417.51
8.1.00.0040.00417.40
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0070.00018.35
8.0.270.0000.00717.26
8.0.260.0070.00018.30
8.0.250.0000.00716.95
8.0.240.0030.00316.91
8.0.230.0000.00716.82
8.0.220.0030.00616.79
8.0.210.0030.00316.88
8.0.200.0000.00716.83
8.0.190.0030.00316.83
8.0.180.0030.00616.89
8.0.170.0040.00416.83
8.0.160.0000.00716.80
8.0.150.0030.00316.79
8.0.140.0000.00716.84
8.0.130.0000.00513.24
8.0.120.0000.00816.68
8.0.110.0030.00516.77
8.0.100.0050.00216.90
8.0.90.0040.00416.85
8.0.80.0060.00816.84
8.0.70.0000.00716.94
8.0.60.0050.00216.71
8.0.50.0070.00016.67
8.0.30.0090.00817.07
8.0.20.0120.00617.40
8.0.10.0000.00717.01
8.0.00.0090.01416.80
7.4.330.0000.00615.55
7.4.320.0030.00316.46
7.4.300.0060.00016.50
7.4.290.0070.00016.43
7.4.280.0080.00316.59
7.4.270.0100.00016.59
7.4.260.0060.00016.59
7.4.250.0030.00716.45
7.4.240.0040.00416.63
7.4.230.0070.00016.43
7.4.220.0050.00216.56
7.4.210.0110.00316.50
7.4.200.0030.00316.63
7.4.160.0070.00816.44
7.4.140.0090.00917.86
7.4.130.0120.00616.48
7.4.120.0110.00716.53
7.4.110.0130.00616.64
7.4.100.0070.01716.51
7.4.90.0170.00716.40
7.4.80.0070.01319.39
7.4.70.0110.00716.28
7.4.60.0160.00416.35
7.4.50.0080.00816.43
7.4.40.0080.00816.34
7.4.00.0070.01015.20
7.3.330.0050.00013.16
7.3.320.0030.00313.09
7.3.310.0090.00016.11
7.3.300.0000.00716.31
7.3.290.0030.00316.21
7.3.280.0080.00916.25
7.3.260.0110.00716.44
7.3.240.0120.00916.37
7.3.230.0100.00716.40
7.3.210.0130.00316.36
7.3.200.0120.00416.55
7.3.190.0060.01316.29
7.3.180.0070.01016.21
7.3.170.0140.00716.50
7.3.160.0100.01016.34
7.2.330.0070.01016.43
7.2.320.0090.01216.57
7.2.310.0060.01016.66
7.2.300.0110.00516.36
7.2.290.0130.00316.51
7.2.110.0550.01014.66
7.2.100.0570.00614.64
7.2.90.0810.00614.89
7.2.80.0560.01114.79
7.2.70.0610.00914.90
7.2.60.0520.00614.95
7.2.50.0550.00615.18
7.2.40.0480.00915.14
7.2.30.0510.00014.69
7.2.20.0490.01114.68
7.2.10.0720.00614.64
7.2.00.0570.00614.82
7.1.230.0690.00613.94
7.1.220.0560.00913.82
7.1.210.0820.00314.00
7.1.200.0720.00713.64
7.1.190.0590.00613.91
7.1.180.0660.01013.64
7.1.170.0440.01013.66
7.1.160.0100.01013.89
7.1.150.0460.00413.89
7.1.140.0540.01013.37
7.1.130.0750.00313.56
7.1.120.0570.00613.67
7.1.110.0890.00313.72
7.1.100.0820.00613.64
7.1.90.0630.00913.75
7.1.80.0650.00313.93
7.1.70.0450.01114.09
7.1.60.0760.00731.83
7.1.50.1880.01731.70
7.1.40.1130.01331.87
7.1.30.1120.00731.73
7.1.20.1460.01031.83
7.1.10.1040.00613.73
7.1.00.0760.00013.89
5.6.380.0040.01514.58

preferences:
40.98 ms | 401 KiB | 5 Q