3v4l.org

run code in 300+ PHP versions simultaneously
<?php $joomlaRelease = '5.3'; // Check for each major version branch, default to 3.x as the oldest version supported by the client is Joomla 3.2 if (version_compare($joomlaRelease, '6.0', '>=')) { echo "60"; } if (version_compare($joomlaRelease, '5.0', '>=')) { echo "50"; } if (version_compare($joomlaRelease, '4.0', '>=')) { echo "40"; } else { echo "30"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 8
filename:       /in/6iKuE
function name:  (null)
number of ops:  25
compiled vars:  !0 = $joomlaRelease
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '5.3'
    6     1        INIT_FCALL                                               'version_compare'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '6.0'
          4        SEND_VAL                                                 '%3E%3D'
          5        DO_ICALL                                         $2      
          6      > JMPZ                                                     $2, ->8
    8     7    >   ECHO                                                     '60'
   11     8    >   INIT_FCALL                                               'version_compare'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 '5.0'
         11        SEND_VAL                                                 '%3E%3D'
         12        DO_ICALL                                         $3      
         13      > JMPZ                                                     $3, ->15
   13    14    >   ECHO                                                     '50'
   16    15    >   INIT_FCALL                                               'version_compare'
         16        SEND_VAR                                                 !0
         17        SEND_VAL                                                 '4.0'
         18        SEND_VAL                                                 '%3E%3D'
         19        DO_ICALL                                         $4      
         20      > JMPZ                                                     $4, ->23
   18    21    >   ECHO                                                     '40'
   16    22      > JMP                                                      ->24
   22    23    >   ECHO                                                     '30'
   23    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.88 ms | 1000 KiB | 14 Q