3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump( version_compare('8.0', '9.0.0', '>'), version_compare('8.0-alpha12', '8.0.0-beta1', '>') ); var_dump( version_compare('8.0.0', '9.0.0', '>'), version_compare('8.0.0-alpha12', '8.0.0-beta1', '>') );
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/E917A
function name:  (null)
number of ops:  29
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   INIT_FCALL                                               'var_dump'
         1        INIT_FCALL                                               'version_compare'
   3     2        SEND_VAL                                                 '8.0'
         3        SEND_VAL                                                 '9.0.0'
         4        SEND_VAL                                                 '%3E'
         5        DO_ICALL                                         $0      
         6        SEND_VAR                                                 $0
         7        INIT_FCALL                                               'version_compare'
   4     8        SEND_VAL                                                 '8.0-alpha12'
         9        SEND_VAL                                                 '8.0.0-beta1'
        10        SEND_VAL                                                 '%3E'
        11        DO_ICALL                                         $1      
        12        SEND_VAR                                                 $1
        13        DO_ICALL                                                 
   6    14        INIT_FCALL                                               'var_dump'
        15        INIT_FCALL                                               'version_compare'
   7    16        SEND_VAL                                                 '8.0.0'
        17        SEND_VAL                                                 '9.0.0'
        18        SEND_VAL                                                 '%3E'
        19        DO_ICALL                                         $3      
        20        SEND_VAR                                                 $3
        21        INIT_FCALL                                               'version_compare'
   8    22        SEND_VAL                                                 '8.0.0-alpha12'
        23        SEND_VAL                                                 '8.0.0-beta1'
        24        SEND_VAL                                                 '%3E'
        25        DO_ICALL                                         $4      
        26        SEND_VAR                                                 $4
        27        DO_ICALL                                                 
        28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0