3v4l.org

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

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.0150.00616.50
8.3.50.0090.00822.08
8.3.40.0170.00018.54
8.3.30.0070.00719.09
8.3.20.0080.00020.01
8.3.10.0040.00423.70
8.3.00.0040.00419.25
8.2.180.0100.01018.04
8.2.170.0040.01122.96
8.2.160.0070.00720.47
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.01526.16
8.2.120.0000.00722.25
8.2.110.0060.00322.12
8.2.100.0040.00717.72
8.2.90.0090.00019.14
8.2.80.0000.00817.97
8.2.70.0030.00917.50
8.2.60.0030.00517.68
8.2.50.0030.00618.07
8.2.40.0000.00918.09
8.2.30.0040.00418.09
8.2.20.0080.00017.57
8.2.10.0000.00817.95
8.2.00.0070.00417.61
8.1.280.0120.00325.92
8.1.270.0100.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.86
8.1.230.0090.00320.84
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.13
8.1.190.0000.00717.54
8.1.180.0000.00818.10
8.1.170.0040.00418.61
8.1.160.0070.00021.92
8.1.150.0030.00618.71
8.1.140.0070.00017.46
8.1.130.0040.00417.83
8.1.120.0030.00317.54
8.1.110.0050.00517.53
8.1.100.0000.00717.35
8.1.90.0030.00417.48
8.1.80.0070.00017.54
8.1.70.0070.00017.41
8.1.60.0040.00417.48
8.1.50.0000.00817.55
8.1.40.0000.00917.53
8.1.30.0040.00417.54
8.1.20.0040.00417.59
8.1.10.0030.00517.46
8.1.00.0050.00317.38
8.0.300.0040.00418.77
8.0.290.0000.00817.05
8.0.280.0030.00318.47
8.0.270.0030.00317.27
8.0.260.0000.00617.32
8.0.250.0000.00616.96
8.0.240.0040.00417.05
8.0.230.0000.00716.96
8.0.220.0070.00016.96
8.0.210.0040.00416.94
8.0.200.0060.00017.02
8.0.190.0060.00316.82
8.0.180.0000.00716.89
8.0.170.0000.00816.93
8.0.160.0000.00716.78
8.0.150.0070.00016.80
8.0.140.0040.00316.94
8.0.130.0030.00313.29
8.0.120.0000.00816.92
8.0.110.0000.00716.86
8.0.100.0030.00516.79
8.0.90.0070.00016.86
8.0.80.0060.00916.79
8.0.70.0000.00716.90
8.0.60.0070.00016.94
8.0.50.0030.00316.84
8.0.30.0090.01116.99
8.0.20.0090.00917.40
8.0.10.0050.00317.07
8.0.00.0100.00716.69
7.4.330.0030.00315.00
7.4.320.0030.00316.52
7.4.300.0030.00316.52
7.4.290.0000.00816.41
7.4.280.0070.00016.51
7.4.270.0000.00716.46
7.4.260.0040.00416.59
7.4.250.0040.00416.47
7.4.240.0020.00616.56
7.4.230.0030.00316.60
7.4.220.0070.01016.71
7.4.210.0060.01116.49
7.4.200.0040.00416.50
7.4.190.0070.00016.79
7.4.160.0120.00416.31
7.4.150.0100.00717.40
7.4.140.0110.00917.86
7.4.130.0130.00816.52
7.4.120.0080.00916.55
7.4.110.0130.00316.25
7.4.100.0110.00916.32
7.4.90.0130.00316.32
7.4.80.0070.01319.39
7.4.70.0000.01816.54
7.4.60.0090.00916.61
7.4.50.0030.00516.28
7.4.40.0070.01022.77
7.4.30.0120.01016.42
7.4.00.0030.01014.82
7.3.330.0060.00013.02
7.3.320.0060.00013.10
7.3.310.0030.00516.38
7.3.300.0030.00316.37
7.3.290.0100.00416.26
7.3.280.0100.00616.28
7.3.270.0140.00317.40
7.3.260.0120.00916.48
7.3.250.0120.00616.41
7.3.240.0100.00716.35
7.3.230.0030.01316.39
7.3.210.0120.00916.36
7.3.200.0190.00416.67
7.3.190.0100.00716.23
7.3.180.0040.01116.29
7.3.170.0070.00816.42
7.3.160.0090.00616.43
7.3.120.0100.00715.12
7.2.330.0060.01116.45
7.2.320.0030.01316.57
7.2.310.0090.00916.34
7.2.300.0030.01216.44
7.2.290.0070.01116.62
7.2.60.0040.00816.92
7.2.00.0030.00919.57
7.1.200.0070.00715.45
7.1.100.0070.00318.07
7.1.70.0040.00716.95
7.1.60.0100.01419.46
7.1.50.0030.00717.04
7.1.00.0100.07022.45
7.0.200.0050.00316.88
7.0.140.0000.07721.93
7.0.60.0200.06320.02
7.0.50.0100.08317.83
7.0.40.0070.07320.30
7.0.30.0330.06320.20
7.0.20.0170.05020.33
7.0.10.0200.07320.32
7.0.00.0170.07320.22
5.6.280.0030.07321.11
5.6.210.0000.09020.50
5.6.200.0070.08318.15
5.6.190.0100.08320.51
5.6.180.0400.06020.67
5.6.170.0170.08720.58
5.6.160.0100.05320.55
5.6.150.0030.04018.16
5.6.140.0100.08018.11
5.6.130.0030.09318.14
5.6.120.0170.07321.05
5.6.110.0130.08021.01
5.6.100.0070.05021.09
5.6.90.0030.08321.03
5.6.80.0030.04020.36
5.5.350.0270.03320.43
5.5.340.0130.03318.08
5.5.330.0100.07020.47
5.5.320.0100.05320.35
5.5.310.0330.06320.27
5.5.300.0100.08018.06
5.5.290.0100.08017.98
5.5.280.0030.07320.84
5.5.270.0100.08020.66
5.5.260.0070.07020.79
5.5.250.0100.07720.77
5.5.240.0130.05320.26
5.4.450.0370.06019.38
5.4.440.0200.06319.30
5.4.430.0170.05019.68
5.4.420.0030.06019.45
5.4.410.0100.05719.42
5.4.400.0070.05719.27
5.4.390.0230.03719.14
5.4.380.0270.06018.59
5.4.370.0430.05018.46
5.4.360.0400.04718.81
5.4.350.0300.06718.77
5.4.340.0400.04318.53
5.4.320.0030.03812.48
5.4.310.0060.04512.48
5.4.300.0040.03912.48
5.4.290.0080.04012.46
5.4.280.0040.04212.36
5.4.270.0040.04012.36
5.4.260.0080.04112.36
5.4.250.0160.09212.36
5.4.240.0040.04812.36
5.4.230.0080.05012.35
5.4.220.0120.06712.35
5.4.210.0100.06312.35
5.4.200.0110.07512.36
5.4.190.0050.04312.35
5.4.180.0040.04312.35
5.4.170.0090.04012.36
5.4.160.0080.05012.36
5.4.150.0080.05112.36
5.4.140.0070.05512.04
5.4.130.0100.05112.02
5.4.120.0070.06111.98
5.4.110.0060.07511.98
5.4.100.0100.06211.98
5.4.90.0080.05711.98
5.4.80.0100.07211.98
5.4.70.0120.08211.97
5.4.60.0080.06511.98
5.4.50.0130.08511.98
5.4.40.0250.07411.96
5.4.30.0170.07411.96
5.4.20.0120.05111.96
5.4.10.0110.06611.96
5.4.00.0150.08811.46
5.3.290.0070.04812.80
5.3.280.0150.05212.71
5.3.270.0120.05512.72
5.3.260.0080.04912.72
5.3.250.0190.10112.72
5.3.240.0080.05512.72
5.3.230.0100.07412.71
5.3.220.0050.05712.68
5.3.210.0170.08812.68
5.3.200.0200.06412.68
5.3.190.0100.05412.68
5.3.180.0100.04912.67
5.3.170.0080.04212.67
5.3.160.0070.04512.68
5.3.150.0070.04512.67
5.3.140.0090.03912.66
5.3.130.0070.04012.66
5.3.120.0130.07212.65
5.3.110.0080.04212.66
5.3.100.0040.04512.12
5.3.90.0020.04412.09
5.3.80.0080.03512.08
5.3.70.0070.03612.08
5.3.60.0050.03912.07
5.3.50.0100.04012.01
5.3.40.0130.04412.01
5.3.30.0070.04311.97
5.3.20.0060.03911.75
5.3.10.0110.03511.71
5.3.00.0070.03911.71
5.2.170.0090.0309.20
5.2.160.0070.0329.21
5.2.150.0100.0409.21
5.2.140.0100.0339.20
5.2.130.0040.0329.16
5.2.120.0080.0309.16
5.2.110.0060.0359.17
5.2.100.0050.0339.16
5.2.90.0100.0919.17
5.2.80.0100.0419.16
5.2.70.0060.0449.16
5.2.60.0060.0409.12
5.2.50.0090.0459.09
5.2.40.0090.0309.06
5.2.30.0030.0469.04
5.2.20.0070.0339.03
5.2.10.0070.0338.93
5.2.00.0070.0388.79
5.1.60.0040.0288.06
5.1.50.0100.0338.05
5.1.40.0020.0478.04
5.1.30.0090.0418.39
5.1.20.0040.0478.41
5.1.10.0090.0298.14
5.1.00.0080.0358.13
5.0.50.0070.0276.62
5.0.40.0030.0306.48
5.0.30.0050.0466.29
5.0.20.0060.0326.26
5.0.10.0040.0296.24
5.0.00.0050.0486.23
4.4.90.0020.0274.78
4.4.80.0050.0154.76
4.4.70.0020.0184.75
4.4.60.0030.0194.76
4.4.50.0050.0214.77
4.4.40.0010.0314.71
4.4.30.0040.0174.76
4.4.20.0080.0184.85
4.4.10.0040.0224.85
4.4.00.0030.0494.76
4.3.110.0050.0254.67
4.3.100.0120.0374.67
4.3.90.0040.0194.64
4.3.80.0030.0354.58
4.3.70.0090.0344.63
4.3.60.0050.0194.63
4.3.50.0070.0214.63
4.3.40.0030.0394.54
4.3.30.0040.0443.29
4.3.20.0040.0383.27
4.3.10.0070.0263.22
4.3.00.0100.0236.93

preferences:
35.34 ms | 401 KiB | 5 Q