3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $counts = [ '0.13' => 0, '0.3' => 0, '1.234' => 1.234, ]; for($i = 0; $i < 1000000; $i++) { $counts['0.13'] += 0.13; $counts['0.3'] += 0.3; $counts['1.234'] += 1.234; } print_r( $count );
based on qsh8A
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Jump found. (Code = 44) Position 1 = 13, Position 2 = 3
Branch analysis from position: 13
Jump found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
Jump found. (Code = 44) Position 1 = 13, Position 2 = 3
Branch analysis from position: 13
Branch analysis from position: 3
filename:       /in/0E4os
function name:  (null)
number of ops:  17
compiled vars:  !0 = $counts, !1 = $i, !2 = $count
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   ASSIGN                                                   !0, <array>
   9     1        ASSIGN                                                   !1, 0
         2      > JMP                                                      ->11
  10     3    >   ASSIGN_ADD                                  147          !0, '0.13'
         4        OP_DATA                                                  0.13
  11     5        ASSIGN_ADD                                  147          !0, '0.3'
         6        OP_DATA                                                  0.3
  12     7        ASSIGN_ADD                                  147          !0, '1.234'
         8        OP_DATA                                                  1.234
   9     9        POST_INC                                         ~8      !1
        10        FREE                                                     ~8
        11    >   IS_SMALLER                                       ~9      !1, 1000000
        12      > JMPNZ                                                    ~9, ->3
  16    13    >   INIT_FCALL                                               'print_r'
        14        SEND_VAR                                                 !2
        15        DO_ICALL                                                 
        16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0