3v4l.org

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

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.70.0190.00318.31
8.3.60.0120.00918.25
8.3.50.0160.00522.05
8.3.40.0030.01318.85
8.3.30.0060.01018.76
8.3.20.0140.00318.65
8.3.10.0050.00320.49
8.3.00.0100.00317.50
8.2.190.0150.00716.58
8.2.180.0170.00316.50
8.2.170.0150.00022.96
8.2.160.0070.00722.05
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0190.00026.16
8.2.120.0070.00019.89
8.2.110.0110.00022.09
8.2.100.0090.00317.62
8.2.90.0090.00019.08
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0030.00617.80
8.2.50.0030.00518.07
8.2.40.0000.00818.09
8.2.30.0000.00819.85
8.2.20.0000.00717.71
8.2.10.0000.00717.75
8.2.00.0040.00417.81
8.1.280.0000.01625.92
8.1.270.0000.00823.99
8.1.260.0070.00726.35
8.1.250.0100.01028.09
8.1.240.0030.00622.66
8.1.230.0070.00417.42
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0060.00316.98
8.1.180.0080.00018.10
8.1.170.0040.00418.70
8.1.160.0040.00418.93
8.1.150.0000.00818.56
8.1.140.0000.00817.45
8.1.130.0030.00317.73
8.1.120.0070.00017.51
8.1.110.0070.00017.39
8.1.100.0030.00517.53
8.1.90.0040.00417.41
8.1.80.0000.00717.51
8.1.70.0030.00717.47
8.1.60.0060.00317.62
8.1.50.0080.00017.48
8.1.40.0050.00217.39
8.1.30.0070.00017.58
8.1.20.0000.00917.48
8.1.10.0070.00017.53
8.1.00.0070.00017.50
8.0.300.0040.00418.77
8.0.290.0060.00316.58
8.0.280.0000.00718.39
8.0.270.0000.00717.13
8.0.260.0040.00416.87
8.0.250.0050.00316.98
8.0.240.0090.00016.93
8.0.230.0070.00016.88
8.0.220.0040.00416.79
8.0.210.0040.00416.80
8.0.200.0040.00416.97
8.0.190.0040.00416.94
8.0.180.0000.00716.74
8.0.170.0040.00416.89
8.0.160.0070.00016.91
8.0.150.0040.00416.86
8.0.140.0030.00916.76
8.0.130.0000.00613.32
8.0.120.0040.00416.80
8.0.110.0070.00016.77
8.0.100.0070.00016.91
8.0.90.0040.00416.80
8.0.80.0120.00316.91
8.0.70.0020.00516.85
8.0.60.0030.00616.89
8.0.50.0050.00216.88
8.0.30.0110.00817.00
8.0.20.0080.01517.40
8.0.10.0000.00716.92
8.0.00.0050.01416.54
7.4.330.0020.00214.86
7.4.320.0000.00616.61
7.4.300.0030.00316.61
7.4.290.0030.00316.48
7.4.280.0050.00216.61
7.4.270.0000.00616.56
7.4.260.0050.00013.15
7.4.250.0030.00516.43
7.4.240.0000.00716.65
7.4.230.0000.00716.58
7.4.220.0140.01116.38
7.4.210.0080.00916.51
7.4.200.0040.00416.66
7.4.190.0070.00016.42
7.4.160.0060.01216.41
7.4.150.0140.00317.40
7.4.140.0050.01117.86
7.4.130.0050.01216.60
7.4.120.0130.00716.44
7.4.110.0130.00716.64
7.4.100.0060.01216.58
7.4.90.0140.00316.60
7.4.80.0130.00319.04
7.4.70.0100.00716.54
7.4.60.0060.01316.36
7.4.50.0000.00816.59
7.4.40.0090.00622.27
7.4.30.0030.01316.64
7.4.00.0080.00414.68
7.3.330.0060.00013.20
7.3.320.0070.00013.07
7.3.310.0040.00416.16
7.3.300.0030.00316.24
7.3.290.0090.00416.22
7.3.280.0090.00616.29
7.3.270.0170.00017.40
7.3.260.0150.00418.24
7.3.250.0100.00916.31
7.3.240.0030.01316.51
7.3.230.0080.00816.39
7.3.210.0060.01016.45
7.3.200.0100.00719.39
7.3.190.0090.01216.56
7.3.180.0100.01016.33
7.3.170.0120.00616.37
7.3.160.0060.00916.34
7.3.120.0000.01214.81
7.2.330.0070.01416.87
7.2.320.0120.00916.76
7.2.310.0110.01316.73
7.2.300.0040.01316.69
7.2.290.0140.00516.45
7.2.60.0110.00416.79
7.2.00.0070.01519.63
7.1.200.0060.00315.89
7.1.100.0040.01118.33
7.1.70.0030.00516.97
7.1.60.0060.01819.40
7.1.50.0070.01017.03
7.1.00.0000.04022.40
7.0.200.0040.00416.51
7.0.140.0070.07322.07
7.0.60.0030.07720.28
7.0.50.0030.07718.11
7.0.40.0170.06718.05
7.0.30.0100.03717.94
7.0.20.0030.09017.97
7.0.10.0130.03018.07
7.0.00.0030.04318.08
5.6.280.0030.07321.13
5.6.210.0000.06020.72
5.6.200.0230.05718.12
5.6.190.0070.08318.11
5.6.180.0100.07718.12
5.6.170.0070.04018.20
5.6.160.0070.08018.20
5.6.150.0200.06718.18
5.6.140.0130.08018.21
5.6.130.0070.06018.07
5.6.120.0070.07718.21
5.6.110.0100.07718.17
5.6.100.0030.08018.16
5.6.90.0100.07718.16
5.6.80.0030.03717.64
5.6.70.0100.07717.60
5.6.60.0100.07717.58
5.6.50.0030.07317.50
5.6.40.0030.08017.50
5.6.30.0170.04317.58
5.6.20.0070.07717.47
5.6.10.0030.07717.56
5.6.00.0070.06317.52
5.5.350.2700.02720.38
5.5.340.0070.03717.99
5.5.330.0100.07718.02
5.5.320.0030.06017.98
5.5.310.0000.04318.00
5.5.300.0070.08317.87
5.5.290.0200.07017.98
5.5.280.0130.07317.91
5.5.270.0070.05017.96
5.5.260.0070.04717.91
5.5.250.0100.04017.80
5.5.240.0030.05317.29
5.5.230.0100.07717.39
5.5.220.0130.07017.36
5.5.210.0030.08317.36
5.5.200.0030.08317.25
5.5.190.0170.07017.34
5.5.180.0030.07317.27
5.5.160.0100.08017.37
5.5.150.0070.07717.33
5.5.140.0070.05317.36
5.5.130.0070.04017.30
5.5.120.0130.06717.36
5.5.110.0030.05717.35
5.5.100.0070.04317.27
5.5.90.0030.03717.13
5.5.80.0070.06017.22
5.5.70.0000.04317.18
5.5.60.0070.03717.21
5.5.50.0100.06717.25
5.5.40.0000.04717.25
5.5.30.0100.03717.18
5.5.20.0100.07017.26
5.5.10.0100.06717.25
5.5.00.0030.08017.14
5.4.450.0030.08019.42
5.4.440.0100.05019.40
5.4.430.0100.07319.27
5.4.420.0070.04319.39
5.4.410.0030.04019.02
5.4.400.0070.06018.99
5.4.390.0030.04318.97
5.4.380.0000.06719.03
5.4.370.0070.07719.03
5.4.360.0070.07018.97
5.4.350.0070.06719.04
5.4.340.0130.07018.82
5.4.320.0100.07318.97
5.4.310.0070.08019.03
5.4.300.0170.03718.95
5.4.290.0070.06719.13
5.4.280.0070.07319.07
5.4.270.0000.05318.95
5.4.260.0000.09019.01
5.4.250.0030.04018.95
5.4.240.0100.03319.09
5.4.230.0030.05718.98
5.4.220.0070.03718.97
5.4.210.0030.03719.20
5.4.200.0000.07718.90
5.4.190.0070.05718.94
5.4.180.0030.04318.94
5.4.170.0030.08019.08
5.4.160.0000.04018.93
5.4.150.0030.04318.97
5.4.140.0100.03016.18
5.4.130.0070.03016.25
5.4.120.0000.03716.28
5.4.110.0000.03716.37
5.4.100.0000.03716.52
5.4.90.0000.03716.30
5.4.80.0030.03316.22
5.4.70.0000.03716.51
5.4.60.0000.03716.34
5.4.50.0070.06316.38
5.4.40.0000.06016.44
5.4.30.0130.06316.25
5.4.20.0030.04016.49
5.4.10.0070.03316.39
5.4.00.0000.03715.91
5.3.290.0030.08014.61
5.3.280.0030.06714.54
5.3.270.0100.05714.69
5.3.260.0000.04014.57
5.3.250.0070.03314.58
5.3.240.0000.04014.57
5.3.230.0070.03314.56
5.3.220.0030.03714.54
5.3.210.0030.03714.66
5.3.200.0030.03714.54
5.3.190.0000.04014.48
5.3.180.0000.03714.55
5.3.170.0130.03314.52
5.3.160.0000.04014.40
5.3.150.0030.07714.50
5.3.140.0030.04714.50
5.3.130.0100.04314.40
5.3.120.0000.04014.54
5.3.110.0030.07014.63
5.3.100.0070.03713.87
5.3.90.0030.03713.87
5.3.80.0170.03013.79
5.3.70.0000.03713.96
5.3.60.0000.03713.91
5.3.50.0030.03714.02
5.3.40.0030.03713.91
5.3.30.0030.03313.90
5.3.20.0000.03713.64
5.3.10.0070.03313.61
5.3.00.0100.02713.60
5.2.170.0000.03011.15
5.2.160.0070.02311.13
5.2.150.0030.03011.10
5.2.140.0000.03011.12
5.2.130.0000.03011.04
5.2.120.0000.03011.07
5.2.110.0070.03011.11
5.2.100.0000.03011.04
5.2.90.0000.03011.07
5.2.80.0000.03311.04
5.2.70.0000.03011.09
5.2.60.0030.02711.06
5.2.50.0030.03011.02
5.2.40.0030.02710.89
5.2.30.0000.03310.79
5.2.20.0030.02710.99
5.2.10.0070.02310.95
5.2.00.0030.02710.81
5.1.60.0000.0279.96
5.1.50.0070.03010.05
5.1.40.0070.01710.04
5.1.30.0000.06010.22
5.1.20.0070.03310.27
5.1.10.0030.04710.06
5.1.00.0030.05710.13
5.0.50.0030.0409.79
5.0.40.0030.0479.79
5.0.30.0000.0539.79
5.0.20.0070.0439.79
5.0.10.0070.0209.79
5.0.00.0070.0279.79
4.4.90.0000.0139.79
4.4.80.0000.0179.79
4.4.70.0000.0179.79
4.4.60.0000.0179.79
4.4.50.0030.0139.79
4.4.40.0030.0209.79
4.4.30.0000.0179.79
4.4.20.0000.0379.79
4.4.10.0000.0279.79
4.4.00.0070.0539.79
4.3.110.0000.0379.79
4.3.100.0000.0309.79
4.3.90.0000.0239.79
4.3.80.0030.0239.79
4.3.70.0070.0309.79
4.3.60.0030.0339.79
4.3.50.0000.0379.79
4.3.40.0030.0439.79
4.3.30.0000.0379.79
4.3.20.0070.0309.79
4.3.10.0030.0339.79
4.3.00.0000.0239.79

preferences:
53.88 ms | 401 KiB | 5 Q