3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testo{ public $val='oo'; public function __construct($v){ $this->val = $v; } } // your code goes here $t = new testo(); $a=$t->val='ok'; echo $a ; $tt = new testo('ooooh'); echo $tt ;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ghvdF
function name:  (null)
number of ops:  13
compiled vars:  !0 = $t, !1 = $a, !2 = $tt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $3      'testo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   19     3        ASSIGN_OBJ                                       ~6      !0, 'val'
          4        OP_DATA                                                  'ok'
          5        ASSIGN                                                   !1, ~6
   20     6        ECHO                                                     !1
   22     7        NEW                                              $8      'testo'
          8        SEND_VAL_EX                                              'ooooh'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !2, $8
   23    11        ECHO                                                     !2
         12      > RETURN                                                   1

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

End of function __construct

End of class testo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.72 ms | 1385 KiB | 13 Q