3v4l.org

run code in 300+ PHP versions simultaneously
<?php $object = (object) array("123.5"=>"456"); var_dump($object); foreach ($object as $key => $value) { echo $key . ' => ' . $value,"\n"; } $object = (object) array(123.5=>"456"); var_dump($object); foreach ($object as $key => $value) { echo $key . ' => ' . $value,"\n"; } // neither array key is suitable for identifier of object property b/c identifiers cannot start with a number.
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 13
2 jumps found. (Code = 77) Position 1 = 20, Position 2 = 27
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 27
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
Branch analysis from position: 13
filename:       /in/VIlfG
function name:  (null)
number of ops:  29
compiled vars:  !0 = $object, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   CAST                                          8  ~3      <array>
          1        ASSIGN                                                   !0, ~3
    3     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    4     5      > FE_RESET_R                                       $6      !0, ->13
          6    > > FE_FETCH_R                                       ~7      $6, !1, ->13
          7    >   ASSIGN                                                   !2, ~7
    5     8        CONCAT                                           ~9      !2, '+%3D%3E+'
          9        CONCAT                                           ~10     ~9, !1
         10        ECHO                                                     ~10
         11        ECHO                                                     '%0A'
    4    12      > JMP                                                      ->6
         13    >   FE_FREE                                                  $6
    8    14        CAST                                          8  ~11     <array>
         15        ASSIGN                                                   !0, ~11
    9    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
   10    19      > FE_RESET_R                                       $14     !0, ->27
         20    > > FE_FETCH_R                                       ~15     $14, !1, ->27
         21    >   ASSIGN                                                   !2, ~15
   11    22        CONCAT                                           ~17     !2, '+%3D%3E+'
         23        CONCAT                                           ~18     ~17, !1
         24        ECHO                                                     ~18
         25        ECHO                                                     '%0A'
   10    26      > JMP                                                      ->20
         27    >   FE_FREE                                                  $14
   13    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.54 ms | 1396 KiB | 15 Q