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/VT1Gj
function name:  (null)
number of ops:  28
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        SEND_VAR                                                 !1
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
    6    12        INIT_FCALL_BY_NAME                                       'substring'
         13        SEND_VAL_EX                                              0
         14        FETCH_CONSTANT                                   ~9      'ndot'
         15        SEND_VAL_EX                                              ~9
         16        DO_FCALL                                      0  $10     
         17        CONCAT                                           ~11     !0, $10
         18        ASSIGN                                                   !3, ~11
    7    19        INIT_FCALL                                               'str_replace'
         20        SEND_VAL                                                 '.'
         21        SEND_VAL                                                 ''
         22        SEND_VAR                                                 !3
         23        DO_ICALL                                         $13     
         24        ASSIGN                                                   !3, $13
    8    25        ADD                                              ~15     !3, !2
         26        ASSIGN                                                   !0, ~15
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.39 ms | 1395 KiB | 19 Q