3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
279.02 ms | 1395 KiB | 22 Q