3v4l.org

run code in 300+ PHP versions simultaneously
<?php $User = array( 'Name' => "Hans-Peterµµ", 'Contacts' => array(1, 2, 3, 4, 5, 6, 7, 42), 'Active' => 1 ); foreach ($User as &$val) { $val = preg_replace_callback('/\\\\u([0-9a-f]{4})/i', function($matches) { return mb_convert_encoding(pack('H*', $matches[1]), 'UTF-8', 'UTF-16'); }, $val); } $J = json_encode($User); echo $J."<br/>\r\n".$JS;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 11
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/9WXAb
function name:  (null)
number of ops:  20
compiled vars:  !0 = $User, !1 = $val, !2 = $J, !3 = $JS
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    7     1      > FE_RESET_RW                                      $5      !0, ->11
          2    > > FE_FETCH_RW                                              $5, !1, ->11
    8     3    >   INIT_FCALL                                               'preg_replace_callback'
          4        SEND_VAL                                                 '%2F%5C%5Cu%28%5B0-9a-f%5D%7B4%7D%29%2Fi'
    9     5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F9WXAb%3A9%240'
   11     6        SEND_VAL                                                 ~6
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $7      
    8     9        ASSIGN                                                   !1, $7
    7    10      > JMP                                                      ->2
         11    >   FE_FREE                                                  $5
   13    12        INIT_FCALL                                               'json_encode'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $9      
         15        ASSIGN                                                   !2, $9
   14    16        CONCAT                                           ~11     !2, '%3Cbr%2F%3E%0D%0A'
         17        CONCAT                                           ~12     ~11, !3
         18        ECHO                                                     ~12
         19      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F9WXAb%3A9%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9WXAb
function name:  {closure}
number of ops:  13
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1        INIT_FCALL                                               'mb_convert_encoding'
          2        INIT_FCALL                                               'pack'
          3        SEND_VAL                                                 'H%2A'
          4        FETCH_DIM_R                                      ~1      !0, 1
          5        SEND_VAL                                                 ~1
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        SEND_VAL                                                 'UTF-8'
          9        SEND_VAL                                                 'UTF-16'
         10        DO_ICALL                                         $3      
         11      > RETURN                                                   $3
   11    12*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F9WXAb%3A9%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.26 ms | 1396 KiB | 21 Q