3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bigKml = "<br><img src='files/bagel.png'><br><br>"; $pattern = '/<img src=.*?>/'; preg_match($pattern, $bigKml, $imageTags); foreach($imageTags as $imageTag) { $urlPattern = "'.*'"; preg_match($urlPattern, $imageTag, $oldUrls); $oldUrl = $oldUrls[0]; //print_r($oldUrl); } print_r($imageTags); ?>

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 18
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/V6Zce
function name:  (null)
number of ops:  23
compiled vars:  !0 = $bigKml, !1 = $pattern, !2 = $imageTags, !3 = $imageTag, !4 = $urlPattern, !5 = $oldUrls, !6 = $oldUrl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cbr%3E%3Cimg+src%3D%27files%2Fbagel.png%27%3E%3Cbr%3E%3Cbr%3E'
    3     1        ASSIGN                                                   !1, '%2F%3Cimg+src%3D.%2A%3F%3E%2F'
    4     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    5     7      > FE_RESET_R                                       $10     !2, ->18
          8    > > FE_FETCH_R                                               $10, !3, ->18
    6     9    >   ASSIGN                                                   !4, '%27.%2A%27'
    7    10        INIT_FCALL                                               'preg_match'
         11        SEND_VAR                                                 !4
         12        SEND_VAR                                                 !3
         13        SEND_REF                                                 !5
         14        DO_ICALL                                                 
    8    15        FETCH_DIM_R                                      ~13     !5, 0
         16        ASSIGN                                                   !6, ~13
    5    17      > JMP                                                      ->8
         18    >   FE_FREE                                                  $10
   11    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                                 
   12    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.17 ms | 1395 KiB | 17 Q