3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'a{ra:calc(*(la)100%);font-s'; $string_regex = '((?<!\\\\)(?:\\\\\\\\)*(\'|")(?:.*?[^\\\\])??(?:\\\\\\\\)*\\2)'; $comment_regex = '(\\/\\*(?:(?!\\*\\/).)*\\*\\/)'; $url_regex = '(?<=:| |,|\\(|\\))(url|calc)\\s*(\\()\\s*((?:[^()]+|(?2))*?)\\s*(\\))'; $string = preg_match('/'.$string_regex.'|'.$comment_regex.'|'.$url_regex.'|'.$calc_regex.'/si', $string, $matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/40HHi
function name:  (null)
number of ops:  19
compiled vars:  !0 = $string, !1 = $string_regex, !2 = $comment_regex, !3 = $url_regex, !4 = $calc_regex, !5 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'a%7Bra%3Acalc%28%2A%28la%29100%25%29%3Bfont-s'
    3     1        ASSIGN                                                   !1, '%28%28%3F%3C%21%5C%5C%29%28%3F%3A%5C%5C%5C%5C%29%2A%28%27%7C%22%29%28%3F%3A.%2A%3F%5B%5E%5C%5C%5D%29%3F%3F%28%3F%3A%5C%5C%5C%5C%29%2A%5C2%29'
    4     2        ASSIGN                                                   !2, '%28%5C%2F%5C%2A%28%3F%3A%28%3F%21%5C%2A%5C%2F%29.%29%2A%5C%2A%5C%2F%29'
    5     3        ASSIGN                                                   !3, '%28%3F%3C%3D%3A%7C+%7C%2C%7C%5C%28%7C%5C%29%29%28url%7Ccalc%29%5Cs%2A%28%5C%28%29%5Cs%2A%28%28%3F%3A%5B%5E%28%29%5D%2B%7C%28%3F2%29%29%2A%3F%29%5Cs%2A%28%5C%29%29'
    6     4        INIT_FCALL                                               'preg_match'
          5        CONCAT                                           ~10     '%2F', !1
          6        CONCAT                                           ~11     ~10, '%7C'
          7        CONCAT                                           ~12     ~11, !2
          8        CONCAT                                           ~13     ~12, '%7C'
          9        CONCAT                                           ~14     ~13, !3
         10        CONCAT                                           ~15     ~14, '%7C'
         11        CONCAT                                           ~16     ~15, !4
         12        CONCAT                                           ~17     ~16, '%2Fsi'
         13        SEND_VAL                                                 ~17
         14        SEND_VAR                                                 !0
         15        SEND_REF                                                 !5
         16        DO_ICALL                                         $18     
         17        ASSIGN                                                   !0, $18
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.93 ms | 940 KiB | 16 Q