3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.04 ms | 1394 KiB | 15 Q