3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dash = html_entity_decode('&ndash;'); $a = ["Suché {$dash} trvanlivé", "Ovozel {$dash} chlazené", "Mražené", "Chlazené", "Drogerie", ]; foreach ($a as $i) { var_dump($i == 'Suché - trvanlivé'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 23
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 23
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/hYRLt
function name:  (null)
number of ops:  25
compiled vars:  !0 = $dash, !1 = $a, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'html_entity_decode'
          1        SEND_VAL                                                 '%26ndash%3B'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        ROPE_INIT                                     3  ~6      'Such%C3%A9+'
          5        ROPE_ADD                                      1  ~6      ~6, !0
          6        ROPE_END                                      2  ~5      ~6, '+trvanliv%C3%A9'
          7        INIT_ARRAY                                       ~8      ~5
    5     8        ROPE_INIT                                     3  ~10     'Ovozel+'
          9        ROPE_ADD                                      1  ~10     ~10, !0
         10        ROPE_END                                      2  ~9      ~10, '+chlazen%C3%A9'
         11        ADD_ARRAY_ELEMENT                                ~8      ~9
    6    12        ADD_ARRAY_ELEMENT                                ~8      'Mra%C5%BEen%C3%A9'
    7    13        ADD_ARRAY_ELEMENT                                ~8      'Chlazen%C3%A9'
    8    14        ADD_ARRAY_ELEMENT                                ~8      'Drogerie'
    4    15        ASSIGN                                                   !1, ~8
   11    16      > FE_RESET_R                                       $13     !1, ->23
         17    > > FE_FETCH_R                                               $13, !2, ->23
   12    18    >   INIT_FCALL                                               'var_dump'
         19        IS_EQUAL                                         ~14     !2, 'Such%C3%A9+-+trvanliv%C3%A9'
         20        SEND_VAL                                                 ~14
         21        DO_ICALL                                                 
   11    22      > JMP                                                      ->17
         23    >   FE_FREE                                                  $13
   13    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.34 ms | 1395 KiB | 17 Q