3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { function bar() {} } $x = new foo; for ($i=0; $i<1e6;$i++) $x->bar();
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 = 5
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 5
Branch analysis from position: 10
Branch analysis from position: 5
filename:       /in/dZdGS
function name:  (null)
number of ops:  11
compiled vars:  !0 = $x, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $2      'foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    7     3        ASSIGN                                                   !1, 0
          4      > JMP                                                      ->8
    8     5    >   INIT_METHOD_CALL                                         !0, 'bar'
          6        DO_FCALL                                      0          
    7     7        PRE_INC                                                  !1
          8    >   IS_SMALLER                                               !1, 1.0e+6
          9      > JMPNZ                                                    ~8, ->5
    8    10    > > RETURN                                                   1

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

End of function bar

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.77 ms | 1394 KiB | 13 Q