3v4l.org

run code in 500+ PHP versions simultaneously
<?php $z = array("abc"); list($x, $y) = reset($z); var_dump($x, $y); list($x, $y) = "abc"; var_dump($x, $y);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ha1FX
function name:  (null)
number of ops:  22
compiled vars:  !0 = $z, !1 = $x, !2 = $y
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
          1        INIT_FCALL                                                   'reset'
          2        SEND_REF                                                     !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
          9        INIT_FCALL                                                   'var_dump'
         10        SEND_VAR                                                     !1
         11        SEND_VAR                                                     !2
         12        DO_ICALL                                                     
    4    13        FETCH_LIST_R                                         $10     'abc', 0
         14        ASSIGN                                                       !1, $10
         15        FETCH_LIST_R                                         $12     'abc', 1
         16        ASSIGN                                                       !2, $12
         17        INIT_FCALL                                                   'var_dump'
         18        SEND_VAR                                                     !1
         19        SEND_VAR                                                     !2
         20        DO_ICALL                                                     
         21      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
172.7 ms | 3308 KiB | 15 Q