3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "a\x80b"; $encoded = htmlentities($str, ENT_QUOTES | ENT_SUBSTITUTE, "UTF-8"); $decoded = html_entity_decode($encoded, ENT_QUOTES, "UTF-8"); var_dump($str); var_dump($decoded); var_dump($str === $decoded);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Gapng
function name:  (null)
number of ops:  24
compiled vars:  !0 = $str, !1 = $encoded, !2 = $decoded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'a%80b'
    4     1        INIT_FCALL                                               'htmlentities'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 11
          4        SEND_VAL                                                 'UTF-8'
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    5     7        INIT_FCALL                                               'html_entity_decode'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 3
         10        SEND_VAL                                                 'UTF-8'
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !2, $6
    7    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
    8    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                                 
    9    19        INIT_FCALL                                               'var_dump'
         20        IS_IDENTICAL                                     ~10     !0, !2
         21        SEND_VAL                                                 ~10
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.96 ms | 1395 KiB | 19 Q