3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filenameOld = 'PX20170713_103320_2651093_00001.xml'; var_dump(implode(array_slice(explode('_', rtrim(basename($fileToProcess), ".xml" )), 0, 2)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NHOTU
function name:  (null)
number of ops:  24
compiled vars:  !0 = $filenameOld, !1 = $fileToProcess
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'PX20170713_103320_2651093_00001.xml'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'implode'
          3        INIT_FCALL                                               'array_slice'
          4        INIT_FCALL                                               'explode'
          5        SEND_VAL                                                 '_'
          6        INIT_FCALL                                               'rtrim'
          7        INIT_FCALL                                               'basename'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        SEND_VAL                                                 '.xml'
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        SEND_VAL                                                 0
         17        SEND_VAL                                                 2
         18        DO_ICALL                                         $6      
         19        SEND_VAR                                                 $6
         20        DO_ICALL                                         $7      
         21        SEND_VAR                                                 $7
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.77 ms | 1395 KiB | 25 Q