3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo php_uname(); echo PHP_OS; /* Some possible outputs: Linux localhost 2.4.21-0.13mdk #1 Fri Mar 14 15:08:06 EST 2003 i686 Linux FreeBSD localhost 3.2-RELEASE #15: Mon Dec 17 08:46:02 GMT 2001 FreeBSD Windows NT XN1 5.1 build 2600 WINNT */ if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { echo 'This is a server using Windows!'; } else { echo 'This is a server not using Windows!'; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eDQP2
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'php_uname'
          1        DO_ICALL                                         $0      
          2        ECHO                                                     $0
    3     3        ECHO                                                     'Linux'
   16     4        INIT_FCALL                                               'strtoupper'
          5        INIT_FCALL                                               'substr'
          6        SEND_VAL                                                 'Linux'
          7        SEND_VAL                                                 0
          8        SEND_VAL                                                 3
          9        DO_ICALL                                         $1      
         10        SEND_VAR                                                 $1
         11        DO_ICALL                                         $2      
         12        IS_IDENTICAL                                             $2, 'WIN'
         13      > JMPZ                                                     ~3, ->16
   17    14    >   ECHO                                                     'This+is+a+server+using+Windows%21'
         15      > JMP                                                      ->17
   19    16    >   ECHO                                                     'This+is+a+server+not+using+Windows%21'
   22    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.09 ms | 1395 KiB | 19 Q