3v4l.org

run code in 500+ 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:/in/DZSJ6:7}
number of ops:  16
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        FETCH_DIM_R                                          ~1      !0, 1
          6        FRAMELESS_ICALL_1                dechex              ~2      ~1
          7        FETCH_DIM_R                                          ~3      !0, 2
          8        FRAMELESS_ICALL_1                dechex              ~4      ~3
          9        CONCAT                                               ~5      ~2, ~4
         10        SEND_VAL                                                     ~5
         11        DO_ICALL                                             $6      
         12        SEND_VAR_NO_REF_EX                                           $6
         13        DO_FCALL                                          0  $7      
         14      > RETURN                                                       $7
    9    15*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.72 ms | 2059 KiB | 16 Q