3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sanitise ($data) { if (is_array($data)) { $data = array_map("trim", $data); $data = array_map("htmlspecialchars", $data); return $data; } else return false; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/isqW5
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                   1

Function sanitise:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 15
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/isqW5
function name:  sanitise
number of ops:  17
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        TYPE_CHECK                                  128          !0
          2      > JMPZ                                                     ~1, ->15
    5     3    >   INIT_FCALL                                               'array_map'
          4        SEND_VAL                                                 'trim'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        ASSIGN                                                   !0, $2
    6     8        INIT_FCALL                                               'array_map'
          9        SEND_VAL                                                 'htmlspecialchars'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        ASSIGN                                                   !0, $4
    7    13      > RETURN                                                   !0
         14*       JMP                                                      ->16
    9    15    > > RETURN                                                   <false>
   10    16*     > RETURN                                                   null

End of function sanitise

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.04 ms | 1395 KiB | 15 Q