3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
242.3 ms | 2620 KiB | 14 Q