3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['sing', 'da', 'song', 'along']; $song = 'Hope - Bring Me Flowers'; foreach($array as $v) if ($a_match = $$v ?? null) { echo $a_match, "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 12
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 12
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 11
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/f8LTB
function name:  (null)
number of ops:  14
compiled vars:  !0 = $array, !1 = $song, !2 = $v, !3 = $a_match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 'Hope+-+Bring+Me+Flowers'
    7     2      > FE_RESET_R                                       $6      !0, ->12
          3    > > FE_FETCH_R                                               $6, !2, ->12
          4    >   FETCH_IS                                         ~7      !2
          5        COALESCE                                         ~8      ~7
          6        QM_ASSIGN                                        ~8      null
          7        ASSIGN                                           ~9      !3, ~8
          8      > JMPZ                                                     ~9, ->11
    8     9    >   ECHO                                                     !3
         10        ECHO                                                     '%0A'
    7    11    > > JMP                                                      ->3
         12    >   FE_FREE                                                  $6
    9    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.16 ms | 1398 KiB | 13 Q