3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_file_extension($file_name) { return substr(strrchr($file_name,'.'),1); } echo get_file_extension('bluassssusdusndnsud.jspd'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2R61P
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'get_file_extension'
          1        SEND_VAL                                                 'bluassssusdusndnsud.jspd'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
    7     4      > RETURN                                                   1

Function get_file_extension:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2R61P
function name:  get_file_extension
number of ops:  11
compiled vars:  !0 = $file_name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'substr'
          2        INIT_FCALL                                               'strrchr'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 '.'
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        SEND_VAL                                                 1
          8        DO_ICALL                                         $2      
          9      > RETURN                                                   $2
    4    10*     > RETURN                                                   null

End of function get_file_extension

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.47 ms | 942 KiB | 19 Q