3v4l.org

run code in 500+ PHP versions simultaneously
<?php $md = <<<'MD' Some stuff before this notice which is not relevant. == Upgrade Notice == = 1.3.0 = When using Master Pro, 1.3.0 is the new minimal required version! = 1.1.0 = When using Master Pro, 1.1.0 is the new minimal required version! = 1.0.0 = No upgrade - just install :) [See changelog for all versions](https://plugins.svn.wordpress.org/master-pro/trunk/CHANGELOG.md). MD; $versions = []; $currentVersion = ''; $ignore = true; foreach(explode("\n", $md) as $line) { if (str_starts_with($line, '== Upgrade Notice ==')) { $ignore = false; continue; } if (preg_match('/^= ([0-9.]+) =/', $line, $matches)) { $currentVersion = $matches[1]; continue; } if (true === $ignore || '' === $currentVersion) { continue; } $versions[$currentVersion][] = $line; } print_r($versions);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 33
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 33
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 23
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 23
2 jumps found. (Code = 47) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 29
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 27
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
filename:       /in/aMdXF
function name:  (null)
number of ops:  38
compiled vars:  !0 = $md, !1 = $versions, !2 = $currentVersion, !3 = $ignore, !4 = $line, !5 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'Some+stuff+before+this+notice+which+is+not+relevant.%0A%0A%3D%3D+Upgrade+Notice+%3D%3D%0A%0A%3D+1.3.0+%3D%0A%0AWhen+using+Master+Pro%2C+1.3.0+is+the+new+minimal+required+version%21%0A%0A%3D+1.1.0+%3D%0A%0AWhen+using+Master+Pro%2C+1.1.0+is+the+new+minimal+required+version%21%0A%0A%3D+1.0.0+%3D%0A%0ANo+upgrade+-+just+install+%3A%29%0A%0A%5BSee+changelog+for+all+versions%5D%28https%3A%2F%2Fplugins.svn.wordpress.org%2Fmaster-pro%2Ftrunk%2FCHANGELOG.md%29.'
   23     1        ASSIGN                                                       !1, <array>
   24     2        ASSIGN                                                       !2, ''
   25     3        ASSIGN                                                       !3, <true>
   26     4        INIT_FCALL                                                   'explode'
          5        SEND_VAL                                                     '%0A'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                             $10     
          8      > FE_RESET_R                                           $11     $10, ->33
          9    > > FE_FETCH_R                                                   $11, !4, ->33
   27    10    >   FRAMELESS_ICALL_2                str_starts_with      ~12     !4, '%3D%3D+Upgrade+Notice+%3D%3D'
         11      > JMPZ                                                         ~12, ->14
   28    12    >   ASSIGN                                                       !3, <false>
   29    13      > JMP                                                          ->9
   32    14    >   INIT_FCALL                                                   'preg_match'
         15        SEND_VAL                                                     '%2F%5E%3D+%28%5B0-9.%5D%2B%29+%3D%2F'
         16        SEND_VAR                                                     !4
         17        SEND_REF                                                     !5
         18        DO_ICALL                                             $14     
         19      > JMPZ                                                         $14, ->23
   33    20    >   FETCH_DIM_R                                          ~15     !5, 1
         21        ASSIGN                                                       !2, ~15
   34    22      > JMP                                                          ->9
   37    23    >   TYPE_CHECK                                        8  ~17     !3
         24      > JMPNZ_EX                                             ~17     ~17, ->27
         25    >   IS_IDENTICAL                                         ~18     !2, ''
         26        BOOL                                                 ~17     ~18
         27    > > JMPZ                                                         ~17, ->29
   38    28    > > JMP                                                          ->9
   41    29    >   FETCH_DIM_W                                          $19     !1, !2
         30        ASSIGN_DIM                                                   $19
         31        OP_DATA                                                      !4
   26    32      > JMP                                                          ->9
         33    >   FE_FREE                                                      $11
   44    34        INIT_FCALL                                                   'print_r'
         35        SEND_VAR                                                     !1
         36        DO_ICALL                                                     
         37      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.6 ms | 1664 KiB | 18 Q