3v4l.org

run code in 300+ 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 = 36
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 36
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 26
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 26
2 jumps found. (Code = 47) Position 1 = 28, Position 2 = 30
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 32
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 30
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
filename:       /in/aMdXF
function name:  (null)
number of ops:  41
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, ->36
          9    > > FE_FETCH_R                                               $11, !4, ->36
   27    10    >   INIT_FCALL                                               'str_starts_with'
         11        SEND_VAR                                                 !4
         12        SEND_VAL                                                 '%3D%3D+Upgrade+Notice+%3D%3D'
         13        DO_ICALL                                         $12     
         14      > JMPZ                                                     $12, ->17
   28    15    >   ASSIGN                                                   !3, <false>
   29    16      > JMP                                                      ->9
   32    17    >   INIT_FCALL                                               'preg_match'
         18        SEND_VAL                                                 '%2F%5E%3D+%28%5B0-9.%5D%2B%29+%3D%2F'
         19        SEND_VAR                                                 !4
         20        SEND_REF                                                 !5
         21        DO_ICALL                                         $14     
         22      > JMPZ                                                     $14, ->26
   33    23    >   FETCH_DIM_R                                      ~15     !5, 1
         24        ASSIGN                                                   !2, ~15
   34    25      > JMP                                                      ->9
   37    26    >   TYPE_CHECK                                    8  ~17     !3
         27      > JMPNZ_EX                                         ~17     ~17, ->30
         28    >   IS_IDENTICAL                                     ~18     !2, ''
         29        BOOL                                             ~17     ~18
         30    > > JMPZ                                                     ~17, ->32
   38    31    > > JMP                                                      ->9
   41    32    >   FETCH_DIM_W                                      $19     !1, !2
         33        ASSIGN_DIM                                               $19
         34        OP_DATA                                                  !4
   26    35      > JMP                                                      ->9
         36    >   FE_FREE                                                  $11
   44    37        INIT_FCALL                                               'print_r'
         38        SEND_VAR                                                 !1
         39        DO_ICALL                                                 
         40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.47 ms | 1006 KiB | 17 Q