3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = -1; $i < 2; $i++) { for ($j = -1; $j < 2; $j++) { echo sprintf("%2d <=> %2d: %2d" . PHP_EOL, $i, $j, $i <=> $j); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 4
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
Branch analysis from position: 2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 4
Branch analysis from position: 15
Branch analysis from position: 4
filename:       /in/WcRSo
function name:  (null)
number of ops:  19
compiled vars:  !0 = $i, !1 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, -1
          1      > JMP                                                      ->16
    4     2    >   ASSIGN                                                   !1, -1
          3      > JMP                                                      ->13
    5     4    >   INIT_FCALL                                               'sprintf'
          5        SEND_VAL                                                 '%252d+%3C%3D%3E+%252d%3A+%252d%0A'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        SPACESHIP                                        ~4      !0, !1
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                         $5      
         11        ECHO                                                     $5
    4    12        PRE_INC                                                  !1
         13    >   IS_SMALLER                                               !1, 2
         14      > JMPNZ                                                    ~7, ->4
    3    15    >   PRE_INC                                                  !0
         16    >   IS_SMALLER                                               !0, 2
         17      > JMPNZ                                                    ~9, ->2
    7    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.75 ms | 1395 KiB | 15 Q