3v4l.org

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

Class Twelve: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.13 ms | 1394 KiB | 17 Q