3v4l.org

run code in 300+ PHP versions simultaneously
<?php define(myvalue, "10"); $myarray[10] = "Dog"; $myarray[] = "Human"; $myarray["myvalue"] = "Cat"; $myarray["Dog"] = "Cat"; print "O valor é: "; print $myarray[myvalue]."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/80Ppf
function name:  (null)
number of ops:  19
compiled vars:  !0 = $myarray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        FETCH_CONSTANT                                   ~1      'myvalue'
          2        SEND_VAL                                                 ~1
          3        SEND_VAL                                                 '10'
          4        DO_ICALL                                                 
    3     5        ASSIGN_DIM                                               !0, 10
          6        OP_DATA                                                  'Dog'
    4     7        ASSIGN_DIM                                               !0
          8        OP_DATA                                                  'Human'
    5     9        ASSIGN_DIM                                               !0, 'myvalue'
         10        OP_DATA                                                  'Cat'
    6    11        ASSIGN_DIM                                               !0, 'Dog'
         12        OP_DATA                                                  'Cat'
    8    13        ECHO                                                     'O+valor+%C3%A9%3A+'
    9    14        FETCH_CONSTANT                                   ~7      'myvalue'
         15        FETCH_DIM_R                                      ~8      !0, ~7
         16        CONCAT                                           ~9      ~8, '%0A'
         17        ECHO                                                     ~9
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.76 ms | 1394 KiB | 15 Q