3v4l.org

run code in 300+ PHP versions simultaneously
<?php function parseCss($rawText) { $selections = preg_match("/\/\* customize_(.+?) \*\/(.+?)\/\* customize_\1 \*\//",$rawText); print_r($selections); } parseCss(' #page #header #logo a { /* customize_header_logo */ color: #ffffff; /* customize_header_logo */ /* customize_header_logo_text */ font: normal bold 32px Arial; /* customize_header_logo_text */ text-decoration:none; }');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6BcV4
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'parsecss'
          1        SEND_VAL                                                 '%0A%23page+%23header+%23logo+a+%7B%0A%09%2F%2A+customize_header_logo+%2A%2F+color%3A+%23ffffff%3B+%2F%2A+customize_header_logo+%2A%2F%0A%09%2F%2A+customize_header_logo_text+%2A%2F+font%3A+normal+bold+32px+Arial%3B+%2F%2A+customize_header_logo_text+%2A%2F%0A%09text-decoration%3Anone%3B%0A%7D'
          2        DO_FCALL                                      0          
   14     3      > RETURN                                                   1

Function parsecss:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6BcV4
function name:  parseCss
number of ops:  10
compiled vars:  !0 = $rawText, !1 = $selections
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5C%2F%5C%2A+customize_%28.%2B%3F%29+%5C%2A%5C%2F%28.%2B%3F%29%5C%2F%5C%2A+customize_%01+%5C%2A%5C%2F%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !1, $2
    5     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    6     9      > RETURN                                                   null

End of function parsecss

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.33 ms | 1389 KiB | 18 Q