3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); for($i = 1000; $i>0; $i--){ $a[] = $i; } sort($a); foreach($a as $row){ printf("%d\n", $row); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 3
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 3
Branch analysis from position: 8
Branch analysis from position: 3
filename:       /in/0GRZH
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $i, !2 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 1000
          2      > JMP                                                      ->6
    5     3    >   ASSIGN_DIM                                               !0
          4        OP_DATA                                                  !1
    4     5        PRE_DEC                                                  !1
          6    >   IS_SMALLER                                               0, !1
          7      > JMPNZ                                                    ~7, ->3
    8     8    >   INIT_FCALL                                               'sort'
          9        SEND_REF                                                 !0
         10        DO_ICALL                                                 
    9    11      > FE_RESET_R                                       $9      !0, ->18
         12    > > FE_FETCH_R                                               $9, !2, ->18
   10    13    >   INIT_FCALL                                               'printf'
         14        SEND_VAL                                                 '%25d%0A'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
    9    17      > JMP                                                      ->12
         18    >   FE_FREE                                                  $9
   11    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.89 ms | 1399 KiB | 17 Q