3v4l.org

run code in 300+ PHP versions simultaneously
<?php $encoded = substr(json_encode("\r\n\f\thoge\0\x0f", JSON_UNESCAPED_UNICODE), 1, -1); echo $encoded;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vogm0
function name:  (null)
number of ops:  12
compiled vars:  !0 = $encoded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'substr'
          1        INIT_FCALL                                               'json_encode'
          2        SEND_VAL                                                 '%0D%0A%0C%09hoge%00%0F'
          3        SEND_VAL                                                 256
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        SEND_VAL                                                 1
          7        SEND_VAL                                                 -1
          8        DO_ICALL                                         $2      
          9        ASSIGN                                                   !0, $2
    5    10        ECHO                                                     !0
    6    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.48 ms | 1394 KiB | 17 Q