3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content= <<<'DATA' ## Section title Lorem ipsum *dolores* sic amet. $E = mc^2$, and since : $$ \cos(3*\pi*\sqrt{2}) = \delta $$ DATA; $content = preg_replace_callback( '/^\$+(?:\R(?!\$+$).*)*\R\$+$(*SKIP)(*FAIL)|([*_])((?:(?!\1).)+)\1/m', function ($m) { return "<i>" . $m[2] . "</i>"; }, $content ); echo $content;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rSl2r
function name:  (null)
number of ops:  10
compiled vars:  !0 = $content
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%23%23+Section+title%0A%0ALorem+ipsum+%2Adolores%2A+sic+amet.+%24E+%3D+mc%5E2%24%2C+and+since+%3A%0A%0A%24%24%0A%5Ccos%283%2A%5Cpi%2A%5Csqrt%7B2%7D%29+%3D+%5Cdelta%0A%24%24'
   13     1        INIT_FCALL                                               'preg_replace_callback'
   14     2        SEND_VAL                                                 '%2F%5E%5C%24%2B%28%3F%3A%5CR%28%3F%21%5C%24%2B%24%29.%2A%29%2A%5CR%5C%24%2B%24%28%2ASKIP%29%28%2AFAIL%29%7C%28%5B%2A_%5D%29%28%28%3F%3A%28%3F%21%5C1%29.%29%2B%29%5C1%2Fm'
   15     3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FrSl2r%3A15%240'
   17     4        SEND_VAL                                                 ~2
   18     5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
   13     7        ASSIGN                                                   !0, $3
   21     8        ECHO                                                     !0
   22     9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FrSl2r%3A15%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rSl2r
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
   16     1        FETCH_DIM_R                                      ~1      !0, 2
          2        CONCAT                                           ~2      '%3Ci%3E', ~1
          3        CONCAT                                           ~3      ~2, '%3C%2Fi%3E'
          4      > RETURN                                                   ~3
   17     5*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FrSl2r%3A15%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.31 ms | 1395 KiB | 15 Q