3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.06 ms | 1394 KiB | 17 Q