3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<font face="Arial, Helvetica, sans-serif" color="#000099"><strong><font color="#660000">Account Number</font></strong><font color="#660000">: 033<br> <strong>Account Name</strong>: More text here<br>'; echo preg_match('~Account Number:\s*\K\d+~', strip_tags($html), $match) ? $match[0] : 'No Account Number Found';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GsuWK
function name:  (null)
number of ops:  16
compiled vars:  !0 = $html, !1 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cfont+face%3D%22Arial%2C+Helvetica%2C+sans-serif%22+color%3D%22%23000099%22%3E%3Cstrong%3E%3Cfont%0A++++color%3D%22%23660000%22%3EAccount+Number%3C%2Ffont%3E%3C%2Fstrong%3E%3Cfont+color%3D%22%23660000%22%3E%3A+033%3Cbr%3E%0A++++%3Cstrong%3EAccount+Name%3C%2Fstrong%3E%3A+More+text+here%3Cbr%3E'
    7     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%7EAccount+Number%3A%5Cs%2A%5CK%5Cd%2B%7E'
          3        INIT_FCALL                                               'strip_tags'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        SEND_REF                                                 !1
          8        DO_ICALL                                         $4      
          9      > JMPZ                                                     $4, ->13
         10    >   FETCH_DIM_R                                      ~5      !1, 0
         11        QM_ASSIGN                                        ~6      ~5
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~6      'No+Account+Number+Found'
         14    >   ECHO                                                     ~6
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.21 ms | 1000 KiB | 15 Q