3v4l.org

run code in 300+ PHP versions simultaneously
<?php $in = [ [1, 2], [1, 1], [2, 1] ]; foreach ($in as $pair) { list($a, $b) = $pair; var_dump($a, $b, $a <=> $b); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 16
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/mHCU1
function name:  (null)
number of ops:  18
compiled vars:  !0 = $in, !1 = $pair, !2 = $a, !3 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1      > FE_RESET_R                                       $5      !0, ->16
          2    > > FE_FETCH_R                                               $5, !1, ->16
   10     3    >   QM_ASSIGN                                        ~6      !1
          4        FETCH_LIST_R                                     $7      ~6, 0
          5        ASSIGN                                                   !2, $7
          6        FETCH_LIST_R                                     $9      ~6, 1
          7        ASSIGN                                                   !3, $9
          8        FREE                                                     ~6
   11     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        SEND_VAR                                                 !3
         12        SPACESHIP                                        ~11     !2, !3
         13        SEND_VAL                                                 ~11
         14        DO_ICALL                                                 
    9    15      > JMP                                                      ->2
         16    >   FE_FREE                                                  $5
   12    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.77 ms | 1395 KiB | 15 Q