3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.12 ms | 1398 KiB | 15 Q