3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TEXT <html>[sourcecode language='php']<?php echo "hello world"; ?>[/sourcecode]</html> TEXT; echo strip_tags($text); echo "\n---\n"; var_export( preg_replace(['#</?[a-z][^>]*>#i', '#\[/?sourcecode[^]]*]#i'], '', $text) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vClm2
function name:  (null)
number of ops:  15
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Chtml%3E%5Bsourcecode+language%3D%27php%27%5D%3C%3Fphp+echo+%22hello+world%22%3B+%3F%3E%5B%2Fsourcecode%5D%3C%2Fhtml%3E'
    7     1        INIT_FCALL                                               'strip_tags'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ECHO                                                     $2
    8     5        ECHO                                                     '%0A---%0A'
    9     6        INIT_FCALL                                               'var_export'
   10     7        INIT_FCALL                                               'preg_replace'
          8        SEND_VAL                                                 <array>
          9        SEND_VAL                                                 ''
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $3      
         12        SEND_VAR                                                 $3
    9    13        DO_ICALL                                                 
   11    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.4 ms | 1011 KiB | 16 Q