3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = array( "sn" => CAS0510000072, "name" => 内网测试环境, "engine" => array( "pkt_uri" => "https://192.168.1.224:7088/engine/fred.tar.gz", "md5" => "e6e21fc448db4a5a57087df0060b8292", "title" => "fred" ), "area" => array( "pkt_uri" => "https://192.168.1.224:7088/area/东南地区_beta.tar.gz", "md5" => "4b6570bdae1fee83ef5ff2ab725eed4e", "title" => "东南地区_beta" ), "account" => array( "pkt_uri" => "https://192.168.1.224:7088/account.conf", "md5" => "481284bd6c5a0481c1f1b32afd7c8aae", "title" => "account" ), "work" => "start" ); $encoded = json_encode($json); var_dump($encoded); $unescaped = preg_replace_callback('/\\\u(\w{4})/', function ($matches) { return html_entity_decode('&#x' . $matches[1] . ';', ENT_COMPAT, 'UTF-8'); }, $encoded); echo $unescaped;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hKiNg
function name:  (null)
number of ops:  25
compiled vars:  !0 = $json, !1 = $encoded, !2 = $unescaped
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FETCH_CONSTANT                                   ~3      'CAS0510000072'
          1        INIT_ARRAY                                       ~4      ~3, 'sn'
    5     2        FETCH_CONSTANT                                   ~5      '%E5%86%85%E7%BD%91%E6%B5%8B%E8%AF%95%E7%8E%AF%E5%A2%83'
          3        ADD_ARRAY_ELEMENT                                ~4      ~5, 'name'
    4     4        ADD_ARRAY_ELEMENT                                ~4      <array>, 'engine'
          5        ADD_ARRAY_ELEMENT                                ~4      <array>, 'area'
          6        ADD_ARRAY_ELEMENT                                ~4      <array>, 'account'
   21     7        ADD_ARRAY_ELEMENT                                ~4      'start', 'work'
    3     8        ASSIGN                                                   !0, ~4
   24     9        INIT_FCALL                                               'json_encode'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !1, $7
   25    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
   27    16        INIT_FCALL                                               'preg_replace_callback'
         17        SEND_VAL                                                 '%2F%5C%5Cu%28%5Cw%7B4%7D%29%2F'
         18        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FhKiNg%3A27%240'
   29    19        SEND_VAL                                                 ~10
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $11     
   27    22        ASSIGN                                                   !2, $11
   30    23        ECHO                                                     !2
         24      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FhKiNg%3A27%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hKiNg
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E >   RECV                                             !0      
   28     1        INIT_FCALL                                               'html_entity_decode'
          2        FETCH_DIM_R                                      ~1      !0, 1
          3        CONCAT                                           ~2      '%26%23x', ~1
          4        CONCAT                                           ~3      ~2, '%3B'
          5        SEND_VAL                                                 ~3
          6        SEND_VAL                                                 2
          7        SEND_VAL                                                 'UTF-8'
          8        DO_ICALL                                         $4      
          9      > RETURN                                                   $4
   29    10*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FhKiNg%3A27%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.21 ms | 1396 KiB | 21 Q