3v4l.org

run code in 300+ PHP versions simultaneously
<?php $facults = array('Леч. фак.' => 1, 'Пед. фак.' => 2, 'Стом. фак.' => 3, 'ВСО' => 4); $dog = ',Леч. фак.,Пед. фак.,'; $eval = explode(',', $dog); for ($i=1; $i < (substr_count($dog, ',')); $i++) { 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 = 9
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 9
Branch analysis from position: 19
Branch analysis from position: 9
filename:       /in/dRrMc
function name:  (null)
number of ops:  20
compiled vars:  !0 = $facults, !1 = $dog, !2 = $eval, !3 = $i
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        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%2C'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !2, $6
    5     7        ASSIGN                                                   !3, 1
          8      > JMP                                                      ->13
    6     9    >   FETCH_DIM_R                                      ~9      !2, !3
         10        FETCH_DIM_R                                      ~10     !0, ~9
         11        ECHO                                                     ~10
    5    12        PRE_INC                                                  !3
         13    >   INIT_FCALL                                               'substr_count'
         14        SEND_VAR                                                 !1
         15        SEND_VAL                                                 '%2C'
         16        DO_ICALL                                         $12     
         17        IS_SMALLER                                               !3, $12
         18      > JMPNZ                                                    ~13, ->9
    7    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.58 ms | 1395 KiB | 17 Q