3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a[1] = 'lolol'; $a[2] = '1l1l1l'; $a[3] = '<p></p>'; $a[4] = 'assa"".**&'; function protect(){ addslashes($a); array_map("strip_tags",$a); } foreach($a as $k => $v){ echo $k,$v; } return $a;
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
Jump found. Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
Jump found. Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 15
Jump found. Position 1 = -2
Branch analysis from position: 15
filename:       /in/ARJgA
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $v, !2 = $k
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN_DIM                                               !0, 1
         1        OP_DATA                                                  'lolol'
   4     2        ASSIGN_DIM                                               !0, 2
         3        OP_DATA                                                  '1l1l1l'
   5     4        ASSIGN_DIM                                               !0, 3
         5        OP_DATA                                                  '%3Cp%3E%3C%2Fp%3E'
   6     6        ASSIGN_DIM                                               !0, 4
         7        OP_DATA                                                  'assa%22%22.%2A%2A%26'
   8     8        NOP                                                      
  13     9      > FE_RESET_R                                       $7      !0, ->15
        10    > > FE_FETCH_R                                               $7, !1, ->15
        11    >   ASSIGN                                                   !2, ~8
  14    12        ECHO                                                     !2
        13        ECHO                                                     !1
        14      > JMP                                                      ->10
        15    >   FE_FREE                                                  $7
  16    16      > RETURN                                                   !0
        17*     > RETURN                                                   1

Function protect:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/ARJgA
function name:  protect
number of ops:  8
compiled vars:  !0 = $a
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   9     0  E >   INIT_FCALL                                               'addslashes'
         1        SEND_VAR                                                 !0
         2        DO_ICALL                                                 
  10     3        INIT_FCALL                                               'array_map'
         4        SEND_VAL                                                 'strip_tags'
         5        SEND_VAR                                                 !0
         6        DO_ICALL                                                 
  11     7      > RETURN                                                   null

End of function protect

Generated using Vulcan Logic Dumper, using php 7.2.0