3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lib_path = 'core/modules/statistics/statistics.js'; $re = '/(<script src=").*?(core/modules/statistics/statistics.js).*?(">)/is'; $content = 'Some content <script src="http://example.com/core/modules/statistics/statistics.js"></script> Etc.'; var_dump(preg_match($re, $content));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oZ7XI
function name:  (null)
number of ops:  11
compiled vars:  !0 = $lib_path, !1 = $re, !2 = $content
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'core%2Fmodules%2Fstatistics%2Fstatistics.js'
    4     1        ASSIGN                                                   !1, '%2F%28%3Cscript+src%3D%22%29.%2A%3F%28core%2Fmodules%2Fstatistics%2Fstatistics.js%29.%2A%3F%28%22%3E%29%2Fis'
    5     2        ASSIGN                                                   !2, 'Some+content%0A%3Cscript+src%3D%22http%3A%2F%2Fexample.com%2Fcore%2Fmodules%2Fstatistics%2Fstatistics.js%22%3E%3C%2Fscript%3E%0AEtc.'
    9     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'preg_match'
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $6      
          8        SEND_VAR                                                 $6
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.72 ms | 1398 KiB | 17 Q