3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pp = '1502р.43коп.'; $pp = mb_substr($pp, 0, -8, 'UTF-8').'.'.mb_substr($pp, -6, 2, 'UTF-8'); //mb_substr(Yii::$app->user->identity->fathername, 0, 1, 'UTF-8') echo $pp;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/43ffp
function name:  (null)
number of ops:  18
compiled vars:  !0 = $pp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1502%D1%80.43%D0%BA%D0%BE%D0%BF.'
    3     1        INIT_FCALL                                               'mb_substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 -8
          5        SEND_VAL                                                 'UTF-8'
          6        DO_ICALL                                         $2      
          7        CONCAT                                           ~3      $2, '.'
          8        INIT_FCALL                                               'mb_substr'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 -6
         11        SEND_VAL                                                 2
         12        SEND_VAL                                                 'UTF-8'
         13        DO_ICALL                                         $4      
         14        CONCAT                                           ~5      ~3, $4
         15        ASSIGN                                                   !0, ~5
    6    16        ECHO                                                     !0
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.88 ms | 1394 KiB | 15 Q