3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = "/^((?:\d{2}\.?){3}).*?(\w{2}\s\d{4}).*?(\d{2}:\d{2})(?:.*?(\b[a-z]+\b).*?(\b[a-z]+\b))?$/m"; $str = "A N K U N F T 08.09.15 *** NEUBUCHUNG *** 08.09.15 FRA FNC X3 2806 04:55 08:10 17.09.15 FNC FRA TP 1678 14:05 FNC015P Galo Resort Galosol/Paket 9125-031 Canico de Baixo 1 Doppelzimmer Meerblick 2Erw. Halbpension am 02.08.15 CRS: GA - PNR: XQ2SR0 inkl. Reiseleitung und Transfer ab/bis Flughafen Galo-Erlebnis-Paket (englischsprachig) bestehend aus: Mountainbiken und einer von vier F881738 HERR FUCHS, HOLGER zusätzlichen Aktivitäten. Infos unter www.hotel-beschreibung.de Durchfühtung teilweise wetterabhängig, Mindestteilnehmerzahl 2 Pers. Weitere Informationen jeweisl im aktuellen Sommer/Winter Katalog F881738 FRAU FUCHS, ANGELA 08.09.15 FRA FNC X3 2806 04:55 08:10 17.09.15 FNC FRA TP 1678 14:05 FNC015PAGalo Resort Galosol/Paket Canico de Baixo 2 Galo-Erlebnispaket lt. Programm am 02.08.15 CRS: GA - PNR: XQ2SR0 inkl. Reiseleitung und Transfer ab/bis Flughafen Galo-Erlebnis-Paket (englischsprachig) bestehend aus: Mountainbiken und einer von vier F881738 HERR FUCHS, HOLGER zusätzlichen Aktivitäten. Infos unter www.hotel-beschreibung.de Durchfühtung teilweise wetterabhängig, Mindestteilnehmerzahl 2 Pers. Weitere Informationen jeweisl im aktuellen Sommer/Winter Katalog F881738 FRAU FUCHS, ANGELA ----- A N K U N F T 12.09.15 *** NEUBUCHUNG *** 12.09.15 MUC FNC AB 2464 13:20 16:40 19.09.15 FNC MUC AB 2465 17:30 FNC234 Vidamar Resort 9000-100 Funchal 1 Garten/Meerseite 2Erw. Halbpension Special Offer 20% SPO15 inkl. Reiseleitung und Transfer ab/bis Flughafen HOCHZEITSREISE F881463 HERR COEPPENCASTROP, ROBER F881463 FRAU COEPPENCASTROP, JENNY"; $re = "/(?:\sF\d+.*?\n\n)(\n)/"; $subst = ">>CUT HERE>>"; $result = preg_split($re, $str); $forbiddennames = array('F881463', 'F881738'); function my_search($haystack) { $needle = 'F881738'; return(strpos($haystack, $needle)); // or stripos() if you want case-insensitive searching. } $matches = array_filter($result, 'my_search'); $cont = count($matches); echo $cont; print_r($matches); $inter = array_intersect_key($result, $matches); echo $inter; ?>

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.0140.00718.56
8.3.50.0170.00922.21
8.3.40.0120.00318.77
8.3.30.0060.01219.10
8.3.20.0050.00320.16
8.3.10.0040.00421.85
8.3.00.0040.00422.27
8.2.180.0040.01118.41
8.2.170.0110.00422.96
8.2.160.0090.00521.99
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00017.88
8.2.110.0060.00319.30
8.2.100.0000.01217.75
8.2.90.0030.00519.13
8.2.80.0070.00417.97
8.2.70.0040.00417.74
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0040.00421.14
8.2.30.0030.00618.16
8.2.20.0000.00717.86
8.2.10.0040.00418.25
8.2.00.0000.00718.10
8.1.280.0090.00925.92
8.1.270.0040.00420.53
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0100.00022.73
8.1.230.0000.01117.83
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0070.00317.60
8.1.190.0030.00517.48
8.1.180.0040.00418.10
8.1.170.0000.00818.91
8.1.160.0000.00722.05
8.1.150.0060.00318.82
8.1.140.0040.00417.70
8.1.130.0050.00317.77
8.1.120.0040.00417.55
8.1.110.0050.00317.63
8.1.100.0050.00317.64
8.1.90.0000.00717.59
8.1.80.0030.00617.51
8.1.70.0000.00717.64
8.1.60.0040.00417.70
8.1.50.0080.00017.72
8.1.40.0040.00417.67
8.1.30.0030.00517.77
8.1.20.0020.00517.85
8.1.10.0050.00217.66
8.1.00.0030.00617.57
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0000.00718.54
8.0.270.0000.00717.30
8.0.260.0000.00617.27
8.0.250.0050.00317.21
8.0.240.0030.00617.22
8.0.230.0030.00317.03
8.0.220.0040.00417.11
8.0.210.0000.00816.97
8.0.200.0040.00417.11
8.0.190.0000.00717.14
8.0.180.0040.00417.09
8.0.170.0000.00717.19
8.0.160.0000.00717.06
8.0.150.0070.00017.20
8.0.140.0000.00817.09
8.0.130.0060.00013.52
8.0.120.0030.00617.00
8.0.110.0000.00717.23
8.0.100.0050.00317.09
8.0.90.0040.00417.03
8.0.80.0090.00617.11
8.0.70.0040.00417.02
8.0.60.0040.00416.93
8.0.50.0040.00417.00
8.0.30.0110.00817.30
8.0.20.0110.00717.41
8.0.10.0000.01017.05
8.0.00.0090.00917.00
7.4.330.0000.00615.08
7.4.320.0030.00316.68
7.4.300.0030.00316.75
7.4.290.0000.00716.85
7.4.280.0000.00716.74
7.4.270.0000.00716.86
7.4.260.0000.00716.85
7.4.250.0000.00816.59
7.4.240.0020.00516.87
7.4.230.0030.00316.63
7.4.220.0140.00416.79
7.4.210.0100.00316.78
7.4.200.0000.00716.88
7.4.160.0100.00716.79
7.4.150.0040.01517.40
7.4.140.0100.01217.86
7.4.130.0070.01216.79
7.4.120.0140.00616.83
7.4.110.0110.00816.60
7.4.100.0070.01616.88
7.4.90.0160.00916.63
7.4.80.0050.01519.39
7.4.70.0160.00316.88
7.4.60.0040.01216.72
7.4.50.0000.00916.57
7.4.40.0030.01316.67
7.4.30.0090.00916.67
7.4.00.0100.00315.40
7.3.330.0030.00313.48
7.3.320.0030.00313.32
7.3.310.0050.00216.58
7.3.300.0000.00716.45
7.3.290.0110.00616.43
7.3.280.0120.00716.50
7.3.270.0120.01217.40
7.3.260.0070.01016.70
7.3.250.0080.01216.47
7.3.240.0090.01216.71
7.3.230.0040.01416.84
7.3.210.0070.01016.50
7.3.200.0070.01116.79
7.3.190.0150.00316.40
7.3.180.0090.01216.58
7.3.170.0040.01216.71
7.3.160.0080.01416.53
7.2.330.0180.00016.84
7.2.320.0030.01716.77
7.2.310.0070.01016.86
7.2.300.0080.01216.80
7.2.290.0070.01616.73
7.2.60.0070.00717.07
7.2.50.0280.00316.82
7.2.00.0090.00619.56
7.1.200.0120.00315.98
7.1.100.0180.00716.40
7.1.70.0030.00617.37
7.1.60.0100.01319.40
7.1.50.0110.01417.20
7.1.00.0000.08022.59
7.0.200.0040.00416.70
7.0.60.0170.07319.98
7.0.50.0030.04017.91
7.0.40.0070.08720.22
7.0.30.0500.05020.17
7.0.20.0300.08320.22
7.0.10.0170.07720.16
7.0.00.0030.05020.11
5.6.280.0030.03021.12
5.6.210.0030.09020.45
5.6.200.0130.05318.16
5.6.190.0030.04320.48
5.6.180.0430.07020.49
5.6.170.0200.03720.40
5.6.160.0030.07320.41
5.6.150.0000.07718.18
5.6.140.0030.08018.17
5.6.130.0030.06018.19
5.6.120.0130.06020.91
5.6.110.0130.07321.05
5.6.100.0070.04721.09
5.6.90.0070.04021.12
5.6.80.0130.07320.51
5.6.70.3430.02720.39
5.5.350.0070.09020.30
5.5.340.0070.08018.04
5.5.330.0030.07720.19
5.5.320.0230.08320.46
5.5.310.0330.07720.37
5.5.300.0030.05718.01
5.5.290.0030.06317.98
5.5.280.0170.07720.74
5.5.270.0000.04720.87
5.5.260.0070.05320.69
5.5.250.0000.06720.62
5.5.240.0100.06720.24
5.4.450.0600.05719.56
5.4.440.0730.06319.46
5.4.430.0700.05719.17
5.4.420.0570.06019.57
5.4.410.0500.05319.56
5.4.400.0670.03718.96
5.4.390.0730.05018.85
5.4.380.0570.06019.28
5.4.370.0700.06019.14
5.4.360.0770.06319.29
5.4.350.0830.06719.26
5.4.340.0630.05719.22
5.4.320.0530.05318.84
5.4.310.0400.06319.26
5.4.300.0600.05019.25
5.4.290.0530.05719.12
5.4.280.0530.06019.25
5.4.270.0530.05719.29
5.4.260.0730.05719.29
5.4.250.0570.06019.35
5.4.240.1000.07319.29
5.4.230.0670.05019.15
5.4.220.0670.04719.27
5.4.210.0870.04018.98
5.4.200.0830.05016.77
5.4.190.0730.05018.97
5.4.180.0470.06319.09
5.4.170.0770.06018.98
5.4.160.0830.05019.23
5.4.150.1000.07019.14
5.4.140.0800.06716.37
5.4.130.0830.07016.39
5.4.120.0870.06316.43
5.4.110.0730.06316.46
5.4.100.0800.06016.58
5.4.90.0900.05316.57
5.4.80.0970.06016.34
5.4.70.0870.05316.45
5.4.60.0870.04716.45
5.4.50.1000.06316.27
5.4.40.0730.04316.50
5.4.30.0870.05016.49
5.4.20.0700.06016.45
5.4.10.0530.06316.50
5.4.00.0970.06015.87
5.3.290.1070.08014.75
5.3.280.0930.07014.68
5.3.270.0630.06714.60
5.3.260.0900.06014.75
5.3.250.0800.06014.58
5.3.240.0700.07014.58
5.3.230.0600.06714.71
5.3.220.0830.07314.57
5.3.210.0930.07714.49
5.3.200.0870.04714.70
5.3.190.0900.05314.78
5.3.180.0800.05714.54
5.3.170.0700.05014.48
5.3.160.0730.05314.70
5.3.150.0530.06014.63
5.3.140.0570.04714.59
5.3.130.0270.05714.84
5.3.120.0000.06314.76
5.3.110.0700.05014.63
5.3.100.0600.05314.01
5.3.90.0670.04013.98
5.3.80.0630.05714.00
5.3.70.0800.06314.00
5.3.60.0730.04714.13
5.3.50.0270.05313.94
5.3.40.0370.05314.16
5.3.30.0530.06313.99
5.3.20.0370.06013.66
5.3.10.0070.05313.80
5.3.00.0670.05013.85
5.2.170.0530.04311.36
5.2.160.0500.04011.29
5.2.150.0530.03311.14
5.2.140.0330.04311.27
5.2.130.0130.03711.09
5.2.120.0330.04711.05
5.2.110.0500.04711.27
5.2.100.0470.04011.09
5.2.90.0430.04011.24
5.2.80.0530.04311.09
5.2.70.0370.04011.06
5.2.60.0230.03711.02
5.2.50.0170.03310.95
5.2.40.0170.04011.12
5.2.30.0330.05011.00
5.2.20.0330.04311.00
5.2.10.0270.04310.73
5.2.00.0270.04710.65
5.1.60.0130.0279.94
5.1.50.0070.0379.90
5.1.40.0270.0339.89
5.1.30.0400.05010.28
5.1.20.0400.04010.34
5.1.10.0300.04010.07
5.1.00.0370.0339.93
5.0.50.0000.0338.55
5.0.40.0030.0338.50
5.0.30.0230.0378.19
5.0.20.0270.0308.28
5.0.10.0230.0308.42
5.0.00.0130.0438.34
4.4.90.0200.0235.89
4.4.80.0200.0235.92
4.4.70.0130.0235.89
4.4.60.0200.0275.89
4.4.50.0300.0175.88
4.4.40.0070.0405.78
4.4.30.0230.0235.95
4.4.20.0100.0236.03
4.4.10.0200.0235.88
4.4.00.0130.0405.89
4.3.110.0200.0235.80
4.3.100.0230.0205.80
4.3.90.0100.0235.77
4.3.80.0170.0375.70
4.3.70.0100.0235.75
4.3.60.0200.0305.70
4.3.50.0200.0235.75
4.3.40.0200.0405.71
4.3.30.0100.0274.46
4.3.20.0130.0234.51
4.3.10.0130.0234.45
4.3.00.0000.0236.41

preferences:
49.93 ms | 401 KiB | 5 Q