3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
176.96 ms | 3477 KiB | 14 Q