3v4l.org

run code in 300+ PHP versions simultaneously
<?php $eligible_categories = array("mens"); $list_categories = array("mens:apparel:shirts", "mens:footwear"); foreach ($eligible_categories as $category) { if(in_array($category, $list_categories)){ echo "eligible"; } }

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.0100.01016.48
8.3.50.0090.01222.04
8.3.40.0090.00618.52
8.3.30.0070.00718.71
8.3.20.0050.00220.22
8.3.10.0070.00021.63
8.3.00.0050.00319.25
8.2.180.0100.01018.41
8.2.170.0070.00722.96
8.2.160.0070.00720.41
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0120.00626.16
8.2.120.0040.00422.25
8.2.110.0070.00322.13
8.2.100.0000.01119.57
8.2.90.0060.00317.63
8.2.80.0060.00517.97
8.2.70.0000.00817.93
8.2.60.0000.00817.93
8.2.50.0000.00718.10
8.2.40.0080.00022.18
8.2.30.0040.00418.11
8.2.20.0000.00717.66
8.2.10.0040.00417.96
8.2.00.0070.00317.75
8.1.280.0040.01125.92
8.1.270.0070.00323.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00823.83
8.1.230.0120.00419.11
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0100.00017.35
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0080.00018.59
8.1.160.0000.00822.01
8.1.150.0050.00518.63
8.1.140.0040.00417.32
8.1.130.0040.00417.80
8.1.120.0000.00717.39
8.1.110.0030.00617.50
8.1.100.0030.00317.51
8.1.90.0030.00317.42
8.1.80.0000.00717.53
8.1.70.0050.00217.34
8.1.60.0050.00317.57
8.1.50.0040.00417.57
8.1.40.0030.00517.50
8.1.30.0040.00417.56
8.1.20.0030.00517.63
8.1.10.0030.00517.45
8.1.00.0040.00417.40
8.0.300.0000.00719.69
8.0.290.0000.00716.75
8.0.280.0030.00518.39
8.0.270.0000.00817.12
8.0.260.0000.00617.32
8.0.250.0000.00716.94
8.0.240.0040.00417.00
8.0.230.0030.00316.93
8.0.220.0070.00016.78
8.0.210.0040.00416.91
8.0.200.0030.00316.97
8.0.190.0050.00316.95
8.0.180.0000.00816.92
8.0.170.0000.00716.88
8.0.160.0030.00316.93
8.0.150.0030.00316.78
8.0.140.0050.00316.73
8.0.130.0060.00013.35
8.0.120.0080.00016.87
8.0.110.0000.00816.82
8.0.100.0040.00416.90
8.0.90.0000.00716.75
8.0.80.0090.00616.84
8.0.70.0030.00516.95
8.0.60.0000.00816.75
8.0.50.0030.00316.88
8.0.30.0040.01516.98
8.0.20.0100.00817.40
8.0.10.0080.00016.97
8.0.00.0110.00716.65
7.4.330.0080.00015.00
7.4.320.0060.00016.51
7.4.300.0030.00316.56
7.4.290.0080.00016.52
7.4.280.0050.00216.43
7.4.270.0000.00716.57
7.4.260.0030.00316.47
7.4.250.0000.00716.51
7.4.240.0040.00316.47
7.4.230.0050.00216.55
7.4.220.0110.00716.63
7.4.210.0090.00816.52
7.4.200.0000.00716.66
7.4.190.0070.00016.63
7.4.160.0100.00616.58
7.4.150.0160.00817.40
7.4.140.0080.01017.86
7.4.130.0130.00616.48
7.4.120.0070.01016.45
7.4.110.0110.00716.46
7.4.100.0170.00016.64
7.4.90.0090.00616.53
7.4.80.0070.01419.39
7.4.70.0050.01116.57
7.4.60.0050.01316.56
7.4.50.0000.00916.27
7.4.40.0070.00522.77
7.4.30.0170.00016.37
7.4.00.0060.00914.98
7.3.330.0020.00413.10
7.3.320.0030.00313.09
7.3.310.0000.00716.38
7.3.300.0030.00316.10
7.3.290.0040.01416.25
7.3.280.0070.01116.26
7.3.270.0060.01017.40
7.3.260.0120.01216.29
7.3.250.0170.00016.55
7.3.240.0130.00316.46
7.3.230.0070.01016.39
7.3.210.0100.00716.61
7.3.200.0130.00316.24
7.3.190.0160.00716.64
7.3.180.0040.01116.45
7.3.170.0110.00516.63
7.3.160.0090.00616.31
7.3.120.0070.00714.70
7.2.330.0100.00716.71
7.2.320.0100.00716.50
7.2.310.0030.01316.66
7.2.300.0310.02116.62
7.2.290.0120.00616.40
7.2.60.0030.01016.84
7.2.00.0060.00619.48
7.1.200.0060.00615.91
7.1.100.0060.00617.87
7.1.70.0040.00417.15
7.1.60.0100.01319.46
7.1.50.0100.00016.61
7.1.00.0100.06722.46
7.0.200.0040.00416.52
7.0.140.0130.06022.15
7.0.60.0070.07719.93
7.0.50.0030.06017.89
7.0.40.0100.06320.04
7.0.30.0300.07720.17
7.0.20.0170.03720.16
7.0.10.0070.09020.20
7.0.00.0030.04320.12
5.6.280.0070.07021.03
5.6.210.0070.07720.50
5.6.200.0070.08318.23
5.6.190.0030.07020.61
5.6.180.0370.04020.61
5.6.170.0230.04720.47
5.6.160.0030.09020.40
5.6.150.0100.03718.27
5.6.140.0030.08718.17
5.6.130.0070.08718.17
5.6.120.0030.07320.99
5.6.110.0070.08321.11
5.6.100.0170.07720.95
5.6.90.0130.06720.93
5.6.80.0170.03320.39
5.5.350.0230.03720.40
5.5.340.0000.04317.94
5.5.330.0100.06020.23
5.5.320.0070.03720.17
5.5.310.0330.08020.50
5.5.300.0070.07718.02
5.5.290.0130.08018.01
5.5.280.0130.06720.76
5.5.270.0070.08320.78
5.5.260.0200.05320.75
5.5.250.0070.05320.55
5.5.240.0070.07320.13
5.4.450.0470.05319.52
5.4.440.0130.07719.49
5.4.430.0100.05719.66
5.4.420.0030.06319.32
5.4.410.0170.05019.37
5.4.400.0070.05719.02
5.4.390.0070.05719.08
5.4.380.0370.05318.68
5.4.370.0330.08318.74
5.4.360.0270.05318.71
5.4.350.0230.05718.52
5.4.340.0300.05718.59
5.4.320.0050.03912.46
5.4.310.0050.04012.45
5.4.300.0070.03512.46
5.4.290.0120.04812.44
5.4.280.0040.03812.33
5.4.270.0060.03812.34
5.4.260.0090.04812.33
5.4.250.0060.04012.34
5.4.240.0060.03612.34
5.4.230.0120.03312.33
5.4.220.0070.03712.32
5.4.210.0060.03712.33
5.4.200.0100.04412.32
5.4.190.0120.04612.32
5.4.180.0080.04912.32
5.4.170.0080.04512.33
5.4.160.0130.04812.33
5.4.150.0090.04912.33
5.4.140.0070.06412.01
5.4.130.0070.04012.00
5.4.120.0070.04211.96
5.4.110.0100.05311.95
5.4.100.0120.04111.95
5.4.90.0080.05311.95
5.4.80.0090.04711.95
5.4.70.0060.03611.95
5.4.60.0060.03611.95
5.4.50.0060.03711.95
5.4.40.0090.03611.93
5.4.30.0050.03611.93
5.4.20.0090.03211.93
5.4.10.0060.03411.93
5.4.00.0070.03511.42
5.3.290.0060.04012.80
5.3.280.0050.04212.71
5.3.270.0100.04812.73
5.3.260.0100.04712.72
5.3.250.0050.03912.72
5.3.240.0020.04312.72
5.3.230.0090.03912.71
5.3.220.0080.05112.68
5.3.210.0070.05612.68
5.3.200.0060.05612.68
5.3.190.0040.05612.67
5.3.180.0070.05612.67
5.3.170.0090.05212.66
5.3.160.0080.05312.67
5.3.150.0050.05712.67
5.3.140.0060.05512.66
5.3.130.0060.05712.66
5.3.120.0120.05112.66
5.3.110.0090.05212.66
5.3.100.0110.04612.12
5.3.90.0100.04812.09
5.3.80.0160.04212.08
5.3.70.0100.05112.07
5.3.60.0040.04912.07
5.3.50.0050.05012.00
5.3.40.0110.04512.00
5.3.30.0090.05011.95
5.3.20.0120.04611.72
5.3.10.0100.04711.69
5.3.00.0150.04411.68
5.2.170.0100.0769.18
5.2.160.0080.0409.18
5.2.150.0090.0399.18
5.2.140.0050.0469.17
5.2.130.0160.0349.13
5.2.120.0070.0449.14
5.2.110.0080.0379.14
5.2.100.0040.0379.14
5.2.90.0080.0359.14
5.2.80.0050.0419.13
5.2.70.0100.0359.13
5.2.60.0090.0389.09
5.2.50.0050.0429.05
5.2.40.0070.0409.04
5.2.30.0090.0479.01
5.2.20.0080.0379.00
5.2.10.0120.0438.92
5.2.00.0100.0418.78
5.1.60.0070.0358.06
5.1.50.0110.0298.06
5.1.40.0040.0358.04
5.1.30.0050.0288.39
5.1.20.0030.0308.41
5.1.10.0070.0268.13
5.1.00.0060.0308.14
5.0.50.0060.0246.61
5.0.40.0020.0246.47
5.0.30.0030.0356.29
5.0.20.0030.0226.26
5.0.10.0040.0236.23
5.0.00.0040.0356.23
4.4.90.0010.0194.78
4.4.80.0040.0154.76
4.4.70.0050.0154.76
4.4.60.0020.0214.75
4.4.50.0000.0214.77
4.4.40.0010.0314.71
4.4.30.0040.0164.76
4.4.20.0050.0144.84
4.4.10.0030.0174.84
4.4.00.0030.0304.76
4.3.110.0030.0194.67
4.3.100.0020.0204.66
4.3.90.0020.0184.63
4.3.80.0010.0284.59
4.3.70.0040.0144.63
4.3.60.0020.0164.63
4.3.50.0020.0214.63
4.3.40.0040.0324.54
4.3.30.0040.0213.29
4.3.20.0040.0223.27
4.3.10.0060.0193.22
4.3.00.0070.0236.93

preferences:
42.85 ms | 401 KiB | 5 Q