3v4l.org

run code in 300+ PHP versions simultaneously
<?php list($a,$b) = (array) "aa"; var_dump($a,$b); $a = array(); $a[]="a"; $a[] ="b"; list($x,$y) = $a; var_dump($x,$y);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DkZZK
function name:  (null)
number of ops:  26
compiled vars:  !0 = $a, !1 = $b, !2 = $x, !3 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   CAST                                          7  ~4      'aa'
          1        FETCH_LIST_R                                     $5      ~4, 0
          2        ASSIGN                                                   !0, $5
          3        FETCH_LIST_R                                     $7      ~4, 1
          4        ASSIGN                                                   !1, $7
          5        FREE                                                     ~4
    3     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    5    10        ASSIGN                                                   !0, <array>
    6    11        ASSIGN_DIM                                               !0
         12        OP_DATA                                                  'a'
    7    13        ASSIGN_DIM                                               !0
         14        OP_DATA                                                  'b'
    8    15        QM_ASSIGN                                        ~13     !0
         16        FETCH_LIST_R                                     $14     ~13, 0
         17        ASSIGN                                                   !2, $14
         18        FETCH_LIST_R                                     $16     ~13, 1
         19        ASSIGN                                                   !3, $16
         20        FREE                                                     ~13
    9    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !2
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.01 ms | 1395 KiB | 15 Q