3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "hogehoge\n\n限定生産\n製品情報hogehoge"; $text = preg_replace('/.?限定生産.*$/u', '', $text); var_dump($text);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SdMce
function name:  (null)
number of ops:  11
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'hogehoge%0A%0A%E9%99%90%E5%AE%9A%E7%94%9F%E7%94%A3%0A%E8%A3%BD%E5%93%81%E6%83%85%E5%A0%B1hogehoge'
    6     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F.%3F%E9%99%90%E5%AE%9A%E7%94%9F%E7%94%A3.%2A%24%2Fu'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    7     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.38 ms | 1394 KiB | 17 Q