3v4l.org

run code in 500+ PHP versions simultaneously
<?php ini_set('display_errors', 'On'); error_reporting(E_ALL); define('bar', 'foo'); $a = ['foo' => 'Foo!', 'bar' => 'Bar!']; echo 'Defined bar as "', bar, '"', PHP_EOL; echo "Hello, $a[bar]", PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fr30Y
function name:  (null)
number of ops:  23
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'ini_set'
          1        SEND_VAL                                                     'display_errors'
          2        SEND_VAL                                                     'On'
          3        DO_ICALL                                                     
    4     4        INIT_FCALL                                                   'error_reporting'
          5        SEND_VAL                                                     30719
          6        DO_ICALL                                                     
    6     7        INIT_FCALL                                                   'define'
          8        SEND_VAL                                                     'bar'
          9        SEND_VAL                                                     'foo'
         10        DO_ICALL                                                     
    8    11        ASSIGN                                                       !0, <array>
   10    12        ECHO                                                         'Defined+bar+as+%22'
         13        FETCH_CONSTANT                                       ~5      'bar'
         14        ECHO                                                         ~5
         15        ECHO                                                         '%22'
         16        ECHO                                                         '%0A'
   11    17        NOP                                                          
         18        FETCH_DIM_R                                          ~6      !0, 'bar'
         19        FAST_CONCAT                                          ~7      'Hello%2C+', ~6
         20        ECHO                                                         ~7
         21        ECHO                                                         '%0A'
         22      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
141.65 ms | 2127 KiB | 16 Q