3v4l.org

run code in 300+ PHP versions simultaneously
<?php eval('namespace y; function x() { echo 2; }'); use function y\x; $a = x(...); echo 1; $a();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4lAUT
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INCLUDE_OR_EVAL                                          'namespace+y%3B+function+x%28%29+%7B+echo+2%3B+%7D', EVAL
    7     1        INIT_FCALL_BY_NAME                                       'y%5Cx'
          2        ZEND_CALLABLE_CONVERT                            ~2      
          3        ASSIGN                                                   !0, ~2
    9     4        ECHO                                                     1
   11     5        INIT_DYNAMIC_CALL                                        !0
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.82 ms | 1000 KiB | 13 Q