3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ 'title' => 'This is Title > & < \' "' ]; $json = json_encode($data, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT | JSON_PRETTY_PRINT); echo $json, PHP_EOL; print_r(json_decode($json));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LJ9jv
function name:  (null)
number of ops:  15
compiled vars:  !0 = $data, !1 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    7     1        INIT_FCALL                                               'json_encode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 143
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    8     6        ECHO                                                     !1
          7        ECHO                                                     '%0A'
   10     8        INIT_FCALL                                               'print_r'
          9        INIT_FCALL                                               'json_decode'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.52 ms | 1394 KiB | 19 Q