3v4l.org

run code in 300+ PHP versions simultaneously
<?php function v_htmlspecialchars($string, $flags = ENT_COMPAT, $encoding = 'ISO-8869-2', $doubleEncode = false) { return htmlspecialchars($string, $flags, $encoding, $doubleEncode); } for ($i=0; $i<1000000; $i++) { v_htmlspecialchars('za:"&<>ź\'ółćgęśląjaźń',ENT_QUOTES,'UTF-8'); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 2
Branch analysis from position: 10
Branch analysis from position: 2
filename:       /in/T3Uld
function name:  (null)
number of ops:  11
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->8
    9     2    >   INIT_FCALL                                               'v_htmlspecialchars'
          3        SEND_VAL                                                 'za%3A%22%26%3C%3E%C5%BA%27%C3%B3%C5%82%C4%87g%C4%99%C5%9Bl%C4%85ja%C5%BA%C5%84'
          4        SEND_VAL                                                 3
          5        SEND_VAL                                                 'UTF-8'
          6        DO_FCALL                                      0          
    8     7        PRE_INC                                                  !0
          8    >   IS_SMALLER                                               !0, 1000000
          9      > JMPNZ                                                    ~4, ->2
   11    10    > > RETURN                                                   1

Function v_htmlspecialchars:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T3Uld
function name:  v_htmlspecialchars
number of ops:  12
compiled vars:  !0 = $string, !1 = $flags, !2 = $encoding, !3 = $doubleEncode
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <const ast>
          2        RECV_INIT                                        !2      'ISO-8869-2'
          3        RECV_INIT                                        !3      <false>
    5     4        INIT_FCALL                                               'htmlspecialchars'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !2
          8        SEND_VAR                                                 !3
          9        DO_ICALL                                         $4      
         10      > RETURN                                                   $4
    6    11*     > RETURN                                                   null

End of function v_htmlspecialchars

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.59 ms | 1399 KiB | 16 Q