3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = array( \xb0, \x00, \x43, \x00, \x00, \x00 ); $jsontest = json_encode( $result, JSON_UNESCAPED_UNICODE ); echo "jsontest is: $jsontest"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XpqG5
function name:  (null)
number of ops:  22
compiled vars:  !0 = $result, !1 = $jsontest
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_CONSTANT                                   ~2      'xb0'
          1        INIT_ARRAY                                       ~3      ~2
          2        FETCH_CONSTANT                                   ~4      'x00'
          3        ADD_ARRAY_ELEMENT                                ~3      ~4
          4        FETCH_CONSTANT                                   ~5      'x43'
          5        ADD_ARRAY_ELEMENT                                ~3      ~5
          6        FETCH_CONSTANT                                   ~6      'x00'
          7        ADD_ARRAY_ELEMENT                                ~3      ~6
          8        FETCH_CONSTANT                                   ~7      'x00'
          9        ADD_ARRAY_ELEMENT                                ~3      ~7
         10        FETCH_CONSTANT                                   ~8      'x00'
         11        ADD_ARRAY_ELEMENT                                ~3      ~8
         12        ASSIGN                                                   !0, ~3
    3    13        INIT_FCALL                                               'json_encode'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 256
         16        DO_ICALL                                         $10     
         17        ASSIGN                                                   !1, $10
    4    18        NOP                                                      
         19        FAST_CONCAT                                      ~12     'jsontest+is%3A+', !1
         20        ECHO                                                     ~12
    5    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.76 ms | 1395 KiB | 15 Q