3v4l.org

run code in 300+ PHP versions simultaneously
<?php $randomFloats = array(); for ($i = 0; $i < 100; $i++) { $float = mt_rand() / mt_getrandmax(); $float = round($float, mt_rand(0, 15)); $float *= pow(10, mt_rand(10, 25)); $randomFloats[] = $float; } sort($randomFloats);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 3
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 3
Branch analysis from position: 32
Branch analysis from position: 3
filename:       /in/2VD0o
function name:  (null)
number of ops:  36
compiled vars:  !0 = $randomFloats, !1 = $i, !2 = $float
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->30
    7     3    >   INIT_FCALL                                               'mt_rand'
          4        DO_ICALL                                         $5      
          5        INIT_FCALL                                               'mt_getrandmax'
          6        DO_ICALL                                         $6      
          7        DIV                                              ~7      $5, $6
          8        ASSIGN                                                   !2, ~7
    9     9        INIT_FCALL                                               'round'
         10        SEND_VAR                                                 !2
         11        INIT_FCALL                                               'mt_rand'
         12        SEND_VAL                                                 0
         13        SEND_VAL                                                 15
         14        DO_ICALL                                         $9      
         15        SEND_VAR                                                 $9
         16        DO_ICALL                                         $10     
         17        ASSIGN                                                   !2, $10
   11    18        INIT_FCALL                                               'pow'
         19        SEND_VAL                                                 10
         20        INIT_FCALL                                               'mt_rand'
         21        SEND_VAL                                                 10
         22        SEND_VAL                                                 25
         23        DO_ICALL                                         $12     
         24        SEND_VAR                                                 $12
         25        DO_ICALL                                         $13     
         26        ASSIGN_OP                                     3          !2, $13
   13    27        ASSIGN_DIM                                               !0
         28        OP_DATA                                                  !2
    5    29        PRE_INC                                                  !1
         30    >   IS_SMALLER                                               !1, 100
         31      > JMPNZ                                                    ~17, ->3
   16    32    >   INIT_FCALL                                               'sort'
         33        SEND_REF                                                 !0
         34        DO_ICALL                                                 
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.73 ms | 1400 KiB | 23 Q