3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = "Ao&ucirc;t"; function htmlDecode( $subject ) { $subject = (string) $subject; do { $oldSubject = $subject; $subject = htmlspecialchars_decode($subject); } while( $subject != $oldSubject ); } 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/bgL4Y
function name:  (null)
number of ops:  11
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Ao%26ucirc%3Bt'
   15     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   16     4        INIT_FCALL                                               'htmldecode'
          5        SEND_VAR                                                 !0
          6        DO_FCALL                                      0          
   17     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > 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/bgL4Y
function name:  htmlDecode
number of ops:  11
compiled vars:  !0 = $subject, !1 = $oldSubject
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        CAST                                          6  ~2      !0
          2        ASSIGN                                                   !0, ~2
   10     3    >   ASSIGN                                                   !1, !0
   11     4        INIT_FCALL                                               'htmlspecialchars_decode'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !0, $5
   12     8        IS_NOT_EQUAL                                             !0, !1
          9      > JMPNZ                                                    ~7, ->3
   13    10    > > RETURN                                                   null

End of function htmldecode

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.9 ms | 1398 KiB | 18 Q