3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "PHP version ".phpversion()."\n"; if (version_compare(phpversion(), '5.5.0', '>=') ){ echo "Yay!\n"; } else{ echo "Nay\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EAVFZ
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'phpversion'
          1        DO_ICALL                                         $0      
          2        CONCAT                                           ~1      'PHP+version+', $0
          3        CONCAT                                           ~2      ~1, '%0A'
          4        ECHO                                                     ~2
    6     5        INIT_FCALL                                               'version_compare'
          6        INIT_FCALL                                               'phpversion'
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        SEND_VAL                                                 '5.5.0'
         10        SEND_VAL                                                 '%3E%3D'
         11        DO_ICALL                                         $4      
         12      > JMPZ                                                     $4, ->15
    7    13    >   ECHO                                                     'Yay%21%0A'
         14      > JMP                                                      ->16
   10    15    >   ECHO                                                     'Nay%0A'
   11    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.97 ms | 1399 KiB | 17 Q