3v4l.org

run code in 300+ PHP versions simultaneously
<?php const ABC=8; $a='ABC'; $b='a'; echo constant($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G69fA
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CONST                                            'ABC', 8
    5     1        ASSIGN                                                   !0, 'ABC'
    6     2        ASSIGN                                                   !1, 'a'
    8     3        INIT_FCALL                                               'constant'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ECHO                                                     $4
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.97 ms | 1398 KiB | 15 Q