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; } function b() { a(); 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/3HT8q
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   INIT_FCALL                                               'b'
          1        DO_FCALL                                      0          
   20     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/3HT8q
function name:  a
number of ops:  4
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      > 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/3HT8q
function name:  b
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'a'
          1        DO_FCALL                                      0          
   17     2        INIT_FCALL                                               'a'
          3        DO_FCALL                                      0          
   18     4      > 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/3HT8q
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/3HT8q
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:
153.83 ms | 1399 KiB | 16 Q