3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = "Umläüts & test!"; $y = htmlspecialchars($x); var_dump(htmlspecialchars($x)); var_dump(htmlspecialchars($y)); var_dump(htmlspecialchars_decode($x)); var_dump(htmlspecialchars_decode($y)); $converted = htmlspecialchars($y); var_dump('Y', $converted); do { $oldConverted = $converted; $converted = htmlspecialchars_decode($converted); } while( $converted != $oldConverted ); var_dump($converted);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 44, Position 2 = 37
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
filename:       /in/tmklB
function name:  (null)
number of ops:  48
compiled vars:  !0 = $x, !1 = $y, !2 = $converted, !3 = $oldConverted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Uml%C3%A4%C3%BCts+%26+test%21'
    4     1        INIT_FCALL                                               'htmlspecialchars'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    6     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'htmlspecialchars'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $7      
          9        SEND_VAR                                                 $7
         10        DO_ICALL                                                 
    7    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'htmlspecialchars'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $9      
         15        SEND_VAR                                                 $9
         16        DO_ICALL                                                 
    8    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'htmlspecialchars_decode'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $11     
         21        SEND_VAR                                                 $11
         22        DO_ICALL                                                 
    9    23        INIT_FCALL                                               'var_dump'
         24        INIT_FCALL                                               'htmlspecialchars_decode'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                         $13     
         27        SEND_VAR                                                 $13
         28        DO_ICALL                                                 
   11    29        INIT_FCALL                                               'htmlspecialchars'
         30        SEND_VAR                                                 !1
         31        DO_ICALL                                         $15     
         32        ASSIGN                                                   !2, $15
   12    33        INIT_FCALL                                               'var_dump'
         34        SEND_VAL                                                 'Y'
         35        SEND_VAR                                                 !2
         36        DO_ICALL                                                 
   14    37    >   ASSIGN                                                   !3, !2
   15    38        INIT_FCALL                                               'htmlspecialchars_decode'
         39        SEND_VAR                                                 !2
         40        DO_ICALL                                         $19     
         41        ASSIGN                                                   !2, $19
   16    42        IS_NOT_EQUAL                                             !2, !3
         43      > JMPNZ                                                    ~21, ->37
   18    44    >   INIT_FCALL                                               'var_dump'
         45        SEND_VAR                                                 !2
         46        DO_ICALL                                                 
         47      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.35 ms | 1400 KiB | 19 Q