3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('DEFINED', '1.3.0.0'); $version = '1.6.1.1'; print ( version_compare(DEFINED, $version, '>')); print ( version_compare(NOT_DEFINED, $version, '>')); print ( version_compare(DEFINED, $version, '<')); print ( version_compare(NOT_DEFINED, $version, '<'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aWVbH
function name:  (null)
number of ops:  34
compiled vars:  !0 = $version
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'DEFINED'
          2        SEND_VAL                                                 '1.3.0.0'
          3        DO_ICALL                                                 
    4     4        ASSIGN                                                   !0, '1.6.1.1'
    6     5        INIT_FCALL                                               'version_compare'
          6        FETCH_CONSTANT                                   ~3      'DEFINED'
          7        SEND_VAL                                                 ~3
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 '%3E'
         10        DO_ICALL                                         $4      
         11        ECHO                                                     $4
    7    12        INIT_FCALL                                               'version_compare'
         13        FETCH_CONSTANT                                   ~5      'NOT_DEFINED'
         14        SEND_VAL                                                 ~5
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 '%3E'
         17        DO_ICALL                                         $6      
         18        ECHO                                                     $6
    9    19        INIT_FCALL                                               'version_compare'
         20        FETCH_CONSTANT                                   ~7      'DEFINED'
         21        SEND_VAL                                                 ~7
         22        SEND_VAR                                                 !0
         23        SEND_VAL                                                 '%3C'
         24        DO_ICALL                                         $8      
         25        ECHO                                                     $8
   10    26        INIT_FCALL                                               'version_compare'
         27        FETCH_CONSTANT                                   ~9      'NOT_DEFINED'
         28        SEND_VAL                                                 ~9
         29        SEND_VAR                                                 !0
         30        SEND_VAL                                                 '%3C'
         31        DO_ICALL                                         $10     
         32        ECHO                                                     $10
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.7 ms | 1396 KiB | 17 Q