3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $key; public function __construct($value) { $this->key = $value; } public function printKey(Foo $b) { print $b->key; } } $x = new Foo(‘AAA’); $x->printKey(new Foo(‘BBB’));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k4YUL
function name:  (null)
number of ops:  13
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $1      'Foo'
          1        FETCH_CONSTANT                                   ~2      '%E2%80%98AAA%E2%80%99'
          2        SEND_VAL_EX                                              ~2
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
    7     5        INIT_METHOD_CALL                                         !0, 'printKey'
          6        NEW                                              $5      'Foo'
          7        FETCH_CONSTANT                                   ~6      '%E2%80%98BBB%E2%80%99'
          8        SEND_VAL_EX                                              ~6
          9        DO_FCALL                                      0          
         10        SEND_VAR_NO_REF_EX                                       $5
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Class Foo:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k4YUL
function name:  __construct
number of ops:  4
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        ASSIGN_OBJ                                               'key'
          2        OP_DATA                                                  !0
          3      > RETURN                                                   null

End of function __construct

Function printkey:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k4YUL
function name:  printKey
number of ops:  4
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        FETCH_OBJ_R                                      ~1      !0, 'key'
          2        ECHO                                                     ~1
          3      > RETURN                                                   null

End of function printkey

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.27 ms | 1398 KiB | 13 Q