3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<p>Paragraaf</p><h1>Kop 1</h1><h2>Kop 2</h2>'; echo $html; echo PHP_EOL; echo PHP_EOL; $html = preg_replace('#<p>.*<\/p>#','',$html); echo $html;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/itSkD
function name:  (null)
number of ops:  12
compiled vars:  !0 = $html
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cp%3EParagraaf%3C%2Fp%3E%3Ch1%3EKop+1%3C%2Fh1%3E%3Ch2%3EKop+2%3C%2Fh2%3E'
    3     1        ECHO                                                     !0
    4     2        ECHO                                                     '%0A'
    5     3        ECHO                                                     '%0A'
    6     4        INIT_FCALL                                               'preg_replace'
          5        SEND_VAL                                                 '%23%3Cp%3E.%2A%3C%5C%2Fp%3E%23'
          6        SEND_VAL                                                 ''
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $2      
          9        ASSIGN                                                   !0, $2
    7    10        ECHO                                                     !0
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.63 ms | 1450 KiB | 14 Q