3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 's3://foo/bar/x/y/z'; print_r( explode('/', str_replace('s3://', '', $x), 2) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vbJgf
function name:  (null)
number of ops:  15
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 's3%3A%2F%2Ffoo%2Fbar%2Fx%2Fy%2Fz'
    4     1        INIT_FCALL                                               'print_r'
    5     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%2F'
          4        INIT_FCALL                                               'str_replace'
          5        SEND_VAL                                                 's3%3A%2F%2F'
          6        SEND_VAL                                                 ''
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
         10        SEND_VAL                                                 2
         11        DO_ICALL                                         $3      
         12        SEND_VAR                                                 $3
         13        DO_ICALL                                                 
    6    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.2 ms | 1394 KiB | 19 Q