3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a[1] = 'lolol'; $a[2] = '1l1l1l'; $a[3] = '<p></p>'; $a[4] = ''; 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
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/Mkql5
function name:  (null)
number of ops:  17
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                                                  ''
   13     8      > FE_RESET_R                                       $7      !0, ->14
          9    > > FE_FETCH_R                                       ~8      $7, !1, ->14
         10    >   ASSIGN                                                   !2, ~8
   14    11        ECHO                                                     !2
         12        ECHO                                                     !1
   13    13      > JMP                                                      ->9
         14    >   FE_FREE                                                  $7
   16    15      > RETURN                                                   !0
         16*     > RETURN                                                   1

Function protect:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Mkql5
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 8.0.0


preferences:
158.25 ms | 1396 KiB | 17 Q