3v4l.org

run code in 300+ PHP versions simultaneously
<?php $yazarlar = 'Ahmet Mehmet,Kerem Veli,Hasan Hüseyin,Fahri Mahri,Abdullah Kaya'; $yazarlarimiz = explode(',', $yazarlar); foreach ($yazarlarimiz as $yazarpin) { echo mb_substr($yazarpin, 0, 2, 'UTF-8').PHP_EOL; echo $yazarpin.PHP_EOL.PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 20
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 20
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/7dujK
function name:  (null)
number of ops:  22
compiled vars:  !0 = $yazarlar, !1 = $yazarlarimiz, !2 = $yazarpin
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Ahmet+Mehmet%2CKerem+Veli%2CHasan+H%C3%BCseyin%2CFahri+Mahri%2CAbdullah+Kaya'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6      > FE_RESET_R                                       $6      !1, ->20
          7    > > FE_FETCH_R                                               $6, !2, ->20
    6     8    >   INIT_FCALL                                               'mb_substr'
          9        SEND_VAR                                                 !2
         10        SEND_VAL                                                 0
         11        SEND_VAL                                                 2
         12        SEND_VAL                                                 'UTF-8'
         13        DO_ICALL                                         $7      
         14        CONCAT                                           ~8      $7, '%0A'
         15        ECHO                                                     ~8
    7    16        CONCAT                                           ~9      !2, '%0A'
         17        CONCAT                                           ~10     ~9, '%0A'
         18        ECHO                                                     ~10
    5    19      > JMP                                                      ->7
         20    >   FE_FREE                                                  $6
    8    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
126.83 ms | 1400 KiB | 17 Q