3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = "1’With the youth in ’68 and ‘86 汉语 �..."; $string = preg_replace('/[\x00-\x1F\x7F-\xFF]/', '', $string); $string = str_replace("�","", $string); print($string); print ord("�");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LqkmR
function name:  (null)
number of ops:  13
compiled vars:  !0 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '1%E2%80%99With+the+youth+in+%E2%80%9968+and+%E2%80%9886+%E6%B1%89%E8%AF%AD+%EF%BF%BD...'
    4     1        FRAMELESS_ICALL_3                preg_replace        ~2      '%2F%5B%5Cx00-%5Cx1F%5Cx7F-%5CxFF%5D%2F', ''
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !0, ~2
    6     4        FRAMELESS_ICALL_3                str_replace         ~4      '%EF%BF%BD', ''
          5        OP_DATA                                                      !0
          6        ASSIGN                                                       !0, ~4
    7     7        ECHO                                                         !0
   10     8        INIT_FCALL                                                   'ord'
          9        SEND_VAL                                                     '%EF%BF%BD'
         10        DO_ICALL                                             $6      
         11        ECHO                                                         $6
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
214.94 ms | 1863 KiB | 19 Q