3v4l.org

run code in 300+ PHP versions simultaneously
<?php function mde_shortcode_form($selection) { $getVars = [ "abc" => "[gravityform id=\"6\" title=\"false\" description=\"false\"]", "xyz" => "[gravityform id=\"5\" title=\"false\" description=\"false\"]" ]; if (isset($getVars[$selection])) { do_shortcode($getVars[$selection]); } } mde_shortcode_form($_GET['formselect'] ?? null); // add_shortcode('abcde','mde_shortcode_form');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XiQlt
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'mde_shortcode_form'
          1        FETCH_IS                                         ~0      '_GET'
          2        FETCH_DIM_IS                                     ~1      ~0, 'formselect'
          3        COALESCE                                         ~2      ~1
          4        QM_ASSIGN                                        ~2      null
          5        SEND_VAL                                                 ~2
          6        DO_FCALL                                      0          
   17     7      > RETURN                                                   1

Function mde_shortcode_form:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/XiQlt
function name:  mde_shortcode_form
number of ops:  10
compiled vars:  !0 = $selection, !1 = $getVars
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        ASSIGN                                                   !1, <array>
   10     2        ISSET_ISEMPTY_DIM_OBJ                         0          !1, !0
          3      > JMPZ                                                     ~3, ->9
   11     4    >   INIT_FCALL_BY_NAME                                       'do_shortcode'
          5        CHECK_FUNC_ARG                                           
          6        FETCH_DIM_FUNC_ARG                               $4      !1, !0
          7        SEND_FUNC_ARG                                            $4
          8        DO_FCALL                                      0          
   13     9    > > RETURN                                                   null

End of function mde_shortcode_form

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.6 ms | 1397 KiB | 14 Q