3v4l.org

run code in 300+ PHP versions simultaneously
<?php // https://bugs.php.net/bug.php?id=12257 $array = array_values(array("name"=>"Sheldon","age"=>"42")); list($a,$b) = $array; // taking cue from phpwtf.org var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QvrA5
function name:  (null)
number of ops:  14
compiled vars:  !0 = $array, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'array_values'
          1        SEND_VAL                                                 <array>
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    5     4        QM_ASSIGN                                        ~5      !0
          5        FETCH_LIST_R                                     $6      ~5, 0
          6        ASSIGN                                                   !1, $6
          7        FETCH_LIST_R                                     $8      ~5, 1
          8        ASSIGN                                                   !2, $8
          9        FREE                                                     ~5
    6    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.57 ms | 1394 KiB | 17 Q