3v4l.org

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

Class db_update_0001: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.52 ms | 1394 KiB | 15 Q