3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo{ function test($value) { $this->property->isSet = $value; } } $foo = new Foo(); $foo->test(2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9h8Tm
function name:  (null)
number of ops:  7
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_METHOD_CALL                                         !0, 'test'
          4        SEND_VAL_EX                                              2
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class foo:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9h8Tm
function name:  test
number of ops:  5
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        FETCH_OBJ_W                                      $1      'property'
          2        ASSIGN_OBJ                                               $1, 'isSet'
          3        OP_DATA                                                  !0
    9     4      > RETURN                                                   null

End of function test

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.85 ms | 1393 KiB | 13 Q