3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.22 ms | 1395 KiB | 15 Q