3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public $a; public $b; public function __construct($a, $b) { $this->a = $a; $this->b = $b; } public function doSomethingWithA() { /**/ } public function doSomethingWithB() { /**/ } } $c = new C("foo", null); assert($c->a === "foo");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NoTfG
function name:  (null)
number of ops:  13
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'C'
          1        SEND_VAL_EX                                              'foo'
          2        SEND_VAL_EX                                              null
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   16     5        ASSERT_CHECK                                             
          6        INIT_FCALL                                               'assert'
          7        FETCH_OBJ_R                                      ~4      !0, 'a'
          8        IS_IDENTICAL                                     ~5      ~4, 'foo'
          9        SEND_VAL                                                 ~5
         10        SEND_VAL                                                 'assert%28%24c-%3Ea+%3D%3D%3D+%27foo%27%29'
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

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

End of function __construct

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

End of function dosomethingwitha

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

End of function dosomethingwithb

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.75 ms | 1396 KiB | 15 Q