3v4l.org

run code in 300+ PHP versions simultaneously
<?php class z{ function __construct() { echo "Hi!\n"; } function __destruct() { echo "Bye!\n"; } } function a() { $z = new z; echo "?\n"; } function b() { call_user_func_array('a', array()); a(); } b(); echo "Over and out.\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Pcclu
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_FCALL                                               'b'
          1        DO_FCALL                                      0          
   21     2        ECHO                                                     'Over+and+out.%0A'
          3      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Pcclu
function name:  a
number of ops:  5
compiled vars:  !0 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'z'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   13     3        ECHO                                                     '%3F%0A'
   14     4      > RETURN                                                   null

End of function a

Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Pcclu
function name:  b
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                               'a'
          1        SEND_ARRAY                                               <array>
          2        CHECK_UNDEF_ARGS                                         
          3        DO_FCALL                                      0          
   18     4        INIT_FCALL                                               'a'
          5        DO_FCALL                                      0          
   19     6      > RETURN                                                   null

End of function b

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

End of function __construct

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

End of function __destruct

End of class z.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.9 ms | 1399 KiB | 16 Q