3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $count = 0; public function bar() { if (false) { return; } $this->count++; var_dump($this->count); } } class Bar { public function doSomething() { Foo::bar(); } } (new Bar)->doSomething();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VC0GP
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   NEW                                              $0      'Bar'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'doSomething'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 2
Branch analysis from position: 1
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VC0GP
function name:  bar
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > JMPZ                                                     <false>, ->2
    8     1    > > RETURN                                                   null
   11     2    >   PRE_INC_OBJ                                              'count'
   12     3        INIT_FCALL                                               'var_dump'
          4        FETCH_OBJ_R                                      ~1      'count'
          5        SEND_VAL                                                 ~1
          6        DO_ICALL                                                 
   13     7      > RETURN                                                   null

End of function bar

End of class Foo.

Class Bar:
Function dosomething:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VC0GP
function name:  doSomething
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_STATIC_METHOD_CALL                                  'Foo', 'bar'
          1        DO_FCALL                                      0          
   21     2      > RETURN                                                   null

End of function dosomething

End of class Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.16 ms | 1395 KiB | 15 Q