3v4l.org

run code in 300+ PHP versions simultaneously
<?php const FIRST_CORE_VERSION_REQUIREMENT_SUPPORTED_VERSION = '8.7.7'; function getAllPreCoreVersionRequirementCoreVersions() { static $versions = []; if (empty($versions)) { // Loop through all minor versions including 8.7. foreach (range(0, 7) as $minor) { // The largest patch number in a release was 17 in 8.6.17. Use 27 to // leave room for future security releases. foreach (range(0, 27) as $patch) { $patch_version = "8.$minor.$patch"; if ($patch_version === FIRST_CORE_VERSION_REQUIREMENT_SUPPORTED_VERSION) { // Reverse the order of the versions so that they will be evaluated // from the most recent versions first. $versions = array_reverse($versions); return $versions; } $versions[] = $patch_version; if ($patch === 0) { foreach (['alpha', 'beta', 'rc'] as $prerelease) { // The largest prerelease number was in 8.0.0-beta16. foreach (range(0, 16) as $prerelease_number) { $versions[] = "$patch_version-$prerelease$prerelease_number"; } } } } } } return $versions; } var_dump(count(getAllPreCoreVersionRequirementCoreVersions()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FvUJA
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'FIRST_CORE_VERSION_REQUIREMENT_SUPPORTED_VERSION', '8.7.7'
   35     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'getallprecoreversionrequirementcoreversions'
          3        DO_FCALL                                      0  $0      
          4        COUNT                                            ~1      $0
          5        SEND_VAL                                                 ~1
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function getallprecoreversionrequirementcoreversions:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 56
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 55
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 55
Branch analysis from position: 9
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 53
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 53
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 30
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 52
Branch analysis from position: 34
2 jumps found. (Code = 77) Position 1 = 35, Position 2 = 51
Branch analysis from position: 35
2 jumps found. (Code = 78) Position 1 = 36, Position 2 = 51
Branch analysis from position: 36
2 jumps found. (Code = 77) Position 1 = 41, Position 2 = 49
Branch analysis from position: 41
2 jumps found. (Code = 78) Position 1 = 42, Position 2 = 49
Branch analysis from position: 42
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
Branch analysis from position: 49
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
Branch analysis from position: 49
Branch analysis from position: 51
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 51
Branch analysis from position: 52
Branch analysis from position: 53
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 53
Branch analysis from position: 55
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 55
Branch analysis from position: 56
filename:       /in/FvUJA
function name:  getAllPreCoreVersionRequirementCoreVersions
number of ops:  58
compiled vars:  !0 = $versions, !1 = $minor, !2 = $patch, !3 = $patch_version, !4 = $prerelease, !5 = $prerelease_number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   BIND_STATIC                                              !0
    7     1        ISSET_ISEMPTY_CV                                         !0
          2      > JMPZ                                                     ~6, ->56
    9     3    >   INIT_FCALL                                               'range'
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 7
          6        DO_ICALL                                         $7      
          7      > FE_RESET_R                                       $8      $7, ->55
          8    > > FE_FETCH_R                                               $8, !1, ->55
   12     9    >   INIT_FCALL                                               'range'
         10        SEND_VAL                                                 0
         11        SEND_VAL                                                 27
         12        DO_ICALL                                         $9      
         13      > FE_RESET_R                                       $10     $9, ->53
         14    > > FE_FETCH_R                                               $10, !2, ->53
   13    15    >   ROPE_INIT                                     4  ~12     '8.'
         16        ROPE_ADD                                      1  ~12     ~12, !1
         17        ROPE_ADD                                      2  ~12     ~12, '.'
         18        ROPE_END                                      3  ~11     ~12, !2
         19        ASSIGN                                                   !3, ~11
   14    20        FETCH_CONSTANT                                   ~15     'FIRST_CORE_VERSION_REQUIREMENT_SUPPORTED_VERSION'
         21        IS_IDENTICAL                                             !3, ~15
         22      > JMPZ                                                     ~16, ->30
   17    23    >   INIT_FCALL                                               'array_reverse'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                         $17     
         26        ASSIGN                                                   !0, $17
   18    27        FE_FREE                                                  $10
         28        FE_FREE                                                  $8
         29      > RETURN                                                   !0
   20    30    >   ASSIGN_DIM                                               !0
         31        OP_DATA                                                  !3
   21    32        IS_IDENTICAL                                             !2, 0
         33      > JMPZ                                                     ~20, ->52
   22    34    > > FE_RESET_R                                       $21     <array>, ->51
         35    > > FE_FETCH_R                                               $21, !4, ->51
   24    36    >   INIT_FCALL                                               'range'
         37        SEND_VAL                                                 0
         38        SEND_VAL                                                 16
         39        DO_ICALL                                         $22     
         40      > FE_RESET_R                                       $23     $22, ->49
         41    > > FE_FETCH_R                                               $23, !5, ->49
   25    42    >   ROPE_INIT                                     4  ~26     !3
         43        ROPE_ADD                                      1  ~26     ~26, '-'
         44        ROPE_ADD                                      2  ~26     ~26, !4
         45        ROPE_END                                      3  ~25     ~26, !5
         46        ASSIGN_DIM                                               !0
         47        OP_DATA                                                  ~25
   24    48      > JMP                                                      ->41
         49    >   FE_FREE                                                  $23
   22    50      > JMP                                                      ->35
         51    >   FE_FREE                                                  $21
   12    52    > > JMP                                                      ->14
         53    >   FE_FREE                                                  $10
    9    54      > JMP                                                      ->8
         55    >   FE_FREE                                                  $8
   32    56    > > RETURN                                                   !0
   33    57*     > RETURN                                                   null

End of function getallprecoreversionrequirementcoreversions

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.58 ms | 1411 KiB | 20 Q