3v4l.org

run code in 300+ PHP versions simultaneously
<?php $parts = explode('/', $string); $aIt = []; $path = ''; foreach($parts as $part) { $path .= '/'. $part; $aIt[] = $path ; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/Sbiat
function name:  (null)
number of ops:  16
compiled vars:  !0 = $parts, !1 = $string, !2 = $aIt, !3 = $path, !4 = $part
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '%2F'
          2        SEND_VAR                                                 !1
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !0, $5
    3     5        ASSIGN                                                   !2, <array>
    4     6        ASSIGN                                                   !3, ''
    5     7      > FE_RESET_R                                       $9      !0, ->14
          8    > > FE_FETCH_R                                               $9, !4, ->14
    7     9    >   CONCAT                                           ~10     '%2F', !4
         10        ASSIGN_OP                                     8          !3, ~10
    8    11        ASSIGN_DIM                                               !2
         12        OP_DATA                                                  !3
    5    13      > JMP                                                      ->8
         14    >   FE_FREE                                                  $9
   10    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.64 ms | 1395 KiB | 15 Q