3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { function aMethod() { return "Hello"; } } for ($i=0;$i<100000;$i++) { $foo = new MyClass (); $foo->aMethod(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 2
Branch analysis from position: 10
Branch analysis from position: 2
filename:       /in/PYjDY
function name:  (null)
number of ops:  11
compiled vars:  !0 = $i, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->8
   10     2    >   NEW                                              $3      'MyClass'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
   11     5        INIT_METHOD_CALL                                         !1, 'aMethod'
          6        DO_FCALL                                      0          
    9     7        PRE_INC                                                  !0
          8    >   IS_SMALLER                                               !0, 100000
          9      > JMPNZ                                                    ~8, ->2
   12    10    > > RETURN                                                   1

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

End of function amethod

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.96 ms | 1393 KiB | 13 Q