3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getRates() { return array ( 'Board' => 'nin', 'Price' => 32, 'NetPrice' => 32, 'BookingFee' => 12, 'Tax' => 0, 'forfait' => 1, 'ProviderId' => 1 ); } $max = 10000; $rates = array (); for ($i = 0; $i < $max; $i++) { $rate = getRates(); $rates[] = array ( 'board' => $rate['Board'], 'price' => $rate['Price'], 'netprice' => $rate['NetPrice'], 'bookingfee' => $rate['BookingFee'], 'tax' => $rate['Tax'] ); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 4
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 4
Branch analysis from position: 22
Branch analysis from position: 4
filename:       /in/BV6G2
function name:  (null)
number of ops:  23
compiled vars:  !0 = $max, !1 = $rates, !2 = $i, !3 = $rate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ASSIGN                                                   !0, 10000
   17     1        ASSIGN                                                   !1, <array>
   18     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->20
   19     4    >   INIT_FCALL                                               'getrates'
          5        DO_FCALL                                      0  $7      
          6        ASSIGN                                                   !3, $7
   21     7        FETCH_DIM_R                                      ~10     !3, 'Board'
          8        INIT_ARRAY                                       ~11     ~10, 'board'
   22     9        FETCH_DIM_R                                      ~12     !3, 'Price'
         10        ADD_ARRAY_ELEMENT                                ~11     ~12, 'price'
   23    11        FETCH_DIM_R                                      ~13     !3, 'NetPrice'
         12        ADD_ARRAY_ELEMENT                                ~11     ~13, 'netprice'
   24    13        FETCH_DIM_R                                      ~14     !3, 'BookingFee'
         14        ADD_ARRAY_ELEMENT                                ~11     ~14, 'bookingfee'
   25    15        FETCH_DIM_R                                      ~15     !3, 'Tax'
         16        ADD_ARRAY_ELEMENT                                ~11     ~15, 'tax'
   20    17        ASSIGN_DIM                                               !1
   25    18        OP_DATA                                                  ~11
   18    19        PRE_INC                                                  !2
         20    >   IS_SMALLER                                               !2, !0
         21      > JMPNZ                                                    ~17, ->4
   27    22    > > RETURN                                                   1

Function getrates:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BV6G2
function name:  getRates
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   <array>
   13     1*     > RETURN                                                   null

End of function getrates

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.55 ms | 1403 KiB | 14 Q