3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file=basename($_SERVER[PHP_SELF]); echo $file; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5Od6O
function name:  (null)
number of ops:  9
compiled vars:  !0 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'basename'
          1        FETCH_CONSTANT                                   ~2      'PHP_SELF'
          2        FETCH_R                      global              ~1      '_SERVER'
          3        FETCH_DIM_R                                      ~3      ~1, ~2
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
    3     7        ECHO                                                     !0
    5     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.02 ms | 1394 KiB | 15 Q