3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'echo __FILE__;'; $func = eval('return function() { '.$str.'; };'); $func();var_dump($func);exit;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/2vYTl
function name:  (null)
number of ops:  12
compiled vars:  !0 = $str, !1 = $func
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'echo+__FILE__%3B'
    4     1        CONCAT                                           ~3      'return+function%28%29+%7B+', !0
          2        CONCAT                                           ~4      ~3, '%3B+%7D%3B'
          3        INCLUDE_OR_EVAL                                  $5      ~4, EVAL
          4        ASSIGN                                                   !1, $5
    5     5        INIT_DYNAMIC_CALL                                        !1
          6        DO_FCALL                                      0          
          7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > EXIT                                                     
         11*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.43 ms | 1398 KiB | 15 Q