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 = 17
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 17
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/sHe1j
function name:  (null)
number of ops:  19
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, ->17
          2    > > FE_FETCH_R                                               $5, !1, ->17
   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        INIT_ARRAY                                       ~11     !2
         11        ADD_ARRAY_ELEMENT                                ~11     !3
         12        SPACESHIP                                        ~12     !2, !3
         13        ADD_ARRAY_ELEMENT                                ~11     ~12
         14        SEND_VAL                                                 ~11
         15        DO_ICALL                                                 
    9    16      > JMP                                                      ->2
         17    >   FE_FREE                                                  $5
   12    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.61 ms | 1399 KiB | 15 Q