3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.74 ms | 1395 KiB | 17 Q