3v4l.org

run code in 300+ PHP versions simultaneously
<?php $opts['label'] = 'label'; $role = ''; $href=''; $class=''; $label = empty( $opts['label'] ) ? $name : $opts['label']; $label = 'presentation' === $role ? '' : $label; echo sprintf( '<svg role="%s" class="%s"%s><use xlink:href="%s"/></svg>', $role, $class, $label, $href );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
Branch analysis from position: 16
filename:       /in/Vhvhd
function name:  (null)
number of ops:  27
compiled vars:  !0 = $opts, !1 = $role, !2 = $href, !3 = $class, !4 = $label, !5 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'label'
          1        OP_DATA                                                  'label'
    3     2        ASSIGN                                                   !1, ''
    4     3        ASSIGN                                                   !2, ''
    5     4        ASSIGN                                                   !3, ''
    7     5        ISSET_ISEMPTY_DIM_OBJ                         1          !0, 'label'
          6      > JMPZ                                                     ~10, ->9
          7    >   QM_ASSIGN                                        ~11     !5
          8      > JMP                                                      ->11
          9    >   FETCH_DIM_R                                      ~12     !0, 'label'
         10        QM_ASSIGN                                        ~11     ~12
         11    >   ASSIGN                                                   !4, ~11
    8    12        IS_IDENTICAL                                             !1, 'presentation'
         13      > JMPZ                                                     ~14, ->16
         14    >   QM_ASSIGN                                        ~15     ''
         15      > JMP                                                      ->17
         16    >   QM_ASSIGN                                        ~15     !4
         17    >   ASSIGN                                                   !4, ~15
   10    18        INIT_FCALL                                               'sprintf'
         19        SEND_VAL                                                 '%3Csvg+role%3D%22%25s%22+class%3D%22%25s%22%25s%3E%3Cuse+xlink%3Ahref%3D%22%25s%22%2F%3E%3C%2Fsvg%3E'
         20        SEND_VAR                                                 !1
         21        SEND_VAR                                                 !3
         22        SEND_VAR                                                 !4
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                         $17     
         25        ECHO                                                     $17
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.43 ms | 1396 KiB | 15 Q