3v4l.org

run code in 300+ PHP versions simultaneously
<?php $actual = version_compare('1.0.6.8', '1.0.6.10','>'); // 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/i4Aol
function name:  (null)
number of ops:  12
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                                                 '%3E'
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    5     6        ASSIGN                                                   !1, -1
    6     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.56 ms | 1385 KiB | 17 Q