3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.01 ms | 1394 KiB | 17 Q