3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array("Alice", "Mary", "George", "Dave"); $r = array_reverse($arr,true); var_dump($r); // 3=>"Dave", 2=>"George", 1=>"Mary", 0=>"Alice" 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/0luAi
function name:  (null)
number of ops:  19
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        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    4     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    5     9        QM_ASSIGN                                        ~7      !1
         10        FETCH_LIST_R                                     $8      ~7, 0
         11        ASSIGN                                                   !2, $8
         12        FETCH_LIST_R                                     $10     ~7, 1
         13        ASSIGN                                                   !2, $10
         14        FREE                                                     ~7
    6    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.9 ms | 1394 KiB | 17 Q