3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo version_compare('5.6.2.1', '5.6.2.2b2'), "\n"; echo version_compare('5.6.2.2b2', '5.6.2.2b2'), "\n"; echo version_compare('5.6.2.2', '5.6.2.2b2'), "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/II2EE
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'version_compare'
          1        SEND_VAL                                                 '5.6.2.1'
          2        SEND_VAL                                                 '5.6.2.2b2'
          3        DO_ICALL                                         $0      
          4        ECHO                                                     $0
          5        ECHO                                                     '%0A'
    3     6        INIT_FCALL                                               'version_compare'
          7        SEND_VAL                                                 '5.6.2.2b2'
          8        SEND_VAL                                                 '5.6.2.2b2'
          9        DO_ICALL                                         $1      
         10        ECHO                                                     $1
         11        ECHO                                                     '%0A'
    4    12        INIT_FCALL                                               'version_compare'
         13        SEND_VAL                                                 '5.6.2.2'
         14        SEND_VAL                                                 '5.6.2.2b2'
         15        DO_ICALL                                         $2      
         16        ECHO                                                     $2
         17        ECHO                                                     '%0A'
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.71 ms | 1394 KiB | 15 Q