3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'abc'; $b = 'blah'; $hashmap = [ $a => 'some value', ]; $hashmap[$b] = 'another value'; print_r($hashmap);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/R3npr
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a, !1 = $b, !2 = $hashmap
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'abc'
    3     1        ASSIGN                                                   !1, 'blah'
    6     2        INIT_ARRAY                                       ~5      'some+value', !0
    5     3        ASSIGN                                                   !2, ~5
    8     4        ASSIGN_DIM                                               !2, !1
          5        OP_DATA                                                  'another+value'
   10     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.82 ms | 1011 KiB | 14 Q