3v4l.org

run code in 300+ PHP versions simultaneously
<?php class B { const IN = STDIN; const XXX = 10; } var_dump(new B()); class A { private $foo = B::IN; } $a = new A(); $b = clone $a; var_dump($a, $b); unset($a); unset($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YVgQo
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $2      'B'
          2        DO_FCALL                                      0          
          3        SEND_VAR                                                 $2
          4        DO_ICALL                                                 
   14     5        NEW                                              $5      'A'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $5
   15     8        CLONE                                            ~8      !0
          9        ASSIGN                                                   !1, ~8
   17    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
   19    14        UNSET_CV                                                 !0
   20    15        UNSET_CV                                                 !1
         16      > RETURN                                                   1

Class B: [no user functions]
Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.86 ms | 1386 KiB | 15 Q