3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dec = json_decode('{"a":"A\u2028B"}'); print_r(json_encode($dec)); print_r(json_encode($dec, JSON_UNESCAPED_UNICODE));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4K98p
function name:  (null)
number of ops:  18
compiled vars:  !0 = $dec
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%7B%22a%22%3A%22A%5Cu2028B%22%7D'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL                                               'print_r'
          5        INIT_FCALL                                               'json_encode'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'print_r'
         11        INIT_FCALL                                               'json_encode'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 256
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.83 ms | 1394 KiB | 19 Q