3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = 'CFE 2012 DECL INITIAL.pdf'; $extension = 'pdf'; $name = substr($name, 0, (strlen($name)-strlen($extension))); var_dump($name);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ASndR
function name:  (null)
number of ops:  15
compiled vars:  !0 = $name, !1 = $extension
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'CFE+2012+DECL+INITIAL.pdf'
    4     1        ASSIGN                                                   !1, 'pdf'
    7     2        INIT_FCALL                                               'substr'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 0
          5        STRLEN                                           ~4      !0
          6        STRLEN                                           ~5      !1
          7        SUB                                              ~6      ~4, ~5
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !0, $7
   10    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.58 ms | 1394 KiB | 17 Q