3v4l.org

run code in 500+ PHP versions simultaneously
<?php print_r(list($val) = [1]); // OK $array = [1]; print_r(list($val) = $array); // NG: Invalid opcode
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U3Qnl
function name:  (null)
number of ops:  13
compiled vars:  !0 = $val, !1 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'print_r'
          1        FETCH_LIST_R                                         $2      <array>, 0
          2        ASSIGN                                                       !0, $2
          3        SEND_VAL                                                     <array>
          4        DO_ICALL                                                     
    4     5        ASSIGN                                                       !1, <array>
    5     6        INIT_FCALL                                                   'print_r'
          7        QM_ASSIGN                                            ~6      !1
          8        FETCH_LIST_R                                         $7      ~6, 0
          9        ASSIGN                                                       !0, $7
         10        SEND_VAL                                                     ~6
         11        DO_ICALL                                                     
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.81 ms | 2979 KiB | 14 Q