3v4l.org

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

Class a: [no user functions]
Class b: [no user functions]
Class c: [no user functions]
Class foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.73 ms | 1394 KiB | 15 Q