3v4l.org

run code in 300+ PHP versions simultaneously
<?php $entries = array( "111 222 465", "666 123 412", "000 999", ); $test = array(111, 465, 555, 666, 777); foreach ($entries as $key => $etry) { $plotsTotal1 = explode(' ', $entry); $plotsTotal2 = array_filter($plotsTotal1); $matches = array_intersect($test, $plotsTotal2); if (count($matches) > 0) { echo 'Entry ' . $key. ' contains ' . implode(',', $matches) . '<br/>'; } }

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.0120.00318.43
8.3.50.0090.01121.98
8.3.40.0070.00718.75
8.3.30.0140.00018.93
8.3.20.0040.00420.16
8.3.10.0040.00421.94
8.3.00.0050.00322.45
8.2.180.0080.00818.38
8.2.170.0100.00722.96
8.2.160.0090.00918.97
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0050.00326.16
8.2.120.0080.00019.38
8.2.110.0030.00622.29
8.2.100.0100.00317.72
8.2.90.0030.00619.22
8.2.80.0090.00017.97
8.2.70.0000.00817.50
8.2.60.0000.00717.93
8.2.50.0080.00018.07
8.2.40.0030.00718.09
8.2.30.0070.00018.07
8.2.20.0080.00017.76
8.2.10.0040.00419.65
8.2.00.0080.00017.70
8.1.280.0070.01025.92
8.1.270.0080.00023.84
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00623.76
8.1.230.0040.00818.91
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0060.00617.38
8.1.190.0040.00417.55
8.1.180.0080.00018.10
8.1.170.0040.00418.57
8.1.160.0040.00422.05
8.1.150.0000.00718.65
8.1.140.0000.00717.45
8.1.130.0030.00317.88
8.1.120.0030.00417.45
8.1.110.0070.00017.46
8.1.100.0000.00817.34
8.1.90.0070.00017.36
8.1.80.0030.00317.50
8.1.70.0070.00017.40
8.1.60.0000.00817.62
8.1.50.0040.00417.49
8.1.40.0030.00517.48
8.1.30.0040.00417.61
8.1.20.0080.00017.68
8.1.10.0040.00417.42
8.1.00.0040.00417.33
8.0.300.0040.00418.77
8.0.290.0070.00017.18
8.0.280.0070.00018.36
8.0.270.0080.00017.14
8.0.260.0030.00316.88
8.0.250.0030.00317.01
8.0.240.0040.00417.05
8.0.230.0040.00416.93
8.0.220.0070.00016.82
8.0.210.0030.00317.00
8.0.200.0030.00316.90
8.0.190.0000.00717.05
8.0.180.0070.00417.04
8.0.170.0000.00816.91
8.0.160.0000.00717.06
8.0.150.0060.00316.85
8.0.140.0080.00016.79
8.0.130.0000.00713.38
8.0.120.0000.00816.84
8.0.110.0000.00717.02
8.0.100.0050.00216.87
8.0.90.0030.00316.79
8.0.80.0000.01516.86
8.0.70.0000.00816.98
8.0.60.0000.00716.93
8.0.50.0030.00316.92
8.0.30.0090.00917.09
8.0.20.0120.00717.40
8.0.10.0040.00417.02
8.0.00.0030.01416.69
7.4.330.0050.00015.08
7.4.320.0030.00316.58
7.4.300.0060.00016.45
7.4.290.0030.00316.59
7.4.280.0040.00416.48
7.4.270.0070.00016.62
7.4.260.0070.00316.60
7.4.250.0070.00016.61
7.4.240.0050.00216.56
7.4.230.0070.00016.54
7.4.220.0040.01516.57
7.4.210.0090.00616.62
7.4.200.0030.00316.39
7.4.190.0000.00716.75
7.4.160.0150.00016.50
7.4.150.0100.01017.40
7.4.140.0150.00517.86
7.4.130.0120.00716.41
7.4.120.0150.00316.50
7.4.110.0170.00016.52
7.4.100.0090.01316.58
7.4.90.0060.01216.54
7.4.80.0030.01819.39
7.4.70.0130.00316.67
7.4.60.0070.01016.37
7.4.50.0060.00316.57
7.4.40.0030.00922.77
7.4.30.0040.01716.67
7.4.00.0100.00615.17
7.3.330.0020.00213.25
7.3.320.0000.00613.31
7.3.310.0030.00316.43
7.3.300.0040.00416.16
7.3.290.0070.00716.37
7.3.280.0100.00816.35
7.3.270.0030.01517.40
7.3.260.0090.00916.41
7.3.250.0120.00816.42
7.3.240.0100.00716.40
7.3.230.0100.00716.39
7.3.210.0030.01716.32
7.3.200.0070.01019.39
7.3.190.0130.00916.48
7.3.180.0110.00716.55
7.3.170.0110.00716.30
7.3.160.0060.01616.52
7.3.120.0040.00814.91
7.3.10.0040.00716.90
7.3.00.0000.01216.59
7.2.330.0160.00316.72
7.2.320.0050.01516.42
7.2.310.0130.00716.64
7.2.300.0080.00816.40
7.2.290.0090.00616.53
7.2.130.0070.01116.96
7.2.120.0040.00717.05
7.2.110.0070.00717.06
7.2.100.0090.00616.80
7.2.90.0130.00716.82
7.2.80.0140.00416.48
7.2.70.0070.00716.87
7.2.60.0040.00516.72
7.2.50.0030.01017.05
7.2.40.0090.00316.50
7.2.30.0000.01516.73
7.2.20.0090.00017.03
7.2.10.0000.01417.01
7.2.00.0070.00716.84
7.1.250.0040.00815.68
7.1.200.0060.00615.48
7.1.70.0060.00316.64
7.1.60.0100.01419.82
7.1.50.0060.01516.94
7.1.00.0030.07722.43
7.0.200.0130.00016.88
7.0.140.0100.06322.18
7.0.60.0100.05719.92
7.0.50.0030.06317.80
7.0.40.0100.04020.05
7.0.30.0230.06720.00
7.0.20.0200.08320.21
7.0.10.0130.05720.16
7.0.00.0000.08720.11
5.6.280.0130.06021.15
5.6.210.0070.06320.61
5.6.200.0170.06018.11
5.6.190.0070.05020.56
5.6.180.3870.04720.29
5.6.170.0130.04320.50
5.6.160.0030.08720.38
5.6.150.0030.08318.11
5.6.140.0070.04018.18
5.6.130.0030.04018.18
5.6.120.0170.04321.04
5.6.110.0030.07721.02
5.6.100.0070.04320.99
5.6.90.0170.07321.12
5.6.80.0100.05320.41
5.5.350.0000.08020.49
5.5.340.0230.04317.96
5.5.330.0070.08320.17
5.5.320.0100.07720.43
5.5.310.0230.08020.16
5.5.300.0070.08317.91
5.5.290.0100.03317.97
5.5.280.0170.06020.88
5.5.270.0100.04320.86
5.5.260.0070.04020.88
5.5.250.0030.04320.70
5.5.240.0100.07720.27
5.4.450.0170.06019.52
5.4.440.0800.05719.55
5.4.430.0100.05319.31
5.4.420.0130.05019.15
5.4.410.0030.06018.69
5.4.400.1170.05018.62
5.4.390.0900.05718.53
5.4.380.0230.05018.63
5.4.370.0000.04718.52
5.4.360.0170.02718.62
5.4.350.0050.04011.97
5.4.340.0030.03811.97
5.4.320.0040.03812.45
5.4.310.0080.03712.45
5.4.300.0070.03512.45
5.4.290.0080.03612.45
5.4.280.0080.03312.32
5.4.270.0070.03512.32
5.4.260.0070.04112.32
5.4.250.0050.03812.32
5.4.240.0060.03612.32
5.4.230.0040.03912.31
5.4.220.0030.03912.31
5.4.210.0070.03512.31
5.4.200.0060.03712.31
5.4.190.0050.03812.30
5.4.180.0100.03412.31
5.4.170.0060.03712.32
5.4.160.0080.03512.31
5.4.150.0070.03612.31
5.4.140.0090.03411.99
5.4.130.0030.03811.98
5.4.120.0070.03411.93
5.4.110.0040.03711.93
5.4.100.0050.03611.93
5.4.90.0050.03711.93
5.4.80.0080.05011.93
5.4.70.0070.03311.93
5.4.60.0070.03311.93
5.4.50.0090.04111.93
5.4.40.0050.03711.92
5.4.30.0070.03411.92
5.4.20.0060.03511.91
5.4.10.0030.03711.91
5.4.00.0080.03311.41
5.3.290.0060.03912.80
5.3.280.0040.04012.71
5.3.270.0040.04112.73
5.3.260.0090.03912.71
5.3.250.0090.03412.72
5.3.240.0070.03512.72
5.3.230.0050.03812.71
5.3.220.0030.03912.68
5.3.210.0080.03612.68
5.3.200.0060.03612.68
5.3.190.0060.03712.68
5.3.180.0070.03512.67
5.3.170.0090.03512.66
5.3.160.0060.03612.68
5.3.150.0050.03812.67
5.3.140.0080.03512.66
5.3.130.0070.04312.66
5.3.120.0050.04012.66
5.3.110.0070.03912.66
5.3.100.0060.03812.12
5.3.90.0050.03712.08
5.3.80.0070.03412.07
5.3.70.0050.04112.07
5.3.60.0050.03712.06
5.3.50.0040.03812.00
5.3.40.0080.03712.00
5.3.30.0070.03411.94
5.3.20.0050.04011.70
5.3.10.0070.03411.66
5.3.00.0030.04011.66
5.2.170.0070.0309.15
5.2.160.0050.0299.15
5.2.150.0030.0329.15
5.2.140.0040.0319.15
5.2.130.0080.0409.11
5.2.120.0070.0329.11
5.2.110.0080.0349.11
5.2.100.0060.0299.11
5.2.90.0080.0279.11
5.2.80.0030.0359.10
5.2.70.0060.0299.10
5.2.60.0050.0339.06
5.2.50.0070.0289.03
5.2.40.0090.0289.00
5.2.30.0070.0338.98
5.2.20.0070.0368.97
5.2.10.0060.0308.91
5.2.00.0020.0328.77
5.1.60.0060.0228.05
5.1.50.0040.0248.05
5.1.40.0050.0238.04
5.1.30.0030.0278.38
5.1.20.0040.0268.41
5.1.10.0030.0278.13
5.1.00.0080.0268.13
5.0.50.0040.0206.61
5.0.40.0040.0196.47
5.0.30.0030.0326.28
5.0.20.0050.0186.25
5.0.10.0020.0216.23
5.0.00.0050.0296.22
4.4.90.0020.0164.78
4.4.80.0030.0164.75
4.4.70.0020.0164.75
4.4.60.0060.0124.76
4.4.50.0050.0134.77
4.4.40.0070.0234.71
4.4.30.0030.0154.76
4.4.20.0000.0184.85
4.4.10.0010.0174.85
4.4.00.0030.0244.76
4.3.110.0010.0174.67
4.3.100.0020.0164.66
4.3.90.0030.0144.64
4.3.80.0040.0234.58
4.3.70.0010.0174.63
4.3.60.0020.0154.63
4.3.50.0020.0154.63
4.3.40.0030.0244.53
4.3.30.0030.0153.29
4.3.20.0030.0203.27
4.3.10.0010.0233.23
4.3.00.0170.0277.35

preferences:
59.06 ms | 401 KiB | 5 Q