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('ok'); echo $t;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cKhAq
function name:  (null)
number of ops:  6
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'testo'
          1        SEND_VAL_EX                                              'ok'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   16     4        ECHO                                                     !0
          5      > RETURN                                                   1

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

End of function __construct

End of class testo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.49 ms | 1384 KiB | 13 Q