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."; //$subject = str_replace( '#', '', $subject ); mysql_real_escape_string($subject); function safe($value){ return mysql_real_escape_string($value); } $subject = safe($subject); print_r($subject); $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']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7kEoN
function name:  (null)
number of ops:  33
compiled vars:  !0 = $subject, !1 = $var, !2 = $matches
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.'
   10     1        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
   20     4        INIT_FCALL                                               'safe'
          5        SEND_VAR                                                 !0
          6        DO_FCALL                                      0  $5      
          7        ASSIGN                                                   !0, $5
   23     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
   31    11        ASSIGN_DIM                                               !1, 'machine'
         12        OP_DATA                                                  '1Action+%3D%3D+machine'
   32    13        INIT_FCALL                                               'preg_match'
         14        SEND_VAL                                                 '%2F%28%3F%3C%21%5Cd%29%5Cd%7B8%7D%28%3F%21%5Cd%29%2F'
         15        INIT_FCALL                                               'strip_tags'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $9      
         18        SEND_VAR                                                 $9
         19        SEND_REF                                                 !2
         20        DO_ICALL                                                 
   33    21        FETCH_DIM_R                                      ~12     !2, 0
         22        ASSIGN_DIM                                               !1, 'serial'
         23        OP_DATA                                                  ~12
   34    24        INIT_FCALL                                               'print_r'
         25        FETCH_DIM_R                                      ~13     !1, 'machine'
         26        SEND_VAL                                                 ~13
         27        DO_ICALL                                                 
   35    28        INIT_FCALL                                               'print_r'
         29        FETCH_DIM_R                                      ~15     !1, 'serial'
         30        SEND_VAL                                                 ~15
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Function safe:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7kEoN
function name:  safe
number of ops:  6
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
   15     1        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $1      
          4      > RETURN                                                   $1
   16     5*     > RETURN                                                   null

End of function safe

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.46 ms | 1394 KiB | 20 Q