3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Disney { public $cartoon; function __construct($cartoon) { $this->cartoon = $cartoon; } } $disney = new Disney("The Beauty and The Beast"); $waltDisney = $disney; $waltDisney->cartoon = "Pinocchio"; echo $disney->cartoon;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bI8FR
function name:  (null)
number of ops:  10
compiled vars:  !0 = $disney, !1 = $waltDisney
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $2      'Disney'
          1        SEND_VAL_EX                                              'The+Beauty+and+The+Beast'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   13     4        ASSIGN                                                   !1, !0
   14     5        ASSIGN_OBJ                                               !1, 'cartoon'
          6        OP_DATA                                                  'Pinocchio'
   15     7        FETCH_OBJ_R                                      ~7      !0, 'cartoon'
          8        ECHO                                                     ~7
          9      > RETURN                                                   1

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

End of function __construct

End of class Disney.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.45 ms | 1393 KiB | 13 Q