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_HTML401, 'ISO-8859-1'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/50fk7
function name:  (null)
number of ops:  34
compiled vars:  !0 = $key, !1 = $array, !2 = $json, !3 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'Foo+%A3'
    5     1        INIT_ARRAY                                       ~5      '', !0
          2        ASSIGN                                                   !1, ~5
    7     3        INIT_FCALL                                               'print_r'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
    9     6        INIT_FCALL                                               'json_encode'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !2, $8
   10    10        CONCAT                                           ~10     !2, '%0A'
         11        ECHO                                                     ~10
   12    12        INIT_FCALL                                               'print_r'
         13        INIT_FCALL                                               'json_decode'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $11     
         16        SEND_VAR                                                 $11
         17        DO_ICALL                                                 
   15    18        ASSIGN                                                   !3, 'Audio+Pass%3A+Get+live+NFL+game+audio+while+you%E2%80%99re+on+the+road+with+Audio+Pass.'
   16    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'htmlentities'
         21        SEND_VAR                                                 !3
         22        DO_ICALL                                         $14     
         23        SEND_VAR                                                 $14
         24        DO_ICALL                                                 
   18    25        INIT_FCALL                                               'var_dump'
         26        INIT_FCALL                                               'htmlentities'
         27        SEND_VAR                                                 !3
         28        SEND_VAL                                                 2
         29        SEND_VAL                                                 'ISO-8859-1'
         30        DO_ICALL                                         $16     
         31        SEND_VAR                                                 $16
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.69 ms | 1396 KiB | 23 Q