3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = 'http://apache/www.posters.cz/js/default.js'; $stuff = ""; var_dump(strpos($path, 'http://')); if(strpos($path, 'http://') !== false) { echo "true"; $stuff = explode('/', $path); } var_dump($stuff);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 21
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/HsE0r
function name:  (null)
number of ops:  25
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, ''
    5     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'strpos'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 'http%3A%2F%2F'
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'strpos'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 'http%3A%2F%2F'
         12        DO_ICALL                                         $6      
         13        TYPE_CHECK                                  1018          $6
         14      > JMPZ                                                     ~7, ->21
    8    15    >   ECHO                                                     'true'
    9    16        INIT_FCALL                                               'explode'
         17        SEND_VAL                                                 '%2F'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $8      
         20        ASSIGN                                                   !1, $8
   11    21    >   INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.92 ms | 1395 KiB | 19 Q