3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrayList = "20891,20892,20896,20897,20898,20901,20902,20903,20904,20905"; $product_item = array('pid' => 20891); if(in_array($product_item['pid'], json_decode("[".$arrayList."]"))) { print "Found it!"; }

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.40.0040.01118.76
8.3.30.0070.00720.29
8.3.20.0080.00020.34
8.3.10.0080.00022.13
8.3.00.0090.00022.52
8.2.170.0110.00322.96
8.2.160.0090.00622.18
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0060.01026.16
8.2.120.0040.00419.89
8.2.110.0060.00322.14
8.2.100.0030.00917.72
8.2.90.0040.00419.23
8.2.80.0040.00419.39
8.2.70.0000.00817.50
8.2.60.0030.00517.92
8.2.50.0060.00318.07
8.2.40.0000.00718.34
8.2.30.0030.00618.18
8.2.20.0040.00417.78
8.2.10.0040.00417.55
8.2.00.0030.00717.71
8.1.270.0050.00224.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00021.89
8.1.230.0070.00419.07
8.1.220.0060.00317.74
8.1.210.0030.00518.77
8.1.200.0090.00017.48
8.1.190.0030.00617.51
8.1.180.0000.00819.01
8.1.170.0040.00418.57
8.1.160.0030.00321.98
8.1.150.0040.00418.68
8.1.140.0030.00517.48
8.1.130.0000.00717.88
8.1.120.0000.00817.50
8.1.110.0040.00417.40
8.1.100.0000.00717.42
8.1.90.0040.00417.32
8.1.80.0080.00017.50
8.1.70.0040.00417.42
8.1.60.0050.00317.52
8.1.50.0050.00217.49
8.1.40.0060.00317.54
8.1.30.0000.00817.59
8.1.20.0050.00317.60
8.1.10.0000.00717.60
8.1.00.0080.00017.57
8.0.300.0020.00518.77
8.0.290.0030.00317.18
8.0.280.0000.00818.43
8.0.270.0000.00717.21
8.0.260.0060.00016.81
8.0.250.0030.00316.98
8.0.240.0040.00416.95
8.0.230.0070.00016.98
8.0.220.0090.00016.91
8.0.210.0070.00016.90
8.0.200.0030.00316.95
8.0.190.0040.00416.93
8.0.180.0040.00416.88
8.0.170.0000.00816.89
8.0.160.0000.00716.82
8.0.150.0000.00716.76
8.0.140.0040.00416.83
8.0.130.0030.00313.36
8.0.120.0030.00516.84
8.0.110.0000.00816.80
8.0.100.0000.00816.95
8.0.90.0030.00516.78
8.0.80.0100.00616.87
8.0.70.0050.00216.94
8.0.60.0000.00816.94
8.0.50.0040.00416.81
8.0.30.0110.00717.04
8.0.20.0090.00917.40
8.0.10.0080.00016.98
8.0.00.0120.00616.78
7.4.330.0050.00015.09
7.4.320.0000.00616.53
7.4.300.0030.00316.52
7.4.290.0000.00716.53
7.4.280.0070.00016.53
7.4.270.0060.00316.57
7.4.260.0030.00313.21
7.4.250.0040.00416.51
7.4.240.0030.00516.45
7.4.230.0030.00316.55
7.4.220.0100.00716.55
7.4.210.0080.01016.55
7.4.200.0050.00316.23
7.4.190.0030.00316.38
7.4.160.0040.01116.39
7.4.150.0140.00317.40
7.4.140.0080.01017.86
7.4.130.0110.00816.40
7.4.120.0110.00616.34
7.4.110.0060.01016.54
7.4.100.0130.00916.43
7.4.90.0140.00316.48
7.4.80.0130.00319.39
7.4.70.0100.00616.31
7.4.60.0060.01216.46
7.4.50.0000.00516.44
7.4.40.0040.01122.77
7.4.30.0070.01116.59
7.4.00.0040.01114.64
7.3.330.0020.00213.23
7.3.320.0020.00213.25
7.3.310.0060.00016.28
7.3.300.0040.00416.27
7.3.290.0100.00316.20
7.3.280.0110.00816.29
7.3.270.0110.00617.40
7.3.260.0120.01216.37
7.3.250.0090.01016.39
7.3.240.0060.01116.43
7.3.230.0070.01116.50
7.3.210.0120.00916.32
7.3.200.0130.00319.39
7.3.190.0080.00816.32
7.3.180.0050.01116.25
7.3.170.0000.01516.29
7.3.160.0040.01516.48
7.3.120.0060.00614.92
7.2.330.0150.00616.70
7.2.320.0110.00716.36
7.2.310.0100.00716.41
7.2.300.0160.00816.63
7.2.290.0050.01116.64
7.2.60.0060.00916.80
7.2.00.0030.01019.48
7.1.200.0060.00915.47
7.1.100.0030.01018.20
7.1.70.0080.00617.21
7.1.60.0030.02019.43
7.1.50.0090.01316.87
7.1.00.0000.07022.51
7.0.200.0100.00316.87
7.0.140.0030.07321.92
7.0.80.0070.08020.00
7.0.70.0030.05019.88
7.0.60.0200.04319.98
7.0.50.0070.09020.26
7.0.40.0030.06720.10
7.0.30.0130.07320.03
7.0.20.0100.08320.14
7.0.10.0170.06320.03
7.0.00.0100.07020.17
5.6.280.0030.07321.04
5.6.230.0130.07720.67
5.6.220.0100.08020.48
5.6.210.0130.07320.59
5.6.200.0070.07321.07
5.6.190.0200.07321.17
5.6.180.0130.08321.07
5.6.170.0100.08321.02
5.6.160.0070.09021.03
5.6.150.0000.08721.00
5.6.140.0100.07721.08
5.6.130.0100.04321.01
5.6.120.0100.07021.05
5.6.110.0130.07720.94
5.6.100.0070.08321.10
5.6.90.0030.09021.00
5.6.80.0000.08020.46
5.6.70.0070.08020.48
5.6.60.0100.07720.39
5.6.50.0130.06320.43
5.6.40.0000.08720.49
5.6.30.0070.07320.42
5.6.20.0030.05020.41
5.6.10.0170.06720.38
5.6.00.0030.08320.27
5.5.370.0100.05020.49
5.5.360.0230.06720.54
5.5.350.0130.07720.47
5.5.340.0100.04720.86
5.5.330.0030.09020.79
5.5.320.0030.09020.75
5.5.310.0070.07720.88
5.5.300.0130.08020.89
5.5.290.0070.08320.87
5.5.280.0070.05020.90
5.5.270.0130.07320.81
5.5.260.0030.05720.81
5.5.250.0200.07320.45
5.5.240.0070.07020.24
5.5.230.0000.08320.25
5.5.220.0070.05020.26
5.5.210.0070.08020.26
5.5.200.0070.04020.27
5.5.190.0070.06020.22
5.5.180.0030.08720.27
5.5.160.0070.08020.26
5.5.150.0100.08020.25
5.5.140.0130.07720.07
5.5.130.0130.07320.25
5.5.120.0130.07720.11
5.5.110.0100.06020.20
5.5.100.0270.06320.05
5.5.90.0130.07020.15
5.5.80.0070.07720.10
5.5.70.0130.04320.14
5.5.60.0070.08020.05
5.5.50.0130.03320.05
5.5.40.0000.05320.02
5.5.30.0030.08020.14
5.5.20.0070.04719.99
5.5.10.0070.05020.04
5.5.00.0100.08020.10
5.4.450.0100.06319.11
5.4.440.0070.08319.42
5.4.430.0030.08319.36
5.4.420.0030.06319.29
5.4.410.0070.05019.24
5.4.400.0030.07319.06
5.4.390.0130.07018.94
5.4.380.0100.07319.23
5.4.370.0130.06719.12
5.4.360.0130.06718.95
5.4.350.0070.07719.03
5.4.340.0100.07319.11
5.4.320.0070.07318.84
5.4.310.0100.04018.98
5.4.300.0200.07019.11
5.4.290.0170.06718.80
5.4.280.0030.05319.02
5.4.270.0100.07318.78
5.4.260.0100.04718.97
5.4.250.0170.05319.11
5.4.240.0070.07718.96
5.4.230.0100.06019.23
5.4.220.0030.07319.09
5.4.210.0070.08019.09
5.4.200.0000.05319.04
5.4.190.0030.05319.09
5.4.180.0100.05719.21
5.4.170.0100.05018.89
5.4.160.0070.06719.02
5.4.150.0000.09319.00
5.4.140.0030.05316.31
5.4.130.0070.06716.37
5.4.120.0030.08016.33
5.4.110.0100.07016.23
5.4.100.0130.07316.25
5.4.90.0030.06716.38
5.4.80.0100.05716.36
5.4.70.0100.04316.29
5.4.60.0170.03716.35
5.4.50.0100.05716.41
5.4.40.0070.04716.33
5.4.30.0100.07016.23
5.4.20.0030.07016.28
5.4.10.0100.06016.23
5.4.00.0130.06315.79
5.3.290.0170.06014.49
5.3.280.0000.08314.61
5.3.270.0130.07014.47
5.3.260.0030.06314.59
5.3.250.0130.04714.61
5.3.240.0070.07314.60
5.3.230.0070.07314.58
5.3.220.0100.05014.50
5.3.210.0030.05014.39
5.3.200.0100.07314.39
5.3.190.0130.05014.57
5.3.180.0070.07314.57
5.3.170.0030.04714.42
5.3.160.0070.07714.43
5.3.150.0000.04714.56
5.3.140.0200.06014.50
5.3.130.0100.07014.48
5.3.120.0100.07014.37
5.3.110.0170.05714.51
5.3.100.0070.08013.98
5.3.90.0070.05313.83
5.3.80.0070.05014.00
5.3.70.0030.07313.88
5.3.60.0030.04713.96
5.3.50.0200.06013.95
5.3.40.0030.06713.91
5.3.30.0200.02713.86
5.3.20.0170.06313.68
5.3.10.0100.07013.42
5.3.00.0030.07713.50
5.2.170.0030.06311.67
5.2.160.0100.06011.67
5.2.150.0100.06311.67
5.2.140.0130.05311.67
5.2.130.0100.05711.67
5.2.120.0070.05311.67
5.2.110.0000.03711.67
5.2.100.0100.05711.67
5.2.90.0170.05011.67
5.2.80.0100.06011.67
5.2.70.0000.06311.67
5.2.60.0030.06011.67
5.2.50.0100.03711.67
5.2.40.0000.03311.67
5.2.30.0030.06011.67
5.2.20.0070.06011.67
5.2.10.0070.04711.67
5.2.00.0000.06011.67
5.1.60.0030.04011.67
5.1.50.0000.05311.67
5.1.40.0000.04711.67
5.1.30.0130.05011.67
5.1.20.0100.05011.67
5.1.10.0000.06011.67
5.1.00.0000.04711.67
5.0.50.0000.04711.67
5.0.40.0000.03011.67
5.0.30.0070.06011.67
5.0.20.0000.04711.67
5.0.10.0070.04011.67
5.0.00.0000.06711.67
4.4.90.0030.03311.67
4.4.80.0070.03311.67
4.4.70.0000.03711.67
4.4.60.0070.02711.67
4.4.50.0000.03011.67
4.4.40.0070.04711.67
4.4.30.0030.03311.67
4.4.20.0030.03711.67
4.4.10.0030.03711.67
4.4.00.0000.05711.67
4.3.110.0070.03311.67
4.3.100.0030.03311.67
4.3.90.0030.02711.67
4.3.80.0000.05311.67
4.3.70.0070.02711.67
4.3.60.0000.03711.67
4.3.50.0000.02711.67
4.3.40.0000.04711.67
4.3.30.0000.03711.67
4.3.20.0030.04011.67
4.3.10.0070.02311.67
4.3.00.0000.03311.67

preferences:
44.1 ms | 400 KiB | 5 Q