3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Goofy { public function __construct($a) { $this->a = $a; } } $a = 10; $goofy = new Goofy($a = 4); echo $a;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8LKZ3
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a, !1 = $goofy
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, 10
   12     1        NEW                                              $3      'Goofy'
          2        ASSIGN                                           ~4      !0, 4
          3        SEND_VAL_EX                                              ~4
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $3
   14     6        ECHO                                                     !0
          7      > RETURN                                                   1

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

End of function __construct

End of class Goofy.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.31 ms | 1393 KiB | 13 Q