3v4l.org

run code in 500+ PHP versions simultaneously
<?php function apcu_fetch(array $keys) { return array_fill_keys($keys, 123); } list("key" => $foo) = apcu_fetch(["key"]); var_dump($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Pp2gq
function name:  (null)
number of ops:  10
compiled vars:  !0 = $foo
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                                   'apcu_fetch'
          1        SEND_VAL                                                     <array>
          2        DO_FCALL                                          0  $1      
          3        FETCH_LIST_R                                         $2      $1, 'key'
          4        ASSIGN                                                       !0, $2
          5        FREE                                                         $1
    8     6        INIT_FCALL                                                   'var_dump'
          7        SEND_VAR                                                     !0
          8        DO_ICALL                                                     
          9      > RETURN                                                       1

Function apcu_fetch:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Pp2gq
function name:  apcu_fetch
number of ops:  7
compiled vars:  !0 = $keys
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    4     1        INIT_FCALL                                                   'array_fill_keys'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     123
          4        DO_ICALL                                             $1      
          5      > RETURN                                                       $1
    5     6*     > RETURN                                                       null

End of function apcu_fetch

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.51 ms | 480 KiB | 10 Q