3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $formModelClass = 'SomeClass'; $model = new $formModelClass(); $className = get_class($model); echo "!". $className::CONST;
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/ZYb6S
function name:  (null)
number of ops:  14
compiled vars:  !0 = $formModelClass, !1 = $model, !2 = $className
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN                                                   !0, 'SomeClass'
   3     1        FETCH_CLASS                                 512  :4      !0
         2        NEW                                              $5      :4
         3        DO_FCALL                                      0          
         4        ASSIGN                                                   !1, $5
   4     5        INIT_FCALL                                               'get_class'
         6        SEND_VAR                                                 !1
         7        DO_ICALL                                         $8      
         8        ASSIGN                                                   !2, $8
   5     9        FETCH_CLASS                                 512  :10     !2
        10        FETCH_CONSTANT                                   ~11     $10, 'CONST'
        11        CONCAT                                           ~12     '%21', ~11
        12        ECHO                                                     ~12
        13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0