3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'aa'; if(substr($str, 0, 3) == pack("CCC", 0xef, 0xbb)) { $str = substr($str, 3); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/E4iMM
function name:  (null)
number of ops:  19
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'aa'
    4     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 3
          5        DO_ICALL                                         $2      
          6        INIT_FCALL                                               'pack'
          7        SEND_VAL                                                 'CCC'
          8        SEND_VAL                                                 239
          9        SEND_VAL                                                 187
         10        DO_ICALL                                         $3      
         11        IS_EQUAL                                                 $2, $3
         12      > JMPZ                                                     ~4, ->18
    6    13    >   INIT_FCALL                                               'substr'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 3
         16        DO_ICALL                                         $5      
         17        ASSIGN                                                   !0, $5
    7    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.34 ms | 1394 KiB | 17 Q