3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.55 ms | 1394 KiB | 15 Q