3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file_name = "PL1134-38 VSD hangtag order form 9.25-.xls"; $ndot = strrpos($file_name,"."); $extension = substr($file_name,1,ndot); $prefix = $file_name.substring(0,ndot); $prefix = str_replace(".","",$prefix); $file_name = $prefix + $extension;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GaJGE
function name:  (null)
number of ops:  29
compiled vars:  !0 = $file_name, !1 = $ndot, !2 = $extension, !3 = $prefix
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'PL1134-38+VSD+hangtag+order+form+9.25-.xls'
    4     1        INIT_FCALL                                               'strrpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '.'
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    5     6        INIT_FCALL                                               'substr'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 1
          9        FETCH_CONSTANT                                   ~7      'ndot'
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !2, $8
    6    13        INIT_FCALL_BY_NAME                                       'substring'
         14        SEND_VAL_EX                                              0
         15        FETCH_CONSTANT                                   ~10     'ndot'
         16        SEND_VAL_EX                                              ~10
         17        DO_FCALL                                      0  $11     
         18        CONCAT                                           ~12     !0, $11
         19        ASSIGN                                                   !3, ~12
    7    20        INIT_FCALL                                               'str_replace'
         21        SEND_VAL                                                 '.'
         22        SEND_VAL                                                 ''
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                         $14     
         25        ASSIGN                                                   !3, $14
    8    26        ADD                                              ~16     !3, !2
         27        ASSIGN                                                   !0, ~16
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.23 ms | 1395 KiB | 19 Q