3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Please join me in this prayer. &#55357;&#56911;&#10084;&#65039;"; var_export( preg_replace_callback( "/&#(\d{5});&#(\d{5});/", function($m) { return iconv("UTF-16BE", "UTF-8", hex2bin(dechex($m[1]) . dechex($m[2]))); }, $str ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DZSJ6
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Please+join+me+in+this+prayer.+%26%2355357%3B%26%2356911%3B%26%2310084%3B%26%2365039%3B'
    4     1        INIT_FCALL                                               'var_export'
    5     2        INIT_FCALL                                               'preg_replace_callback'
    6     3        SEND_VAL                                                 '%2F%26%23%28%5Cd%7B5%7D%29%3B%26%23%28%5Cd%7B5%7D%29%3B%2F'
    7     4        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
    9     5        SEND_VAL                                                 ~2
   10     6        SEND_VAR                                                 !0
    5     7        DO_ICALL                                         $3      
   10     8        SEND_VAR                                                 $3
    4     9        DO_ICALL                                                 
   12    10      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DZSJ6
function name:  {closure}
number of ops:  20
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        INIT_FCALL_BY_NAME                                       'iconv'
          2        SEND_VAL_EX                                              'UTF-16BE'
          3        SEND_VAL_EX                                              'UTF-8'
          4        INIT_FCALL                                               'hex2bin'
          5        INIT_FCALL                                               'dechex'
          6        FETCH_DIM_R                                      ~1      !0, 1
          7        SEND_VAL                                                 ~1
          8        DO_ICALL                                         $2      
          9        INIT_FCALL                                               'dechex'
         10        FETCH_DIM_R                                      ~3      !0, 2
         11        SEND_VAL                                                 ~3
         12        DO_ICALL                                         $4      
         13        CONCAT                                           ~5      $2, $4
         14        SEND_VAL                                                 ~5
         15        DO_ICALL                                         $6      
         16        SEND_VAR_NO_REF_EX                                       $6
         17        DO_FCALL                                      0  $7      
         18      > RETURN                                                   $7
    9    19*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.2 ms | 1006 KiB | 17 Q