3v4l.org

run code in 300+ PHP versions simultaneously
<?php $weather = array('晴れ', '晴れ時々雨', '雪のち雨'); $ary = array( '晴れ' => 'sunny', '雨' => 'rainy', '曇' => 'cloudy', '雪' => 'snowy', 'のち' => 'later', '時々' => 'and' ); for ($i=0; $i < 3; $i++) { //$telop = $weather->forecasts[$i]->telop; $telop = $weather[$i]; foreach ($ary as $key => $value) { $telop = explode(' ', str_replace((string)$key, $ary[$key].' ', $telop)); } var_dump($telop); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 4
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 23
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 23
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 4
Branch analysis from position: 30
Branch analysis from position: 4
Branch analysis from position: 23
filename:       /in/0ZNp1
function name:  (null)
number of ops:  31
compiled vars:  !0 = $weather, !1 = $ary, !2 = $i, !3 = $telop, !4 = $value, !5 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
   13     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->28
   16     4    >   FETCH_DIM_R                                      ~9      !0, !2
          5        ASSIGN                                                   !3, ~9
   17     6      > FE_RESET_R                                       $11     !1, ->23
          7    > > FE_FETCH_R                                       ~12     $11, !4, ->23
          8    >   ASSIGN                                                   !5, ~12
   18     9        INIT_FCALL                                               'explode'
         10        SEND_VAL                                                 '+'
         11        INIT_FCALL                                               'str_replace'
         12        CAST                                          6  ~14     !5
         13        SEND_VAL                                                 ~14
         14        FETCH_DIM_R                                      ~15     !1, !5
         15        CONCAT                                           ~16     ~15, '+'
         16        SEND_VAL                                                 ~16
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                         $17     
         19        SEND_VAR                                                 $17
         20        DO_ICALL                                         $18     
         21        ASSIGN                                                   !3, $18
   17    22      > JMP                                                      ->7
         23    >   FE_FREE                                                  $11
   20    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !3
         26        DO_ICALL                                                 
   13    27        PRE_INC                                                  !2
         28    >   IS_SMALLER                                               !2, 3
         29      > JMPNZ                                                    ~22, ->4
   21    30    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.05 ms | 1396 KiB | 19 Q