3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = 'http://apache/www.posters.cz/js/default.js'; $stuff = ""; if(strpos($path, 'http://')) { echo "true"; $stuff = explode('/', $path); } var_dump($stuff);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/m9dHl
function name:  (null)
number of ops:  17
compiled vars:  !0 = $path, !1 = $stuff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fapache%2Fwww.posters.cz%2Fjs%2Fdefault.js'
    3     1        ASSIGN                                                   !1, ''
    4     2        INIT_FCALL                                               'strpos'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'http%3A%2F%2F'
          5        DO_ICALL                                         $4      
          6      > JMPZ                                                     $4, ->13
    5     7    >   ECHO                                                     'true'
    6     8        INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '%2F'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !1, $5
    8    13    >   INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.21 ms | 1394 KiB | 19 Q