3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Toto { function titi() { echo 'Foo'; } } $totoList = array(); for ( $i = 0; $i < 100; $i++) { $totoList[] = $toto = new Toto; $toto->titi(); echo PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
Branch analysis from position: 3
filename:       /in/pRV87
function name:  (null)
number of ops:  15
compiled vars:  !0 = $totoList, !1 = $i, !2 = $toto
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, <array>
   10     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->12
   11     3    >   NEW                                              $6      'Toto'
          4        DO_FCALL                                      0          
          5        ASSIGN                                           ~8      !2, $6
          6        ASSIGN_DIM                                               !0
          7        OP_DATA                                                  ~8
   12     8        INIT_METHOD_CALL                                         !2, 'titi'
          9        DO_FCALL                                      0          
   13    10        ECHO                                                     '%0A'
   10    11        PRE_INC                                                  !1
         12    >   IS_SMALLER                                               !1, 100
         13      > JMPNZ                                                    ~11, ->3
   14    14    > > RETURN                                                   1

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

End of function titi

End of class Toto.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.78 ms | 1393 KiB | 13 Q