3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
211.89 ms | 1399 KiB | 25 Q