3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lib_path = 'core/modules/statistics/statistics.js'; $re = '/<script.*?src=".*?' . $lib_path . '.*?">/is'; $content = '<script src="http://example.com/core/modules/statistics/statistics.js"></script>'; var_dump(preg_match($re, $content));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0KQFr
function name:  (null)
number of ops:  13
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        CONCAT                                           ~4      '%2F%3Cscript.%2A%3Fsrc%3D%22.%2A%3F', !0
          2        CONCAT                                           ~5      ~4, '.%2A%3F%22%3E%2Fis'
          3        ASSIGN                                                   !1, ~5
    5     4        ASSIGN                                                   !2, '%3Cscript+src%3D%22http%3A%2F%2Fexample.com%2Fcore%2Fmodules%2Fstatistics%2Fstatistics.js%22%3E%3C%2Fscript%3E'
    7     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'preg_match'
          7        SEND_VAR                                                 !1
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $8      
         10        SEND_VAR                                                 $8
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.57 ms | 1385 KiB | 17 Q