3v4l.org

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

Function getrates:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GBehI
function name:  getRates
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'array_fill'
    5     1        SEND_VAL                                                 0
    6     2        SEND_VAL                                                 100000
    8     3        SEND_VAL                                                 <array>
          4        DO_ICALL                                         $0      
          5      > RETURN                                                   $0
   17     6*     > RETURN                                                   null

End of function getrates

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.66 ms | 1399 KiB | 16 Q