3v4l.org

run code in 300+ PHP versions simultaneously
<?php $prenom = 'éo marie chéarles'; $nom = 'Léa Maji'; $prenomEnMinuscule = mb_strtolower($prenom, 'utf8'); $prenom = mb_substr($prenomEnMinuscule, 0, 1, 'utf8').mb_substr($prenomEnMinuscule, 1, null, 'utf8'); echo $prenom.' '.mb_strtoupper($nom, 'utf8');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HfKA5
function name:  (null)
number of ops:  29
compiled vars:  !0 = $prenom, !1 = $nom, !2 = $prenomEnMinuscule
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%C3%A9o+marie+ch%C3%A9arles'
    3     1        ASSIGN                                                   !1, 'L%C3%A9a+Maji'
    5     2        INIT_FCALL                                               'mb_strtolower'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'utf8'
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    6     7        INIT_FCALL                                               'mb_substr'
          8        SEND_VAR                                                 !2
          9        SEND_VAL                                                 0
         10        SEND_VAL                                                 1
         11        SEND_VAL                                                 'utf8'
         12        DO_ICALL                                         $7      
         13        INIT_FCALL                                               'mb_substr'
         14        SEND_VAR                                                 !2
         15        SEND_VAL                                                 1
         16        SEND_VAL                                                 null
         17        SEND_VAL                                                 'utf8'
         18        DO_ICALL                                         $8      
         19        CONCAT                                           ~9      $7, $8
         20        ASSIGN                                                   !0, ~9
    8    21        CONCAT                                           ~11     !0, '+'
         22        INIT_FCALL                                               'mb_strtoupper'
         23        SEND_VAR                                                 !1
         24        SEND_VAL                                                 'utf8'
         25        DO_ICALL                                         $12     
         26        CONCAT                                           ~13     ~11, $12
         27        ECHO                                                     ~13
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.6 ms | 1395 KiB | 19 Q