3v4l.org

run code in 300+ PHP versions simultaneously
<?php function is32Bit() { // This is for max compatibility: // PHP_INT_MAX doesn't exist in PHP4 // current() *requires* a reference in PHP <5.1.0 (except 4.4.1, dafuq) $test = unpack('N', "\xFF\xFF\xFF\xFF"); var_dump($test); return current($test) === -1; } var_dump(is32Bit());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eXWjS
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'is32bit'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Function is32bit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eXWjS
function name:  is32Bit
number of ops:  14
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'unpack'
          1        SEND_VAL                                                 'N'
          2        SEND_VAL                                                 '%FF%FF%FF%FF'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    9     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
   10     8        INIT_FCALL                                               'current'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        IS_IDENTICAL                                     ~5      $4, -1
         12      > RETURN                                                   ~5
   11    13*     > RETURN                                                   null

End of function is32bit

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.04 ms | 1397 KiB | 20 Q