3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Sorry that meant to say hungover and feeling sorry for myself. 😩"; $str = "I can spend upto £40 a week on cigarettes ... £160 a month. I could go on holiday for that ... ☀ðŸ˜"; echo mb_convert_encoding($str, "UTF-8"); //$pattern = '/[😩]/i'; // $str = preg_replace($pattern, '', $str); // echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U5sUZ
function name:  (null)
number of ops:  8
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Sorry+that+meant+to+say+hungover+and+feeling+sorry+for+myself.+%C3%B0%C5%B8%CB%9C%C2%A9'
    4     1        ASSIGN                                                   !0, 'I+can+spend+upto+%C3%82%C2%A340+a+week+on+cigarettes+...+%C3%82%C2%A3160+a+month.+I+could+go+on+holiday+for+that+...+%C3%A2%CB%9C%E2%82%AC%C3%B0%C5%B8%CB%9C'
    5     2        INIT_FCALL                                               'mb_convert_encoding'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'UTF-8'
          5        DO_ICALL                                         $3      
          6        ECHO                                                     $3
    9     7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.43 ms | 1394 KiB | 15 Q