3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = "M14910_20130831_120000_3Q13_revenue.txt.gz"; $filenamelength = length($name); echo substr($name, 0, ($filenamelength - 3)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VTVct
function name:  (null)
number of ops:  13
compiled vars:  !0 = $name, !1 = $filenamelength
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'M14910_20130831_120000_3Q13_revenue.txt.gz'
    3     1        INIT_FCALL_BY_NAME                                       'length'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !1, $3
    4     5        INIT_FCALL                                               'substr'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 0
          8        SUB                                              ~5      !1, 3
          9        SEND_VAL                                                 ~5
         10        DO_ICALL                                         $6      
         11        ECHO                                                     $6
    5    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.76 ms | 1398 KiB | 15 Q