3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('10'=>5,'11'=>6,'12'=>7); var_dump(array_keys($a)); list($b,$b,$c) = $a; var_dump($b,$c);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XcEhQ
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'array_keys'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        SEND_VAR                                                 $4
          6        DO_ICALL                                                 
    4     7        QM_ASSIGN                                        ~6      !0
          8        FETCH_LIST_R                                     $7      ~6, 0
          9        ASSIGN                                                   !1, $7
         10        FETCH_LIST_R                                     $9      ~6, 1
         11        ASSIGN                                                   !1, $9
         12        FETCH_LIST_R                                     $11     ~6, 2
         13        ASSIGN                                                   !2, $11
         14        FREE                                                     ~6
    5    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.71 ms | 1386 KiB | 17 Q