3v4l.org

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

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

End of function __construct

End of class Gregory.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.96 ms | 1384 KiB | 13 Q