3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dir = preg_replace( '@\K\(\d++\) : eval\(\)\'d code\z@', '', eval('return dirname(__FILE__);') ); echo $dir;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LTHOm
function name:  (null)
number of ops:  9
compiled vars:  !0 = $dir
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'preg_replace'
    5     1        SEND_VAL                                                 '%40%5CK%5C%28%5Cd%2B%2B%5C%29+%3A+eval%5C%28%5C%29%27d+code%5Cz%40'
    6     2        SEND_VAL                                                 ''
    7     3        INCLUDE_OR_EVAL                                  $1      'return+dirname%28__FILE__%29%3B', EVAL
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                         $2      
    4     6        ASSIGN                                                   !0, $2
   10     7        ECHO                                                     !0
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.15 ms | 1393 KiB | 15 Q