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_strtoupper(mb_substr($prenomEnMinuscule, 0, 1, 'utf8'), '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/jrZXU
function name:  (null)
number of ops:  33
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_strtoupper'
          8        INIT_FCALL                                               'mb_substr'
          9        SEND_VAR                                                 !2
         10        SEND_VAL                                                 0
         11        SEND_VAL                                                 1
         12        SEND_VAL                                                 'utf8'
         13        DO_ICALL                                         $7      
         14        SEND_VAR                                                 $7
         15        SEND_VAL                                                 'utf8'
         16        DO_ICALL                                         $8      
         17        INIT_FCALL                                               'mb_substr'
         18        SEND_VAR                                                 !2
         19        SEND_VAL                                                 1
         20        SEND_VAL                                                 null
         21        SEND_VAL                                                 'utf8'
         22        DO_ICALL                                         $9      
         23        CONCAT                                           ~10     $8, $9
         24        ASSIGN                                                   !0, ~10
    8    25        CONCAT                                           ~12     !0, '+'
         26        INIT_FCALL                                               'mb_strtoupper'
         27        SEND_VAR                                                 !1
         28        SEND_VAL                                                 'utf8'
         29        DO_ICALL                                         $13     
         30        CONCAT                                           ~14     ~12, $13
         31        ECHO                                                     ~14
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.17 ms | 1396 KiB | 19 Q