3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '/admin/dupa/asdff/dupa'; $b = explode('/', $a); if ($b[1] == 'admin') { var_dump('asdf'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/Up2sn
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2Fadmin%2Fdupa%2Fasdff%2Fdupa'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    5     6        FETCH_DIM_R                                      ~5      !1, 1
          7        IS_EQUAL                                                 ~5, 'admin'
          8      > JMPZ                                                     ~6, ->12
    6     9    >   INIT_FCALL                                               'var_dump'
         10        SEND_VAL                                                 'asdf'
         11        DO_ICALL                                                 
    7    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.14 ms | 1398 KiB | 17 Q