3v4l.org

run code in 500+ PHP versions simultaneously
<?php for ($i = -1; $i < 2; $i++) { echo "$i\n"; var_dump(null < $i); var_dump(null > $i); var_dump(null <= $i); var_dump(null >= $i); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 2
Branch analysis from position: 24
Branch analysis from position: 2
filename:       /in/oRSgU
function name:  (null)
number of ops:  25
compiled vars:  !0 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, -1
          1      > JMP                                                          ->22
    4     2    >   NOP                                                          
          3        FAST_CONCAT                                          ~2      !0, '%0A'
          4        ECHO                                                         ~2
    5     5        INIT_FCALL                                                   'var_dump'
          6        IS_SMALLER                                           ~3      null, !0
          7        SEND_VAL                                                     ~3
          8        DO_ICALL                                                     
    6     9        INIT_FCALL                                                   'var_dump'
         10        IS_SMALLER                                           ~5      !0, null
         11        SEND_VAL                                                     ~5
         12        DO_ICALL                                                     
    7    13        INIT_FCALL                                                   'var_dump'
         14        IS_SMALLER_OR_EQUAL                                  ~7      null, !0
         15        SEND_VAL                                                     ~7
         16        DO_ICALL                                                     
    8    17        INIT_FCALL                                                   'var_dump'
         18        IS_SMALLER_OR_EQUAL                                  ~9      !0, null
         19        SEND_VAL                                                     ~9
         20        DO_ICALL                                                     
    3    21        PRE_INC                                                      !0
         22    >   IS_SMALLER                                                   !0, 2
         23      > JMPNZ                                                        ~12, ->2
    9    24    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.67 ms | 1539 KiB | 14 Q