3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '\x5Bli\x5DLevel\x3A\x2023\x5B\x2Fli\x5D'; var_dump(json_decode($text, true)); var_dump(html_entity_decode($text, ENT_COMPAT, 'UTF-8'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q25mu
function name:  (null)
number of ops:  17
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5Cx5Bli%5Cx5DLevel%5Cx3A%5Cx2023%5Cx5B%5Cx2Fli%5Cx5D'
    4     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'json_decode'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'html_entity_decode'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 2
         12        SEND_VAL                                                 'UTF-8'
         13        DO_ICALL                                         $4      
         14        SEND_VAR                                                 $4
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
288.38 ms | 1394 KiB | 20 Q