3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{ public $n; function __construct($num) { $this->n = 3 * $num; var_dump($this); } } $t = new Test(4);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AX1eM
function name:  (null)
number of ops:  5
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'Test'
          1        SEND_VAL_EX                                              4
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
          4      > RETURN                                                   1

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

End of function __construct

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.67 ms | 1394 KiB | 15 Q