3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FooBar { protected $foo; function foo() { return $this->foo; } static function bar($value) { return true; } } $foobar = new FooBar(); $bar = FooBar::bar($foobar->foo()['bar']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Popce
function name:  (null)
number of ops:  11
compiled vars:  !0 = $foobar, !1 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $2      'FooBar'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   15     3        INIT_STATIC_METHOD_CALL                                  'FooBar', 'bar'
          4        INIT_METHOD_CALL                                         !0, 'foo'
          5        DO_FCALL                                      0  $5      
          6        FETCH_DIM_R                                      ~6      $5, 'bar'
          7        SEND_VAL                                                 ~6
          8        DO_FCALL                                      0  $7      
          9        ASSIGN                                                   !1, $7
         10      > RETURN                                                   1

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

End of function foo

Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Popce
function name:  bar
number of ops:  3
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1      > RETURN                                                   <true>
   11     2*     > RETURN                                                   null

End of function bar

End of class FooBar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.74 ms | 1394 KiB | 13 Q