3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (version_compare(PHP_VERSION, '6.0.0') >= 0) { echo 'Я использую PHP версии не ниже 6.0.0, моя версия: ' . PHP_VERSION . "\n"; } if (version_compare(PHP_VERSION, '5.3.0') >= 0) { echo 'Я использую PHP версии не ниже 5.3.0, моя версия: ' . PHP_VERSION . "\n"; } if (version_compare(PHP_VERSION, '5.0.0', '>=')) { echo 'Я использую PHP 5, моя версия: ' . PHP_VERSION . "\n"; } if (version_compare(PHP_VERSION, '5.0.0', '<')) { echo 'Я использую PHP 4, моя версия: ' . PHP_VERSION . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 21
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 28
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
Branch analysis from position: 21
Branch analysis from position: 14
Branch analysis from position: 7
filename:       /in/PG81Y
function name:  (null)
number of ops:  29
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'version_compare'
          1        SEND_VAL                                                 '8.0.0'
          2        SEND_VAL                                                 '6.0.0'
          3        DO_ICALL                                         $0      
          4        IS_SMALLER_OR_EQUAL                                      0, $0
          5      > JMPZ                                                     ~1, ->7
    3     6    >   ECHO                                                     '%D0%AF+%D0%B8%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D1%83%D1%8E+PHP+%D0%B2%D0%B5%D1%80%D1%81%D0%B8%D0%B8+%D0%BD%D0%B5+%D0%BD%D0%B8%D0%B6%D0%B5+6.0.0%2C+%D0%BC%D0%BE%D1%8F+%D0%B2%D0%B5%D1%80%D1%81%D0%B8%D1%8F%3A+8.0.0%0A'
    6     7    >   INIT_FCALL                                               'version_compare'
          8        SEND_VAL                                                 '8.0.0'
          9        SEND_VAL                                                 '5.3.0'
         10        DO_ICALL                                         $2      
         11        IS_SMALLER_OR_EQUAL                                      0, $2
         12      > JMPZ                                                     ~3, ->14
    7    13    >   ECHO                                                     '%D0%AF+%D0%B8%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D1%83%D1%8E+PHP+%D0%B2%D0%B5%D1%80%D1%81%D0%B8%D0%B8+%D0%BD%D0%B5+%D0%BD%D0%B8%D0%B6%D0%B5+5.3.0%2C+%D0%BC%D0%BE%D1%8F+%D0%B2%D0%B5%D1%80%D1%81%D0%B8%D1%8F%3A+8.0.0%0A'
   10    14    >   INIT_FCALL                                               'version_compare'
         15        SEND_VAL                                                 '8.0.0'
         16        SEND_VAL                                                 '5.0.0'
         17        SEND_VAL                                                 '%3E%3D'
         18        DO_ICALL                                         $4      
         19      > JMPZ                                                     $4, ->21
   11    20    >   ECHO                                                     '%D0%AF+%D0%B8%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D1%83%D1%8E+PHP+5%2C+%D0%BC%D0%BE%D1%8F+%D0%B2%D0%B5%D1%80%D1%81%D0%B8%D1%8F%3A+8.0.0%0A'
   14    21    >   INIT_FCALL                                               'version_compare'
         22        SEND_VAL                                                 '8.0.0'
         23        SEND_VAL                                                 '5.0.0'
         24        SEND_VAL                                                 '%3C'
         25        DO_ICALL                                         $5      
         26      > JMPZ                                                     $5, ->28
   15    27    >   ECHO                                                     '%D0%AF+%D0%B8%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D1%83%D1%8E+PHP+4%2C+%D0%BC%D0%BE%D1%8F+%D0%B2%D0%B5%D1%80%D1%81%D0%B8%D1%8F%3A+8.0.0%0A'
   16    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.85 ms | 1396 KiB | 15 Q