3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['7.2.0-RC2', '7.2.0', '7.2.1', '7.1.0-RC2', '7.1.0', '7.1.5', '5.6.3']; foreach ($a as $version) { var_dump( version_compare($version, '7.2.0', '<'), version_compare($version, '7.1', '>') ); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 18
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 18
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/9ucc3
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $version
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1      > FE_RESET_R                                       $3      !0, ->18
          2    > > FE_FETCH_R                                               $3, !1, ->18
    4     3    >   INIT_FCALL                                               'var_dump'
    5     4        INIT_FCALL                                               'version_compare'
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 '7.2.0'
          7        SEND_VAL                                                 '%3C'
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
    6    10        INIT_FCALL                                               'version_compare'
         11        SEND_VAR                                                 !1
         12        SEND_VAL                                                 '7.1'
         13        SEND_VAL                                                 '%3E'
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        DO_ICALL                                                 
    3    17      > JMP                                                      ->2
         18    >   FE_FREE                                                  $3
    9    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.31 ms | 1395 KiB | 17 Q