3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = 'http://apache/www.posters.cz/js/default.js'; $stuff = ""; if(strpos($path, 'http://') !== false) { list($pre, $post) = split('[/.-]', $path); } var_dump($post);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 17
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/usYW5
function name:  (null)
number of ops:  21
compiled vars:  !0 = $path, !1 = $stuff, !2 = $pre, !3 = $post
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                                               'strpos'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'http%3A%2F%2F'
          5        DO_ICALL                                         $6      
          6        TYPE_CHECK                                  1018          $6
          7      > JMPZ                                                     ~7, ->17
    6     8    >   INIT_FCALL_BY_NAME                                       'split'
          9        SEND_VAL_EX                                              '%5B%2F.-%5D'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0  $8      
         12        FETCH_LIST_R                                     $9      $8, 0
         13        ASSIGN                                                   !2, $9
         14        FETCH_LIST_R                                     $11     $8, 1
         15        ASSIGN                                                   !3, $11
         16        FREE                                                     $8
    9    17    >   INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.71 ms | 1395 KiB | 17 Q