3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $bom = pack('H*','EFBBBF'); echo $text = preg_replace("/^$bom/", '', 'gf');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LVmYH
function name:  (null)
number of ops:  17
compiled vars:  !0 = $bom, !1 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'pack'
          1        SEND_VAL                                                 'H%2A'
          2        SEND_VAL                                                 'EFBBBF'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                           ~3      !0, $2
          5        ECHO                                                     ~3
    3     6        INIT_FCALL                                               'preg_replace'
          7        ROPE_INIT                                     3  ~5      '%2F%5E'
          8        ROPE_ADD                                      1  ~5      ~5, !0
          9        ROPE_END                                      2  ~4      ~5, '%2F'
         10        SEND_VAL                                                 ~4
         11        SEND_VAL                                                 ''
         12        SEND_VAL                                                 'gf'
         13        DO_ICALL                                         $7      
         14        ASSIGN                                           ~8      !1, $7
         15        ECHO                                                     ~8
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.87 ms | 1394 KiB | 17 Q