3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = '/opt/home/plusdemarche/pro/fichiers/cron/offres/CDiscount/Global/Fichiers/PackageMAJOffres/32/Content/'; echo count(explode('/',$t)); echo dirname($t);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nuZ4C
function name:  (null)
number of ops:  12
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2Fopt%2Fhome%2Fplusdemarche%2Fpro%2Ffichiers%2Fcron%2Foffres%2FCDiscount%2FGlobal%2FFichiers%2FPackageMAJOffres%2F32%2FContent%2F'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        COUNT                                            ~3      $2
          6        ECHO                                                     ~3
    4     7        INIT_FCALL                                               'dirname'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        ECHO                                                     $4
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.14 ms | 1385 KiB | 17 Q