3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($x) { var_dump($x); var_dump($x()); return $x === $x(); } var_dump(foo(call_user_func(function(){})));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e2Yeq
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'foo'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fe2Yeq%3A10%240'
          3        INIT_USER_CALL                                0          'call_user_func', ~0
          4        DO_FCALL                                      0  $1      
          5        SEND_VAR                                                 $1
          6        DO_FCALL                                      0  $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e2Yeq
function name:  foo
number of ops:  14
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    6     4        INIT_FCALL                                               'var_dump'
          5        INIT_DYNAMIC_CALL                                        !0
          6        DO_FCALL                                      0  $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
    7     9        INIT_DYNAMIC_CALL                                        !0
         10        DO_FCALL                                      0  $4      
         11        IS_IDENTICAL                                     ~5      !0, $4
         12      > RETURN                                                   ~5
    8    13*     > RETURN                                                   null

End of function foo

Function %00%7Bclosure%7D%2Fin%2Fe2Yeq%3A10%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e2Yeq
function name:  {closure}
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fe2Yeq%3A10%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.63 ms | 1399 KiB | 16 Q