3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = ".........12129018 - ZQH X Bop. Hrtepou 50 flerpoUrroXn ........01983413 - 0E000PA E KapaoAn Anpn-rPou 21 EAArivtg .....................................................09007121 - MAPIA KapaoAri Arpn-rptou 21 Elanvolo .. 12135589 - MAPIA E ...............................#12............You have been assigned to the job #3 Megastar 4(01923033) #4 MS Money(01980414) #6 Kings Coins Golden Relics(07993682) OSD jackpot needs adjusting. The job is for Icon's Stadium Bar - GMV1028. The job machines are - 01980414 , - 01923033 , - 07993682 This job has a priority of Non-Critical Fault / Medium. The job is scheduled for Monday, 14 July, 2014 at 02:29 PM. ........... 2109643887 - MAPIA 0 loucrrivou 8 HX.toOrran ..............2109914534 AIPITAKHE APTEMIOE n Avrtnopou 22 Reptcrrept ....._.........._......._................6977440896 , -10AN."; preg_match_all("/(?<!\d)\d{8}(?!\d)/", $text, $matches); $regex = $matches & ".*?The job is for"; preg_match_all("/$regex/", $text, $matches2); print_r($matches2[0]);
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught TypeError: Unsupported operand types: array & string in /in/72na0:11 Stack trace: #0 {main} thrown in /in/72na0 on line 11
Process exited with code 255.
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: A non-numeric value encountered in /in/72na0 on line 11 Array ( [0] => 0 [1] => 0 [2] => 0 [3] => 0 [4] => 0 [5] => 0 [6] => 0 [7] => 0 [8] => 0 [9] => 0 [10] => 0 [11] => 0 [12] => 0 [13] => 0 [14] => 0 [15] => 0 [16] => 0 [17] => 0 [18] => 0 [19] => 0 [20] => 0 [21] => 0 [22] => 0 [23] => 0 [24] => 0 [25] => 0 [26] => 0 [27] => 0 )
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20
Array ( [0] => 0 [1] => 0 [2] => 0 [3] => 0 [4] => 0 [5] => 0 [6] => 0 [7] => 0 [8] => 0 [9] => 0 [10] => 0 [11] => 0 [12] => 0 [13] => 0 [14] => 0 [15] => 0 [16] => 0 [17] => 0 [18] => 0 [19] => 0 [20] => 0 [21] => 0 [22] => 0 [23] => 0 [24] => 0 [25] => 0 [26] => 0 [27] => 0 )

preferences:
245.71 ms | 404 KiB | 342 Q