3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private function __invoke() { echo "a"; }};//function() {}; $a = new A; var_dump(is_object($a)); $a(); exit; function a($a) { } $b = 3; a($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/4Y4gD
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        INIT_FCALL                                               'var_dump'
          4        TYPE_CHECK                                  256  ~5      !0
          5        SEND_VAL                                                 ~5
          6        DO_ICALL                                                 
    5     7        INIT_DYNAMIC_CALL                                        !0
          8        DO_FCALL                                      0          
    6     9      > EXIT                                                     
    9    10*       ASSIGN                                                   !1, 3
   10    11*       INIT_FCALL                                               'a'
         12*       SEND_VAR                                                 !1
         13*       DO_FCALL                                      0          
         14*     > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4Y4gD
function name:  a
number of ops:  2
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1      > RETURN                                                   null

End of function a

Class A:
Function __invoke:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4Y4gD
function name:  __invoke
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'a'
          1      > RETURN                                                   null

End of function __invoke

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162 ms | 943 KiB | 17 Q