3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numbers=array(4,6,2,22,11); ksort($numbers); $arrlength=count($numbers); for($x=0;$x<$arrlength;$x++) { echo $numbers[$x]; echo "<br>"; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 8
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 8
Branch analysis from position: 14
Branch analysis from position: 8
filename:       /in/Nv40X
function name:  (null)
number of ops:  15
compiled vars:  !0 = $numbers, !1 = $arrlength, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'ksort'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
    5     4        COUNT                                            ~5      !0
          5        ASSIGN                                                   !1, ~5
    6     6        ASSIGN                                                   !2, 0
          7      > JMP                                                      ->12
    8     8    >   FETCH_DIM_R                                      ~8      !0, !2
          9        ECHO                                                     ~8
    9    10        ECHO                                                     '%3Cbr%3E'
    6    11        PRE_INC                                                  !2
         12    >   IS_SMALLER                                               !2, !1
         13      > JMPNZ                                                    ~10, ->8
   11    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.16 ms | 1386 KiB | 15 Q