3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = 'meh'; $str2 = 'waff'; echo implode(array(array_keys(array($str1 => $str2))[0], array($str1 => $str2)[array_keys(array($str1 => $str2))[0]]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0Xesh
function name:  (null)
number of ops:  21
compiled vars:  !0 = $str1, !1 = $str2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'meh'
    3     1        ASSIGN                                                   !1, 'waff'
    4     2        INIT_FCALL                                               'implode'
          3        INIT_FCALL                                               'array_keys'
          4        INIT_ARRAY                                       ~4      !1, !0
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                         $5      
          7        FETCH_DIM_R                                      ~6      $5, 0
          8        INIT_ARRAY                                       ~7      ~6
          9        INIT_ARRAY                                       ~8      !1, !0
         10        INIT_FCALL                                               'array_keys'
         11        INIT_ARRAY                                       ~9      !1, !0
         12        SEND_VAL                                                 ~9
         13        DO_ICALL                                         $10     
         14        FETCH_DIM_R                                      ~11     $10, 0
         15        FETCH_DIM_R                                      ~12     ~8, ~11
         16        ADD_ARRAY_ELEMENT                                ~7      ~12
         17        SEND_VAL                                                 ~7
         18        DO_ICALL                                         $13     
         19        ECHO                                                     $13
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.04 ms | 1395 KiB | 17 Q