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]); $regx2= "/The job is for (.*?)\-/s"; $matches2 = array(); $t = preg_match($regx2, $text, $matches2); print_r($matches2[1]); preg_replace('/#/', $text, $string); print_r($string[1]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SVEg7
function name:  (null)
number of ops:  39
compiled vars:  !0 = $text, !1 = $sn, !2 = $regx, !3 = $matches, !4 = $t, !5 = $regx2, !6 = $matches2, !7 = $string
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'
   10     2        ROPE_INIT                                     3  ~11     '%2F'
          3        ROPE_ADD                                      1  ~11     ~11, !1
          4        ROPE_END                                      2  ~10     ~11, '%28.%2A%3F%29%5CThe+job+is+for%2Fs'
          5        ASSIGN                                                   !2, ~10
   14     6        ASSIGN                                                   !3, <array>
   15     7        INIT_FCALL                                               'preg_match'
          8        SEND_VAR                                                 !2
          9        SEND_VAR                                                 !0
         10        SEND_REF                                                 !3
         11        DO_ICALL                                         $15     
         12        ASSIGN                                                   !4, $15
   16    13        INIT_FCALL                                               'print_r'
         14        FETCH_DIM_R                                      ~17     !3, 1
         15        SEND_VAL                                                 ~17
         16        DO_ICALL                                                 
   18    17        ASSIGN                                                   !5, '%2FThe+job+is+for+%28.%2A%3F%29%5C-%2Fs'
   20    18        ASSIGN                                                   !6, <array>
   21    19        INIT_FCALL                                               'preg_match'
         20        SEND_VAR                                                 !5
         21        SEND_VAR                                                 !0
         22        SEND_REF                                                 !6
         23        DO_ICALL                                         $21     
         24        ASSIGN                                                   !4, $21
   22    25        INIT_FCALL                                               'print_r'
         26        FETCH_DIM_R                                      ~23     !6, 1
         27        SEND_VAL                                                 ~23
         28        DO_ICALL                                                 
   26    29        INIT_FCALL                                               'preg_replace'
         30        SEND_VAL                                                 '%2F%23%2F'
         31        SEND_VAR                                                 !0
         32        SEND_VAR                                                 !7
         33        DO_ICALL                                                 
   27    34        INIT_FCALL                                               'print_r'
         35        FETCH_DIM_R                                      ~26     !7, 1
         36        SEND_VAL                                                 ~26
         37        DO_ICALL                                                 
         38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.32 ms | 1400 KiB | 19 Q