3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "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."; $sn ='01923033'; $regx= "/'$sn'(.*?)\The job is for/s'"; print $regx; print " test "; $matches = array(); $t = preg_match($regx, $text, $matches); print_r($matches[1]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dmbDn
function name:  (null)
number of ops:  20
compiled vars:  !0 = $text, !1 = $sn, !2 = $regx, !3 = $matches, !4 = $t
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.'
    9     1        ASSIGN                                                   !1, '01923033'
   11     2        ROPE_INIT                                     3  ~8      '%2F%27'
          3        ROPE_ADD                                      1  ~8      ~8, !1
          4        ROPE_END                                      2  ~7      ~8, '%27%28.%2A%3F%29%5CThe+job+is+for%2Fs%27'
          5        ASSIGN                                                   !2, ~7
   12     6        ECHO                                                     !2
   13     7        ECHO                                                     '+test++++'
   14     8        ASSIGN                                                   !3, <array>
   15     9        INIT_FCALL                                               'preg_match'
         10        SEND_VAR                                                 !2
         11        SEND_VAR                                                 !0
         12        SEND_REF                                                 !3
         13        DO_ICALL                                         $12     
         14        ASSIGN                                                   !4, $12
   16    15        INIT_FCALL                                               'print_r'
         16        FETCH_DIM_R                                      ~14     !3, 1
         17        SEND_VAL                                                 ~14
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.28 ms | 1395 KiB | 17 Q