3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $x = []; $x['1'] = "numeric string"; $x["hello"] = "normal string"; echo var_export($x, true) . "\n"; foreach ($x as $k => $v) { printf("%s => %s\n", $v, gettype($k)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 24
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 24
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/IpIQT
function name:  (null)
number of ops:  26
compiled vars:  !0 = $x, !1 = $v, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    5     3        ASSIGN                                                   !0, <array>
    6     4        ASSIGN_DIM                                               !0, 1
          5        OP_DATA                                                  'numeric+string'
    7     6        ASSIGN_DIM                                               !0, 'hello'
          7        OP_DATA                                                  'normal+string'
    9     8        INIT_FCALL                                               'var_export'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $7      
         12        CONCAT                                           ~8      $7, '%0A'
         13        ECHO                                                     ~8
   11    14      > FE_RESET_R                                       $9      !0, ->24
         15    > > FE_FETCH_R                                       ~10     $9, !1, ->24
         16    >   ASSIGN                                                   !2, ~10
   12    17        INIT_FCALL                                               'printf'
         18        SEND_VAL                                                 '%25s+%3D%3E+%25s%0A'
         19        SEND_VAR                                                 !1
         20        GET_TYPE                                         ~12     !2
         21        SEND_VAL                                                 ~12
         22        DO_ICALL                                                 
   11    23      > JMP                                                      ->15
         24    >   FE_FREE                                                  $9
   13    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.39 ms | 1400 KiB | 19 Q