3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.71 ms | 1394 KiB | 19 Q