3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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/dl3Dg
function name:  (null)
number of ops:  11
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        DO_ICALL                                         $2      
         4        ASSIGN                                                   !0, $2
   5     5        ASSIGN                                                   !1, -1
   6     6        INIT_FCALL                                               'var_dump'
         7        SEND_VAR                                                 !1
         8        SEND_VAR                                                 !0
         9        DO_ICALL                                                 
        10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0