3v4l.org

run code in 300+ PHP versions simultaneously
<?php $message = "输入法. 手写; 拼音; 关闭. 百科 文库 hao123 | 更多>> · 把百度设为主页把百度设为主页关于百度About Baidu. ©2014 Baidu 使用百度前必读 京ICP证030173号.";$end_html = 0;$start_html = 1;$tmp_message = '';$message = ' ' . $message . ' ';$html_entities_match = array('#&(?!(\#[0-9]+;))#', '#<#', '#>#');$html_entities_replace = array('&amp;', '&lt;', '&gt;');$result = preg_replace($html_entities_match, $html_entities_replace, substr($message, $end_html + 1, ($start_html - $end_html - 1)));echo $result;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q1UsE
function name:  (null)
number of ops:  25
compiled vars:  !0 = $message, !1 = $end_html, !2 = $start_html, !3 = $tmp_message, !4 = $html_entities_match, !5 = $html_entities_replace, !6 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%E8%BE%93%E5%85%A5%E6%B3%95.+%E6%89%8B%E5%86%99%3B+%E6%8B%BC%E9%9F%B3%3B+%E5%85%B3%E9%97%AD.+%E7%99%BE%E7%A7%91+%E6%96%87%E5%BA%93+hao123+%7C+%E6%9B%B4%E5%A4%9A%3E%3E+%C2%B7+%E6%8A%8A%E7%99%BE%E5%BA%A6%E8%AE%BE%E4%B8%BA%E4%B8%BB%E9%A1%B5%E6%8A%8A%E7%99%BE%E5%BA%A6%E8%AE%BE%E4%B8%BA%E4%B8%BB%E9%A1%B5%E5%85%B3%E4%BA%8E%E7%99%BE%E5%BA%A6About+Baidu.+%C2%A92014+Baidu+%E4%BD%BF%E7%94%A8%E7%99%BE%E5%BA%A6%E5%89%8D%E5%BF%85%E8%AF%BB+%E4%BA%ACICP%E8%AF%81030173%E5%8F%B7.'
          1        ASSIGN                                                   !1, 0
          2        ASSIGN                                                   !2, 1
          3        ASSIGN                                                   !3, ''
          4        CONCAT                                           ~11     '+', !0
          5        CONCAT                                           ~12     ~11, '+'
          6        ASSIGN                                                   !0, ~12
          7        ASSIGN                                                   !4, <array>
          8        ASSIGN                                                   !5, <array>
          9        INIT_FCALL                                               'preg_replace'
         10        SEND_VAR                                                 !4
         11        SEND_VAR                                                 !5
         12        INIT_FCALL                                               'substr'
         13        SEND_VAR                                                 !0
         14        ADD                                              ~16     !1, 1
         15        SEND_VAL                                                 ~16
         16        SUB                                              ~17     !2, !1
         17        SUB                                              ~18     ~17, 1
         18        SEND_VAL                                                 ~18
         19        DO_ICALL                                         $19     
         20        SEND_VAR                                                 $19
         21        DO_ICALL                                         $20     
         22        ASSIGN                                                   !6, $20
         23        ECHO                                                     !6
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.39 ms | 1395 KiB | 17 Q