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/Nu53e
function name:  (null)
number of ops:  10
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_OBJ_R                                      ~3      !0, 'name'
          4        FETCH_CLASS                                   0  $4      ~3
          5        NEW                                              $5      $4
          6        DO_FCALL                                      0          
          7        SEND_VAR                                                 $5
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Class X: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.57 ms | 1393 KiB | 15 Q