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/frKS5
function name:  (null)
number of ops:  7
compiled vars:  !0 = $ref, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INCLUDE_OR_EVAL                                          '%24foo+%3D+function%28%29+%7B%0A++++echo+%27hello%21%27%3B%0A%7D%3B', EVAL
    7     1        NEW                                              $3      'ReflectionFunction'
          2        SEND_VAR_EX                                              !1
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $3
    8     5        ECHO                                                     !0
          6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.05 ms | 1392 KiB | 13 Q