3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.54 ms | 1386 KiB | 15 Q