3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!defined('JSON_UNESCAPED_UNICODE')) { define('JSON_UNESCAPED_SLASHES', 64); define('JSON_UNESCAPED_UNICODE', 256); } $a = array('some' => 'test/'); $j = json_encode($a, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); var_dump($j);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 9
Branch analysis from position: 1
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/BH5nI
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > JMPZ                                                     <false>, ->9
    4     1    >   INIT_FCALL                                               'define'
          2        SEND_VAL                                                 'JSON_UNESCAPED_SLASHES'
          3        SEND_VAL                                                 64
          4        DO_ICALL                                                 
    5     5        INIT_FCALL                                               'define'
          6        SEND_VAL                                                 'JSON_UNESCAPED_UNICODE'
          7        SEND_VAL                                                 256
          8        DO_ICALL                                                 
    8     9    >   ASSIGN                                                   !0, <array>
    9    10        INIT_FCALL                                               'json_encode'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 320
         13        DO_ICALL                                         $5      
         14        ASSIGN                                                   !1, $5
   11    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.63 ms | 1395 KiB | 19 Q