3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('Zfoo', 'abc' /*, true */); define('Zbar', ZFOO); echo Zfoo; echo ZFOO; echo Zbar;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8EXbU
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'Zfoo'
          2        SEND_VAL                                                 'abc'
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'Zbar'
          6        FETCH_CONSTANT                                   ~1      'ZFOO'
          7        SEND_VAL                                                 ~1
          8        DO_ICALL                                                 
    5     9        FETCH_CONSTANT                                   ~3      'Zfoo'
         10        ECHO                                                     ~3
    6    11        FETCH_CONSTANT                                   ~4      'ZFOO'
         12        ECHO                                                     ~4
    7    13        FETCH_CONSTANT                                   ~5      'Zbar'
         14        ECHO                                                     ~5
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.08 ms | 1394 KiB | 15 Q