3v4l.org

run code in 300+ PHP versions simultaneously
<?php function function2($var) { $tmp = (isset($_REQUEST[$var])) ? trim(htmlspecialchars($_REQUEST[$var], ENT_QUOTES, "UTF-8")) : ""; return $tmp; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MPWBV
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   1

Function function2:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 16
Branch analysis from position: 4
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
filename:       /in/MPWBV
function name:  function2
number of ops:  20
compiled vars:  !0 = $var, !1 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        FETCH_IS                                         ~2      '_REQUEST'
          2        ISSET_ISEMPTY_DIM_OBJ                         0          ~2, !0
          3      > JMPZ                                                     ~3, ->16
          4    >   INIT_FCALL                                               'trim'
          5        INIT_FCALL                                               'htmlspecialchars'
          6        FETCH_R                      global              ~4      '_REQUEST'
          7        FETCH_DIM_R                                      ~5      ~4, !0
          8        SEND_VAL                                                 ~5
          9        SEND_VAL                                                 3
         10        SEND_VAL                                                 'UTF-8'
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                         $7      
         14        QM_ASSIGN                                        ~8      $7
         15      > JMP                                                      ->17
         16    >   QM_ASSIGN                                        ~8      ''
         17    >   ASSIGN                                                   !1, ~8
    5    18      > RETURN                                                   !1
    6    19*     > RETURN                                                   null

End of function function2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.75 ms | 1011 KiB | 15 Q