3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pencilbanner = 'hol'; $bannerData = match($pencilbanner) { 'std' => ['standard-banner', 'This is the standard banner'], 'hol' => ['holiday-banner', 'This is the holiday banner'], 'lim' => ['standard-banner', 'This is the limited time only banner'], default => [], }; if ($bannerData) { vprintf('<div class="banner %s"><h4>%s</h4></div>', $bannerData); }
Finding entry points
Branch analysis from position: 0
4 jumps found. (Code = 195) Position 1 = 2, Position 2 = 4, Position 3 = 6, Position 4 = 8
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
filename:       /in/rOg2o
function name:  (null)
number of ops:  17
compiled vars:  !0 = $pencilbanner, !1 = $bannerData
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'hol'
    5     1      > MATCH                                                    !0, [ 'std':->2, 'hol':->4, 'lim':->6, ], ->8
    6     2    >   QM_ASSIGN                                        ~4      <array>
          3      > JMP                                                      ->10
    7     4    >   QM_ASSIGN                                        ~4      <array>
          5      > JMP                                                      ->10
    8     6    >   QM_ASSIGN                                        ~4      <array>
          7      > JMP                                                      ->10
    9     8    >   QM_ASSIGN                                        ~4      <array>
          9      > JMP                                                      ->10
    5    10    >   ASSIGN                                                   !1, ~4
   12    11      > JMPZ                                                     !1, ->16
   13    12    >   INIT_FCALL                                               'vprintf'
         13        SEND_VAL                                                 '%3Cdiv+class%3D%22banner+%25s%22%3E%3Ch4%3E%25s%3C%2Fh4%3E%3C%2Fdiv%3E'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
   14    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.72 ms | 997 KiB | 14 Q