3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj_name = "ls.UFO00"; $qmgr_name = "UFO00"; $const_balise_qmself = "<QMSELF>"; $obj_pattern = ereg_replace("$qmgr_name(^[:alnum:]+$)",$const_balise_qmself,$obj_name); echo $obj_pattern;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PJsUZ
function name:  (null)
number of ops:  13
compiled vars:  !0 = $obj_name, !1 = $qmgr_name, !2 = $const_balise_qmself, !3 = $obj_pattern
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'ls.UFO00'
    3     1        ASSIGN                                                   !1, 'UFO00'
    4     2        ASSIGN                                                   !2, '%3CQMSELF%3E'
    5     3        INIT_FCALL_BY_NAME                                       'ereg_replace'
          4        NOP                                                      
          5        FAST_CONCAT                                      ~7      !1, '%28%5E%5B%3Aalnum%3A%5D%2B%24%29'
          6        SEND_VAL_EX                                              ~7
          7        SEND_VAR_EX                                              !2
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0  $8      
         10        ASSIGN                                                   !3, $8
    6    11        ECHO                                                     !3
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.51 ms | 1384 KiB | 13 Q