3v4l.org

run code in 300+ PHP versions simultaneously
<?php eval("$foo = function() { echo 'hello!'; };"); $ref = new ReflectionFunction($foo); echo $ref;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FLr77
function name:  (null)
number of ops:  9
compiled vars:  !0 = $foo, !1 = $ref
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NOP                                                      
          1        FAST_CONCAT                                      ~2      !0, '+%3D+function%28%29+%7B%0A++++echo+%27hello%21%27%3B%0A%7D%3B'
          2        INCLUDE_OR_EVAL                                          ~2, EVAL
    7     3        NEW                                              $4      'ReflectionFunction'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $4
    8     7        ECHO                                                     !1
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.82 ms | 1392 KiB | 13 Q