3v4l.org

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

Class class@anonymous: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.09 ms | 998 KiB | 14 Q