3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function bigLetters(string $text): string { return mb_strtoupper($text); } function smallLetters(string $text): string { return mb_strtolower($text); } function printBigLetters(string $text): void { echo bigLetters($text) . PHP_EOL; } function printSmallLetters(string $text): void { echo smallLetters($text) . PHP_EOL; } $text1 = 'DrUkOwAnIe DuŻyMi LiTeRaMi'; $text2 = 'DrUkOwAnIe MaŁyMi LiTeRaMi'; printBigLetters($text1); printSmallLetters($text2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IWPDp
function name:  (null)
number of ops:  9
compiled vars:  !0 = $text1, !1 = $text2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   ASSIGN                                                   !0, 'DrUkOwAnIe+Du%C5%BByMi+LiTeRaMi'
   27     1        ASSIGN                                                   !1, 'DrUkOwAnIe+Ma%C5%81yMi+LiTeRaMi'
   29     2        INIT_FCALL                                               'printbigletters'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0          
   30     5        INIT_FCALL                                               'printsmallletters'
          6        SEND_VAR                                                 !1
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Function bigletters:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IWPDp
function name:  bigLetters
number of ops:  8
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'mb_strtoupper'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4        VERIFY_RETURN_TYPE                                       $1
          5      > RETURN                                                   $1
    8     6*       VERIFY_RETURN_TYPE                                       
          7*     > RETURN                                                   null

End of function bigletters

Function smallletters:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IWPDp
function name:  smallLetters
number of ops:  8
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   12     1        INIT_FCALL                                               'mb_strtolower'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4        VERIFY_RETURN_TYPE                                       $1
          5      > RETURN                                                   $1
   13     6*       VERIFY_RETURN_TYPE                                       
          7*     > RETURN                                                   null

End of function smallletters

Function printbigletters:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IWPDp
function name:  printBigLetters
number of ops:  7
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
   17     1        INIT_FCALL                                               'bigletters'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $1      
          4        CONCAT                                           ~2      $1, '%0A'
          5        ECHO                                                     ~2
   18     6      > RETURN                                                   null

End of function printbigletters

Function printsmallletters:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IWPDp
function name:  printSmallLetters
number of ops:  7
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   RECV                                             !0      
   23     1        INIT_FCALL                                               'smallletters'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $1      
          4        CONCAT                                           ~2      $1, '%0A'
          5        ECHO                                                     ~2
   24     6      > RETURN                                                   null

End of function printsmallletters

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.68 ms | 1407 KiB | 21 Q