3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v1_d1 = 10; $v1_w2 = 20; $v1_d2 = 30; $v1_w3 = 40; $set = ['v1_d1', 'v1_w2', 'v1_d2', 'v1_w3']; foreach(compact(...$set) as $var) { echo $var; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/1dYIY
function name:  (null)
number of ops:  15
compiled vars:  !0 = $v1_d1, !1 = $v1_w2, !2 = $v1_d2, !3 = $v1_w3, !4 = $set, !5 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 10
    3     1        ASSIGN                                                   !1, 20
    4     2        ASSIGN                                                   !2, 30
    5     3        ASSIGN                                                   !3, 40
    7     4        ASSIGN                                                   !4, <array>
    9     5        INIT_FCALL                                               'compact'
          6        SEND_UNPACK                                              !4
          7        CHECK_UNDEF_ARGS                                         
          8        DO_ICALL                                         $11     
          9      > FE_RESET_R                                       $12     $11, ->13
         10    > > FE_FETCH_R                                               $12, !5, ->13
   10    11    >   ECHO                                                     !5
    9    12      > JMP                                                      ->10
         13    >   FE_FREE                                                  $12
   11    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
287.33 ms | 1009 KiB | 14 Q