3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '<p style=\"font-family: &quot;Open Sans&quot;, sans-serif; font-size: 10px; color: rgb(60, 170, 80); line-height: 150%; text-align: right; padding-top: 0px; padding-bottom: 0px; margin: 0px; overflow: hidden;\"><strong>Search for:<\/strong> <span style=\"color:#888888;\">2 to 15 People, \u00b120$ Per Person, Informal, Available on Date<\/span>\n<\/p>'; echo preg_replace_callback('/\\\\u([0-9a-fA-F]{4})/', function ($match) { return mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE'); }, str_replace(['\"', '\/', '&quot;', '\n'], ['"', '/', '\'', "\n"], $str));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fTtLh
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cp+style%3D%5C%22font-family%3A+%26quot%3BOpen+Sans%26quot%3B%2C+sans-serif%3B+font-size%3A+10px%3B+color%3A+rgb%2860%2C+170%2C+80%29%3B+line-height%3A+150%25%3B+text-align%3A+right%3B+padding-top%3A+0px%3B+padding-bottom%3A+0px%3B+margin%3A+0px%3B+overflow%3A+hidden%3B%5C%22%3E%3Cstrong%3ESearch+for%3A%3C%5C%2Fstrong%3E+%3Cspan+style%3D%5C%22color%3A%23888888%3B%5C%22%3E2+to+15+People%2C+%5Cu00b120%24+Per+Person%2C+Informal%2C+Available+on+Date%3C%5C%2Fspan%3E%5Cn%3C%5C%2Fp%3E'
    4     1        INIT_FCALL                                               'preg_replace_callback'
          2        SEND_VAL                                                 '%2F%5C%5Cu%28%5B0-9a-fA-F%5D%7B4%7D%29%2F'
          3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
    6     4        SEND_VAL                                                 ~2
          5        INIT_FCALL                                               'str_replace'
          6        SEND_VAL                                                 <array>
          7        SEND_VAL                                                 <array>
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
    4    11        DO_ICALL                                         $4      
    6    12        ECHO                                                     $4
         13      > 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/fTtLh
function name:  {closure}
number of ops:  13
compiled vars:  !0 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     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                                                 'UCS-2BE'
         10        DO_ICALL                                         $3      
         11      > RETURN                                                   $3
    6    12*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.75 ms | 1002 KiB | 17 Q