3v4l.org

run code in 300+ PHP versions simultaneously
<?php $facults = array('Леч. фак.' => 1, 'Пед. фак.' => 2, 'Стом. фак.' => 3, 'ВСО' => 4); $dog = ',Леч. фак.,Пед. фак.,'; for ($i=1; $i < (substr_count($dog, ',')); $i++) { $eval = explode(',', $dog); echo $facults[$eval[$i]]; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 4
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 4
Branch analysis from position: 19
Branch analysis from position: 4
filename:       /in/gcU9q
function name:  (null)
number of ops:  20
compiled vars:  !0 = $facults, !1 = $dog, !2 = $i, !3 = $eval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, '%2C%D0%9B%D0%B5%D1%87.+%D1%84%D0%B0%D0%BA.%2C%D0%9F%D0%B5%D0%B4.+%D1%84%D0%B0%D0%BA.%2C'
    4     2        ASSIGN                                                   !2, 1
          3      > JMP                                                      ->13
    5     4    >   INIT_FCALL                                               'explode'
          5        SEND_VAL                                                 '%2C'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !3, $7
    6     9        FETCH_DIM_R                                      ~9      !3, !2
         10        FETCH_DIM_R                                      ~10     !0, ~9
         11        ECHO                                                     ~10
    4    12        PRE_INC                                                  !2
         13    >   INIT_FCALL                                               'substr_count'
         14        SEND_VAR                                                 !1
         15        SEND_VAL                                                 '%2C'
         16        DO_ICALL                                         $12     
         17        IS_SMALLER                                               !2, $12
         18      > JMPNZ                                                    ~13, ->4
    7    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.07 ms | 1395 KiB | 17 Q