3v4l.org

run code in 300+ PHP versions simultaneously
<?php $clazz = new class { public $foo = null; }; $clazzy = new $clazz(); $clazzy->fooo = "bar"; var_dump($clazz, $clazzy);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/opivb
function name:  (null)
number of ops:  15
compiled vars:  !0 = $clazz, !1 = $clazzy
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_ANON_CLASS                               <true>  
          1        NEW                                              $3      $2
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    7     4        FETCH_CLASS                                   0  $6      !0
          5        NEW                                              $7      $6
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $7
    8     8        ASSIGN_OBJ                                               !1, 'fooo'
          9        OP_DATA                                                  'bar'
   10    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Class class@anonymous: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.84 ms | 1394 KiB | 15 Q