3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rates = array(); $keys = array(); for ($i=0; $i<1000;$i++) { $HAAPI_rate = array( 'Board' => 'nin', 'Price' => 32.4, 'NetPrice' => 32.4, 'BookingFee' => 12, 'Tax' => 0, ); if (!$keys) { foreach (array_keys($HAAPI_rate) as $key) { $keys[] = lcfirst($key); } } $rates[] = array_combine($keys, $HAAPI_rate); } return $rates;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 4
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 19
Branch analysis from position: 7
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 18
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 4
Branch analysis from position: 28
Branch analysis from position: 4
Branch analysis from position: 18
Branch analysis from position: 19
filename:       /in/3ZWsE
function name:  (null)
number of ops:  30
compiled vars:  !0 = $rates, !1 = $keys, !2 = $i, !3 = $HAAPI_rate, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->26
    6     4    >   ASSIGN                                                   !3, <array>
   14     5        BOOL_NOT                                         ~9      !1
          6      > JMPZ                                                     ~9, ->19
   15     7    >   INIT_FCALL                                               'array_keys'
          8        SEND_VAR                                                 !3
          9        DO_ICALL                                         $10     
         10      > FE_RESET_R                                       $11     $10, ->18
         11    > > FE_FETCH_R                                               $11, !4, ->18
   16    12    >   INIT_FCALL                                               'lcfirst'
         13        SEND_VAR                                                 !4
         14        DO_ICALL                                         $13     
         15        ASSIGN_DIM                                               !1
         16        OP_DATA                                                  $13
   15    17      > JMP                                                      ->11
         18    >   FE_FREE                                                  $11
   20    19    >   INIT_FCALL                                               'array_combine'
         20        SEND_VAR                                                 !1
         21        SEND_VAR                                                 !3
         22        DO_ICALL                                         $15     
         23        ASSIGN_DIM                                               !0
         24        OP_DATA                                                  $15
    5    25        PRE_INC                                                  !2
         26    >   IS_SMALLER                                               !2, 1000
         27      > JMPNZ                                                    ~17, ->4
   23    28    > > RETURN                                                   !0
         29*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.89 ms | 1396 KiB | 19 Q