3v4l.org

run code in 300+ PHP versions simultaneously
<?php function icon ($name) { return sprintf('<svg class="svg-icon"><use xlink:href="/assets/svg/icons.svg#svg-%s"></use></svg>', $name); } echo icon('lol');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/asEsj
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'icon'
          1        SEND_VAL                                                 'lol'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function icon:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/asEsj
function name:  icon
number of ops:  7
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'sprintf'
          2        SEND_VAL                                                 '%3Csvg+class%3D%22svg-icon%22%3E%3Cuse+xlink%3Ahref%3D%22%2Fassets%2Fsvg%2Ficons.svg%23svg-%25s%22%3E%3C%2Fuse%3E%3C%2Fsvg%3E'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5      > RETURN                                                   $1
    5     6*     > RETURN                                                   null

End of function icon

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.38 ms | 1388 KiB | 16 Q