3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '\\u', PHP_EOL; echo json_decode(str_replace('\\\\u', '\u', json_encode(json_encode('\\u'))));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TImO5
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     '%5Cu'
          1        ECHO                                                     '%0A'
    4     2        INIT_FCALL                                               'json_decode'
          3        INIT_FCALL                                               'str_replace'
          4        SEND_VAL                                                 '%5C%5Cu'
          5        SEND_VAL                                                 '%5Cu'
          6        INIT_FCALL                                               'json_encode'
          7        INIT_FCALL                                               'json_encode'
          8        SEND_VAL                                                 '%5Cu'
          9        DO_ICALL                                         $0      
         10        SEND_VAR                                                 $0
         11        DO_ICALL                                         $1      
         12        SEND_VAR                                                 $1
         13        DO_ICALL                                         $2      
         14        SEND_VAR                                                 $2
         15        DO_ICALL                                         $3      
         16        ECHO                                                     $3
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.7 ms | 1394 KiB | 19 Q