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($matches); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 21
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 21
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/3rMOH
function name:  (null)
number of ops:  26
compiled vars:  !0 = $bigKml, !1 = $pattern, !2 = $imageTags, !3 = $imageTag, !4 = $urlPattern, !5 = $oldUrls, !6 = $oldUrl, !7 = $matches
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                                       $11     !2, ->21
          8    > > FE_FETCH_R                                               $11, !3, ->21
    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                                      ~14     !5, 0
         16        ASSIGN                                                   !6, ~14
    9    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !6
         19        DO_ICALL                                                 
    5    20      > JMP                                                      ->8
         21    >   FE_FREE                                                  $11
   11    22        INIT_FCALL                                               'print_r'
         23        SEND_VAR                                                 !7
         24        DO_ICALL                                                 
   12    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.33 ms | 1395 KiB | 17 Q