3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TEXT {swal title:='<span style="font-size: 16px;">INFORMATION</span>',html:='<span style="font-size: 14px;">Mask and sanitary pass are</span><b><span style="font-size: 14px; color: #FF0000;"> mandatory for all adults and kids from 12 to 17 to....</span></b><br /><br /><b>Thanks!</b>',icon:='info',confirmButtonText:='OK',iconColor:='#FF0000'}{/swal} TEXT; echo preg_replace_callback( "~^{swal |\G(?!^)(?:(,?[a-z]+:=')(.*?)(')|}{/swal}(*SKIP))~mi", function($m) { return count($m) === 4 ? $m[1] . htmlentities($m[2]) . $m[3] : $m[0]; }, $text );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QiGci
function name:  (null)
number of ops:  9
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7Bswal+title%3A%3D%27%3Cspan+style%3D%22font-size%3A+16px%3B%22%3EINFORMATION%3C%2Fspan%3E%27%2Chtml%3A%3D%27%3Cspan+style%3D%22font-size%3A+14px%3B%22%3EMask+and+sanitary+pass+are%3C%2Fspan%3E%3Cb%3E%3Cspan+style%3D%22font-size%3A+14px%3B+color%3A+%23FF0000%3B%22%3E+mandatory+for+all+adults+and+kids+from+12+to+17+to....%3C%2Fspan%3E%3C%2Fb%3E%3Cbr+%2F%3E%3Cbr+%2F%3E%3Cb%3EThanks%21%3C%2Fb%3E%27%2Cicon%3A%3D%27info%27%2CconfirmButtonText%3A%3D%27OK%27%2CiconColor%3A%3D%27%23FF0000%27%7D%7B%2Fswal%7D'
    7     1        INIT_FCALL                                               'preg_replace_callback'
    8     2        SEND_VAL                                                 '%7E%5E%7Bswal+%7C%5CG%28%3F%21%5E%29%28%3F%3A%28%2C%3F%5Ba-z%5D%2B%3A%3D%27%29%28.%2A%3F%29%28%27%29%7C%7D%7B%2Fswal%7D%28%2ASKIP%29%29%7Emi'
    9     3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FQiGci%3A9%240'
   11     4        SEND_VAL                                                 ~2
   12     5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        ECHO                                                     $3
   13     8      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FQiGci%3A9%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QiGci
function name:  {closure}
number of ops:  18
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1        COUNT                                            ~1      !0
          2        IS_IDENTICAL                                             ~1, 4
          3      > JMPZ                                                     ~2, ->14
          4    >   FETCH_DIM_R                                      ~3      !0, 1
          5        INIT_FCALL                                               'htmlentities'
          6        FETCH_DIM_R                                      ~4      !0, 2
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                         $5      
          9        CONCAT                                           ~6      ~3, $5
         10        FETCH_DIM_R                                      ~7      !0, 3
         11        CONCAT                                           ~8      ~6, ~7
         12        QM_ASSIGN                                        ~9      ~8
         13      > JMP                                                      ->16
         14    >   FETCH_DIM_R                                      ~10     !0, 0
         15        QM_ASSIGN                                        ~9      ~10
         16    > > RETURN                                                   ~9
   11    17*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FQiGci%3A9%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.39 ms | 1396 KiB | 17 Q