3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( version_compare('8.0', '9.0.0', '>'), version_compare('8.0-alpha12', '8.0.0-beta1', '>') );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mQ1F2
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
    3     1        INIT_FCALL                                               'version_compare'
          2        SEND_VAL                                                 '8.0'
          3        SEND_VAL                                                 '9.0.0'
          4        SEND_VAL                                                 '%3E'
          5        DO_ICALL                                         $0      
          6        SEND_VAR                                                 $0
    4     7        INIT_FCALL                                               'version_compare'
          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                                                 
    5    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.43 ms | 1394 KiB | 17 Q