3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.44 ms | 1394 KiB | 15 Q