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.0070.00718.27
8.3.50.0140.00318.08
8.3.40.0070.00718.71
8.3.30.0040.01218.64
8.3.20.0070.00019.35
8.3.10.0060.00321.82
8.3.00.0000.00720.58
8.2.180.0090.00618.41
8.2.170.0070.00722.96
8.2.160.0110.00320.76
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0050.00318.09
8.2.120.0050.00226.35
8.2.110.0070.00319.19
8.2.100.0040.00717.72
8.2.90.0040.00417.75
8.2.80.0050.00317.97
8.2.70.0040.00418.05
8.2.60.0000.00817.92
8.2.50.0080.00018.10
8.2.40.0000.00719.47
8.2.30.0070.00019.14
8.2.20.0050.00317.92
8.2.10.0040.00418.17
8.2.00.0030.00517.70
8.1.280.0140.00325.92
8.1.270.0050.00220.69
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00722.13
8.1.230.0030.00920.91
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0040.00817.23
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0080.00018.50
8.1.160.0000.00718.79
8.1.150.0000.00718.93
8.1.140.0070.00022.19
8.1.130.0030.00319.98
8.1.120.0040.00417.48
8.1.110.0050.00317.32
8.1.100.0070.00017.36
8.1.90.0040.00417.46
8.1.80.0040.00417.41
8.1.70.0000.00817.43
8.1.60.0030.00517.52
8.1.50.0050.00317.55
8.1.40.0040.00417.43
8.1.30.0040.00817.63
8.1.20.0030.00517.57
8.1.10.0040.00417.50
8.1.00.0060.00317.42
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0000.00818.43
8.0.270.0070.00017.18
8.0.260.0000.00618.41
8.0.250.0000.00616.91
8.0.240.0000.00716.90
8.0.230.0020.00516.84
8.0.220.0090.00016.74
8.0.210.0060.00016.92
8.0.200.0030.00316.91
8.0.190.0070.00016.97
8.0.180.0090.00016.91
8.0.170.0000.00816.89
8.0.160.0040.00416.97
8.0.150.0000.00716.81
8.0.140.0070.00016.82
8.0.130.0000.00613.31
8.0.120.0030.00616.73
8.0.110.0040.00416.92
8.0.100.0000.00716.75
8.0.90.0000.00716.91
8.0.80.0070.00916.88
8.0.70.0000.00716.92
8.0.60.0000.00716.94
8.0.50.0040.00416.92
8.0.30.0090.00917.02
8.0.20.0110.00717.40
8.0.10.0070.00016.86
8.0.00.0130.00816.65
7.4.330.0030.00315.55
7.4.320.0030.00316.51
7.4.300.0060.00016.59
7.4.290.0070.00016.34
7.4.280.0030.00616.57
7.4.270.0000.01016.48
7.4.260.0030.00316.51
7.4.250.0030.00516.54
7.4.240.0000.00716.60
7.4.230.0000.00716.28
7.4.220.0030.00516.29
7.4.210.0090.00716.58
7.4.200.0030.00316.39
7.4.160.0090.00916.40
7.4.140.0080.00917.86
7.4.130.0070.01116.59
7.4.120.0090.00816.47
7.4.110.0130.00616.45
7.4.100.0100.00716.36
7.4.90.0090.00916.46
7.4.80.0110.00819.39
7.4.70.0100.00716.37
7.4.60.0130.00316.35
7.4.50.0080.00516.35
7.4.40.0060.01116.40
7.4.00.0030.01514.99
7.3.330.0050.00013.16
7.3.320.0060.00013.05
7.3.310.0030.00616.10
7.3.300.0090.00016.29
7.3.290.0000.00716.25
7.3.280.0090.00616.20
7.3.260.0090.00916.54
7.3.240.0120.01016.37
7.3.230.0060.01016.46
7.3.210.0070.01016.30
7.3.200.0070.00716.45
7.3.190.0090.01216.36
7.3.180.0100.00616.31
7.3.170.0110.01116.30
7.3.160.0100.01016.56
7.3.120.0100.00314.52
7.3.110.0040.01514.89
7.3.100.0110.00614.89
7.3.90.0040.01214.58
7.3.80.0000.01514.97
7.3.70.0150.00314.66
7.3.60.0000.00914.54
7.3.50.0040.00714.93
7.3.40.0060.00914.61
7.3.30.0000.01414.69
7.3.20.0030.00616.48
7.3.10.0030.00916.63
7.3.00.0030.01016.61
7.2.330.0110.00716.44
7.2.320.0150.00816.33
7.2.310.0120.00616.54
7.2.300.0080.00816.59
7.2.290.0100.00616.45
7.2.250.0060.01315.12
7.2.240.0000.01615.10
7.2.230.0070.01015.09
7.2.220.0030.01015.13
7.2.210.0040.01214.66
7.2.200.0030.00715.19
7.2.190.0000.01615.07
7.2.180.0030.01214.99
7.2.170.0090.00614.64
7.2.110.0120.01214.30
7.2.100.0570.00014.08
7.2.90.0370.01214.24
7.2.80.0390.01114.32
7.2.70.1010.00614.91
7.2.60.0940.00714.87
7.2.50.1050.00914.71
7.2.40.1120.00314.92
7.2.30.0920.01014.61
7.2.20.0850.00314.40
7.2.10.0770.00414.50
7.2.00.0640.01015.08
7.1.330.0030.01015.63
7.1.320.0040.00415.78
7.1.310.0150.00015.59
7.1.300.0080.00515.64
7.1.290.0100.00315.84
7.1.280.0060.00915.78
7.1.270.0060.00615.83
7.1.260.0000.01015.97
7.1.230.0880.00013.85
7.1.220.0230.01113.80
7.1.210.0490.01313.98
7.1.200.0740.00913.52
7.1.190.1090.00313.70
7.1.180.1050.00413.23
7.1.170.0790.01013.29
7.1.160.0840.01013.19
7.1.150.0820.00713.68
7.1.140.0630.01313.52
7.1.130.0980.01013.59
7.1.120.0760.00713.84
7.1.110.0490.01213.83
7.1.100.1040.00713.82
7.1.90.0670.01113.71
7.1.80.0830.00613.78
7.1.70.0920.00713.74
7.1.60.0870.00632.07
7.1.50.0920.01031.81
7.1.40.0830.01031.77
7.1.30.0800.00731.71
7.1.20.0800.00331.87
7.1.10.0560.00714.05
7.1.00.0610.00313.77
5.6.380.0000.01314.16

preferences:
92.01 ms | 401 KiB | 5 Q