3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('PIZZA', 'time'); var_dump(constant('PIZZA')); var_dump(PIZZA); var_dump(constant('PIE')); var_dump(PIE);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FjcXa
function name:  (null)
number of ops:  25
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'PIZZA'
          2        SEND_VAL                                                 'time'
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'constant'
          6        SEND_VAL                                                 'PIZZA'
          7        DO_ICALL                                         $1      
          8        SEND_VAR                                                 $1
          9        DO_ICALL                                                 
    4    10        INIT_FCALL                                               'var_dump'
         11        FETCH_CONSTANT                                   ~3      'PIZZA'
         12        SEND_VAL                                                 ~3
         13        DO_ICALL                                                 
    5    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'constant'
         16        SEND_VAL                                                 'PIE'
         17        DO_ICALL                                         $5      
         18        SEND_VAR                                                 $5
         19        DO_ICALL                                                 
    6    20        INIT_FCALL                                               'var_dump'
         21        FETCH_CONSTANT                                   ~7      'PIE'
         22        SEND_VAL                                                 ~7
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.4 ms | 1395 KiB | 19 Q