3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = "You have been assigned to the job #3 Megastar 4(01923033) 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."; $var['machine']="1Action == machine"; preg_match("/(?<!\d)\d{8}(?!\d)/", strip_tags($subject), $matches); $var['serial']=$matches[0]; print_r($var['machine']); print_r($var['serial']); $regx= "/$matches[0](.*?)\The job is for/s"; $matches = array(); $t = preg_match($regx, $subject, $matches); foreach($matches[1] as $SN_match){ $var['subject']= $matches[1]; //this should be the fault message } print_r($var['subject']);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 36, Position 2 = 41
Branch analysis from position: 36
2 jumps found. (Code = 78) Position 1 = 37, Position 2 = 41
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
filename:       /in/avXgD
function name:  (null)
number of ops:  47
compiled vars:  !0 = $subject, !1 = $var, !2 = $matches, !3 = $regx, !4 = $t, !5 = $SN_match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'You+have+been+assigned+to+the+job+%233+Megastar+4%2801923033%29+%0AOSD+jackpot+needs+adjusting.+%0AThe+job+is+for+Icon%27s+Stadium+Bar+-+GMV1028.+%0AThe+job+machines+are+-+01980414+%2C+-+01923033+%2C+-+07993682+%0AThis+job+has+a+priority+of+Non-Critical+Fault+%2F+Medium.+%0AThe+job+is+scheduled+for+Monday%2C+14+July%2C+2014+at+02%3A29+PM.'
   16     1        ASSIGN_DIM                                               !1, 'machine'
          2        OP_DATA                                                  '1Action+%3D%3D+machine'
   17     3        INIT_FCALL                                               'preg_match'
          4        SEND_VAL                                                 '%2F%28%3F%3C%21%5Cd%29%5Cd%7B8%7D%28%3F%21%5Cd%29%2F'
          5        INIT_FCALL                                               'strip_tags'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $8      
          8        SEND_VAR                                                 $8
          9        SEND_REF                                                 !2
         10        DO_ICALL                                                 
   18    11        FETCH_DIM_R                                      ~11     !2, 0
         12        ASSIGN_DIM                                               !1, 'serial'
         13        OP_DATA                                                  ~11
   19    14        INIT_FCALL                                               'print_r'
         15        FETCH_DIM_R                                      ~12     !1, 'machine'
         16        SEND_VAL                                                 ~12
         17        DO_ICALL                                                 
   20    18        INIT_FCALL                                               'print_r'
         19        FETCH_DIM_R                                      ~14     !1, 'serial'
         20        SEND_VAL                                                 ~14
         21        DO_ICALL                                                 
   24    22        ROPE_INIT                                     3  ~18     '%2F'
         23        FETCH_DIM_R                                      ~16     !2, 0
         24        ROPE_ADD                                      1  ~18     ~18, ~16
         25        ROPE_END                                      2  ~17     ~18, '%28.%2A%3F%29%5CThe+job+is+for%2Fs'
         26        ASSIGN                                                   !3, ~17
   25    27        ASSIGN                                                   !2, <array>
   26    28        INIT_FCALL                                               'preg_match'
         29        SEND_VAR                                                 !3
         30        SEND_VAR                                                 !0
         31        SEND_REF                                                 !2
         32        DO_ICALL                                         $22     
         33        ASSIGN                                                   !4, $22
   27    34        FETCH_DIM_R                                      ~24     !2, 1
         35      > FE_RESET_R                                       $25     ~24, ->41
         36    > > FE_FETCH_R                                               $25, !5, ->41
   29    37    >   FETCH_DIM_R                                      ~27     !2, 1
         38        ASSIGN_DIM                                               !1, 'subject'
         39        OP_DATA                                                  ~27
   27    40      > JMP                                                      ->36
         41    >   FE_FREE                                                  $25
   31    42        INIT_FCALL                                               'print_r'
         43        FETCH_DIM_R                                      ~28     !1, 'subject'
         44        SEND_VAL                                                 ~28
         45        DO_ICALL                                                 
         46      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.32 ms | 1400 KiB | 19 Q