3v4l.org

run code in 500+ PHP versions simultaneously
<?php function button($text, $value, $col = 6, $row = 1, $color = "#ffffff", $size = 'large', $type = 'reply'){ return [ 'Columns' => $col, 'Rows' => $row, 'Text' => '<font color="'.$color.'"><b>'.$text.'</b></font>', 'BgColor' => "#30cecb", 'TextVAlign' => 'middle', 'TextHAlign' => 'middle', 'TextSize' => $size, 'ActionType' => $type, 'ActionBody' => $value, ]; } print_r(button(text:'Text here', color:'#333333', value:'value here'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r2YV8
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                                   'print_r'
          1        INIT_FCALL                                                   'button'
          2        SEND_VAL                                                     'Text+here'
          3        SEND_VAL                                                     '%23333333'
          4        SEND_VAL                                                     'value+here'
          5        CHECK_UNDEF_ARGS                                             
          6        DO_FCALL                                          0  $0      
          7        SEND_VAR                                                     $0
          8        DO_ICALL                                                     
          9      > RETURN                                                       1

Function button:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r2YV8
function name:  button
number of ops:  22
compiled vars:  !0 = $text, !1 = $value, !2 = $col, !3 = $row, !4 = $color, !5 = $size, !6 = $type
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        RECV_INIT                                            !2      6
          3        RECV_INIT                                            !3      1
          4        RECV_INIT                                            !4      '%23ffffff'
          5        RECV_INIT                                            !5      'large'
          6        RECV_INIT                                            !6      'reply'
    5     7        INIT_ARRAY                                           ~7      !2, 'Columns'
    6     8        ADD_ARRAY_ELEMENT                                    ~7      !3, 'Rows'
    7     9        CONCAT                                               ~8      '%3Cfont+color%3D%22', !4
         10        CONCAT                                               ~9      ~8, '%22%3E%3Cb%3E'
         11        CONCAT                                               ~10     ~9, !0
         12        CONCAT                                               ~11     ~10, '%3C%2Fb%3E%3C%2Ffont%3E'
         13        ADD_ARRAY_ELEMENT                                    ~7      ~11, 'Text'
    8    14        ADD_ARRAY_ELEMENT                                    ~7      '%2330cecb', 'BgColor'
    9    15        ADD_ARRAY_ELEMENT                                    ~7      'middle', 'TextVAlign'
   10    16        ADD_ARRAY_ELEMENT                                    ~7      'middle', 'TextHAlign'
   11    17        ADD_ARRAY_ELEMENT                                    ~7      !5, 'TextSize'
   12    18        ADD_ARRAY_ELEMENT                                    ~7      !6, 'ActionType'
   13    19        ADD_ARRAY_ELEMENT                                    ~7      !1, 'ActionBody'
         20      > RETURN                                                       ~7
   15    21*     > RETURN                                                       null

End of function button

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.75 ms | 1658 KiB | 15 Q