3v4l.org

run code in 300+ PHP versions simultaneously
<?php $versions = ['7', '7.2', '8','8.2', '8.2.3', '8.3', '8.2.3.8.alpha']; while ($version1 = array_pop($versions)) { foreach ($versions as $version2) { echo $version1.' '.(version_compare($version1,$version2) < 0 ? '<' : '>=').' '.$version2."\n"; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 2
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 20
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 20
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 2
Branch analysis from position: 26
Branch analysis from position: 2
Branch analysis from position: 20
filename:       /in/T1lkh
function name:  (null)
number of ops:  27
compiled vars:  !0 = $versions, !1 = $version2, !2 = $version1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1      > JMP                                                      ->21
    6     2    > > FE_RESET_R                                       $4      !0, ->20
          3    > > FE_FETCH_R                                               $4, !1, ->20
    7     4    >   CONCAT                                           ~5      !2, '+'
          5        INIT_FCALL                                               'version_compare'
          6        SEND_VAR                                                 !2
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $6      
          9        IS_SMALLER                                               $6, 0
         10      > JMPZ                                                     ~7, ->13
         11    >   QM_ASSIGN                                        ~8      '%3C'
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~8      '%3E%3D'
         14    >   CONCAT                                           ~9      ~5, ~8
         15        CONCAT                                           ~10     ~9, '+'
         16        CONCAT                                           ~11     ~10, !1
         17        CONCAT                                           ~12     ~11, '%0A'
         18        ECHO                                                     ~12
    6    19      > JMP                                                      ->3
         20    >   FE_FREE                                                  $4
    5    21    >   INIT_FCALL                                               'array_pop'
         22        SEND_REF                                                 !0
         23        DO_ICALL                                         $13     
         24        ASSIGN                                           ~14     !2, $13
         25      > JMPNZ                                                    ~14, ->2
    9    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.81 ms | 1007 KiB | 15 Q