3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path="home/satish/Desktop/music/Ae Dil Hai Mushkil (2016) Mp3 Songs[SongsMp3.Com]"; $dirs = explode('/',ltrim($path,"/")); for($i=0;$i<count($dirs);$i++) { //echo $dirs[$i]."===>"."$i"; } echo count($dirs);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 12
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 12
Branch analysis from position: 16
Branch analysis from position: 12
filename:       /in/FhF3s
function name:  (null)
number of ops:  19
compiled vars:  !0 = $path, !1 = $dirs, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'home%2Fsatish%2FDesktop%2Fmusic%2FAe+Dil+Hai+Mushkil+%282016%29+Mp3+Songs%5BSongsMp3.Com%5D'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2F'
          3        INIT_FCALL                                               'ltrim'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 '%2F'
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
    4    10        ASSIGN                                                   !2, 0
         11      > JMP                                                      ->13
         12    >   PRE_INC                                                  !2
         13    >   COUNT                                            ~9      !1
         14        IS_SMALLER                                               !2, ~9
         15      > JMPNZ                                                    ~10, ->12
    8    16    >   COUNT                                            ~11     !1
         17        ECHO                                                     ~11
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.59 ms | 1399 KiB | 17 Q