3v4l.org

run code in 300+ PHP versions simultaneously
<?php $isX64 = ((getenv('PROCESSOR_ARCHITEW6432') ? getenv('PROCESSOR_ARCHITEW6432') : getenv('PROCESSOR_ARCHITECTURE')) == 'AMD64'); var_dump($isX64);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZaQvQ
function name:  (null)
number of ops:  19
compiled vars:  !0 = $isX64
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'getenv'
          1        SEND_VAL                                                 'PROCESSOR_ARCHITEW6432'
          2        DO_ICALL                                         $1      
          3      > JMPZ                                                     $1, ->9
          4    >   INIT_FCALL                                               'getenv'
          5        SEND_VAL                                                 'PROCESSOR_ARCHITEW6432'
          6        DO_ICALL                                         $2      
          7        QM_ASSIGN                                        ~3      $2
          8      > JMP                                                      ->13
          9    >   INIT_FCALL                                               'getenv'
         10        SEND_VAL                                                 'PROCESSOR_ARCHITECTURE'
         11        DO_ICALL                                         $4      
         12        QM_ASSIGN                                        ~3      $4
         13    >   IS_EQUAL                                         ~5      ~3, 'AMD64'
         14        ASSIGN                                                   !0, ~5
    3    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.52 ms | 1395 KiB | 17 Q