3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.35 ms | 1394 KiB | 17 Q