3v4l.org

run code in 300+ 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:  16
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        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5B%5Cx00-%5Cx1F%5Cx7F-%5CxFF%5D%2F'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    6     7        INIT_FCALL                                               'str_replace'
          8        SEND_VAL                                                 '%EF%BF%BD'
          9        SEND_VAL                                                 ''
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        ASSIGN                                                   !0, $4
    7    13        ECHO                                                     !0
   10    14        ECHO                                                     239
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.48 ms | 1000 KiB | 15 Q