3v4l.org

run code in 300+ PHP versions simultaneously
<?php function arraykey(int|string $arg) : int|string { return $arg; } var_dump([ arraykey("foo") => "foo", arraykey(42) => 42, ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EFUm3
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
    8     1        INIT_FCALL                                               'arraykey'
          2        SEND_VAL                                                 'foo'
          3        DO_FCALL                                      0  $0      
          4        INIT_ARRAY                                       ~1      'foo', $0
    9     5        INIT_FCALL                                               'arraykey'
          6        SEND_VAL                                                 42
          7        DO_FCALL                                      0  $2      
          8        ADD_ARRAY_ELEMENT                                ~1      42, $2
          9        SEND_VAL                                                 ~1
         10        DO_ICALL                                                 
   10    11      > RETURN                                                   1

Function arraykey:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EFUm3
function name:  arraykey
number of ops:  5
compiled vars:  !0 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        VERIFY_RETURN_TYPE                                       !0
          2      > RETURN                                                   !0
    5     3*       VERIFY_RETURN_TYPE                                       
          4*     > RETURN                                                   null

End of function arraykey

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.8 ms | 942 KiB | 18 Q