3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '/documentLibrary/work/marketingProcess/BusinessMarketing/Design/Images/02_Product_Images/04_SHORT-RANGE/NINA/01_NINA-B1/source_WEB'; print_r(dirname($s)); $a = explode(DIRECTORY_SEPARATOR, dirname($s)); print_r($a); echo array_pop($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vmSGs
function name:  (null)
number of ops:  23
compiled vars:  !0 = $s, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2FdocumentLibrary%2Fwork%2FmarketingProcess%2FBusinessMarketing%2FDesign%2FImages%2F02_Product_Images%2F04_SHORT-RANGE%2FNINA%2F01_NINA-B1%2Fsource_WEB'
    5     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'dirname'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '%2F'
          9        INIT_FCALL                                               'dirname'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                         $6      
         14        ASSIGN                                                   !1, $6
    8    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
   10    18        INIT_FCALL                                               'array_pop'
         19        SEND_REF                                                 !1
         20        DO_ICALL                                         $9      
         21        ECHO                                                     $9
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.51 ms | 1395 KiB | 21 Q