3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Toto { function titi() { echo 'Foo'; } } for ( $i = 0; $i < 100; $i++) { $toto = new Toto; $toto->titi(); echo PHP_EOL; }
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/ZFHcR
function name:  (null)
number of ops:  12
compiled vars:  !0 = $i, !1 = $toto
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->9
   10     2    >   NEW                                              $3      'Toto'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
   11     5        INIT_METHOD_CALL                                         !1, 'titi'
          6        DO_FCALL                                      0          
   12     7        ECHO                                                     '%0A'
    9     8        PRE_INC                                                  !0
          9    >   IS_SMALLER                                               !0, 100
         10      > JMPNZ                                                    ~8, ->2
   13    11    > > RETURN                                                   1

Class Toto:
Function titi:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZFHcR
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:
145.96 ms | 1393 KiB | 13 Q