3v4l.org

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

Class X: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.69 ms | 1394 KiB | 15 Q