3v4l.org

run code in 300+ PHP versions simultaneously
<?php function protect(){ $a[1] = 'lolol'; $a[2] = '1l1l1l'; $a[3] = '<p>dasdsa</p>'; $a[4] = 'assa"".**&'; addslashes($a); array_map('strip_tags',$a); var_dump($a); } protect($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1A2QW
function name:  (null)
number of ops:  4
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'protect'
          1        SEND_VAR                                                 !0
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function protect:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1A2QW
function name:  protect
number of ops:  19
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN_DIM                                               !0, 1
          1        OP_DATA                                                  'lolol'
    6     2        ASSIGN_DIM                                               !0, 2
          3        OP_DATA                                                  '1l1l1l'
    7     4        ASSIGN_DIM                                               !0, 3
          5        OP_DATA                                                  '%3Cp%3Edasdsa%3C%2Fp%3E'
    8     6        ASSIGN_DIM                                               !0, 4
          7        OP_DATA                                                  'assa%22%22.%2A%2A%26'
   10     8        INIT_FCALL                                               'addslashes'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
   11    11        INIT_FCALL                                               'array_map'
         12        SEND_VAL                                                 'strip_tags'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
   12    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
   13    18      > RETURN                                                   null

End of function protect

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.96 ms | 1398 KiB | 20 Q