3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { function __descruct() { echo "I'm done!"; } } function make_x() { new X(); } for ($i = 0; $i < 10; $i++) { echo "Making X $i\n"; make_x(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 2
Branch analysis from position: 11
Branch analysis from position: 2
filename:       /in/N8Pb6
function name:  (null)
number of ops:  12
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->9
    8     2    >   ROPE_INIT                                     3  ~3      'Making+X+'
          3        ROPE_ADD                                      1  ~3      ~3, !0
          4        ROPE_END                                      2  ~2      ~3, '%0A'
          5        ECHO                                                     ~2
    9     6        INIT_FCALL                                               'make_x'
          7        DO_FCALL                                      0          
    7     8        PRE_INC                                                  !0
          9    >   IS_SMALLER                                               !0, 10
         10      > JMPNZ                                                    ~7, ->2
   10    11    > > RETURN                                                   1

Function make_x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N8Pb6
function name:  make_x
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $0      'X'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
          3      > RETURN                                                   null

End of function make_x

Class X:
Function __descruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N8Pb6
function name:  __descruct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'I%27m+done%21'
          1      > RETURN                                                   null

End of function __descruct

End of class X.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.19 ms | 1398 KiB | 14 Q