3v4l.org

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

Class Goofy: [no user functions]
Class Woofy:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ArRFm
function name:  __construct
number of ops:  4
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   11     1        ASSIGN_OBJ                                               'b'
          2        OP_DATA                                                  !0
   12     3      > RETURN                                                   null

End of function __construct

End of class Woofy.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.54 ms | 1394 KiB | 13 Q