3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $actual = version_compare('1.0.6.8', '1.0.6.10','<')."<br>"; // returns -1 if the first version is lower than the second, 0 if they are equal, and 1 if the second is lower. $expected = -1; var_dump($expected, $actual);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J9l5L
function name:  (null)
number of ops:  14
compiled vars:  !0 = $actual, !1 = $expected
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'version_compare'
          1        SEND_VAL                                                 '1.0.6.8'
          2        SEND_VAL                                                 '1.0.6.10'
          3        SEND_VAL                                                 '%3C'
          4        DO_ICALL                                         $2      
          5        CONCAT                                           ~3      $2, '%3Cbr%3E'
          6        ASSIGN                                           ~4      !0, ~3
          7        ECHO                                                     ~4
    5     8        ASSIGN                                                   !1, -1
    6     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.31 ms | 1394 KiB | 17 Q