3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Source: https://bugs.php.net/bug.php?id=63898 /* $key = "Foo " . chr(163); $array = array($key => ""); print_r($array); $json = json_encode($array); echo $json."\n"; print_r(json_decode($json)); */ $x = 'Audio Pass: Get live NFL game audio while you’re on the road with Audio Pass.'; var_dump(htmlentities($x)); var_dump(htmlentities($x, ENT_COMPAT | ENT_SUBSTITUTE, 'ISO-8859-1')); var_dump(htmlentities($x, ENT_COMPAT | ENT_SUBSTITUTE, 'UTF-8'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tV5sQ
function name:  (null)
number of ops:  24
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   ASSIGN                                                   !0, 'Audio+Pass%3A+Get+live+NFL+game+audio+while+you%E2%80%99re+on+the+road+with+Audio+Pass.'
   18     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'htmlentities'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
   20     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'htmlentities'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 10
         11        SEND_VAL                                                 'ISO-8859-1'
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                                 
   22    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'htmlentities'
         17        SEND_VAR                                                 !0
         18        SEND_VAL                                                 10
         19        SEND_VAL                                                 'UTF-8'
         20        DO_ICALL                                         $6      
         21        SEND_VAR                                                 $6
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.38 ms | 1395 KiB | 17 Q