3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = "Umläüts & test!"; $x = htmlspecialchars($x); function htmlDecode( $subject ) { $subject = (string) $subject; do { $oldSubject = $subject; $subject = htmlspecialchars_decode($subject); } while( $subject != $oldSubject ); } $x = htmlspecialchars($x); var_dump($x); htmlDecode($x); var_dump($x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IqGA8
function name:  (null)
number of ops:  19
compiled vars:  !0 = $x
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                                         $2      
          4        ASSIGN                                                   !0, $2
   16     5        INIT_FCALL                                               'htmlspecialchars'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !0, $4
   17     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
   18    12        INIT_FCALL                                               'htmldecode'
         13        SEND_VAR                                                 !0
         14        DO_FCALL                                      0          
   19    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Function htmldecode:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
filename:       /in/IqGA8
function name:  htmlDecode
number of ops:  11
compiled vars:  !0 = $subject, !1 = $oldSubject
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        CAST                                          6  ~2      !0
          2        ASSIGN                                                   !0, ~2
   11     3    >   ASSIGN                                                   !1, !0
   12     4        INIT_FCALL                                               'htmlspecialchars_decode'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !0, $5
   13     8        IS_NOT_EQUAL                                             !0, !1
          9      > JMPNZ                                                    ~7, ->3
   14    10    > > RETURN                                                   null

End of function htmldecode

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.69 ms | 1399 KiB | 20 Q