3v4l.org

run code in 300+ PHP versions simultaneously
<?php list($a,$b) = str_split("aa"); var_dump($a,$b); $a = array(); $a[]="a"; $a[] ="a"; 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/X8XZU
function name:  (null)
number of ops:  28
compiled vars:  !0 = $a, !1 = $b, !2 = $x, !3 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'str_split'
          1        SEND_VAL                                                 'aa'
          2        DO_ICALL                                         $4      
          3        FETCH_LIST_R                                     $5      $4, 0
          4        ASSIGN                                                   !0, $5
          5        FETCH_LIST_R                                     $7      $4, 1
          6        ASSIGN                                                   !1, $7
          7        FREE                                                     $4
    3     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
    5    12        ASSIGN                                                   !0, <array>
    6    13        ASSIGN_DIM                                               !0
         14        OP_DATA                                                  'a'
    7    15        ASSIGN_DIM                                               !0
         16        OP_DATA                                                  'a'
    8    17        QM_ASSIGN                                        ~13     !0
         18        FETCH_LIST_R                                     $14     ~13, 0
         19        ASSIGN                                                   !2, $14
         20        FETCH_LIST_R                                     $16     ~13, 1
         21        ASSIGN                                                   !3, $16
         22        FREE                                                     ~13
    9    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !2
         25        SEND_VAR                                                 !3
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.72 ms | 1395 KiB | 17 Q