3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$arr = [1,2,3]; //$arr = array(1,2,3); define("ARR",[a,b,c]); const BLA = [1,2,3]; //var_dump(ARR,BLA); var_dump(ARR,BLA);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LBLUT
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'ARR'
          2        FETCH_CONSTANT                                   ~0      'a'
          3        INIT_ARRAY                                       ~1      ~0
          4        FETCH_CONSTANT                                   ~2      'b'
          5        ADD_ARRAY_ELEMENT                                ~1      ~2
          6        FETCH_CONSTANT                                   ~3      'c'
          7        ADD_ARRAY_ELEMENT                                ~1      ~3
          8        SEND_VAL                                                 ~1
          9        DO_ICALL                                                 
    5    10        DECLARE_CONST                                            'BLA', <array>
    7    11        INIT_FCALL                                               'var_dump'
         12        FETCH_CONSTANT                                   ~5      'ARR'
         13        SEND_VAL                                                 ~5
         14        FETCH_CONSTANT                                   ~6      'BLA'
         15        SEND_VAL                                                 ~6
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.96 ms | 1394 KiB | 17 Q