3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Mary Had A Little Lamb and She LOVED It So"; $str = strtoupper($str); $strlower = strtolower($str); $strlcwords = lcfirst($str); $strucwords = ucwords($str); echo $str."\t"."//Uppercase"; echo "\n"; echo $strlower."\t"."//Make first letter in every word to be small"; echo "\n"; echo $strlcwords."\t"."//Make first letter in sentence to be small"; echo "\n"; echo $strucwords."\t"."//First character of each word to be Uppercase"; echo "\n"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCJst
function name:  (null)
number of ops:  34
compiled vars:  !0 = $str, !1 = $strlower, !2 = $strlcwords, !3 = $strucwords
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Mary+Had+A+Little+Lamb+and+She+LOVED+It+So'
    3     1        INIT_FCALL                                               'strtoupper'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !0, $5
    4     5        INIT_FCALL                                               'strtolower'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !1, $7
    5     9        INIT_FCALL                                               'lcfirst'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $9      
         12        ASSIGN                                                   !2, $9
    6    13        INIT_FCALL                                               'ucwords'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $11     
         16        ASSIGN                                                   !3, $11
    7    17        CONCAT                                           ~13     !0, '%09'
         18        CONCAT                                           ~14     ~13, '%2F%2FUppercase'
         19        ECHO                                                     ~14
    8    20        ECHO                                                     '%0A'
    9    21        CONCAT                                           ~15     !1, '%09'
         22        CONCAT                                           ~16     ~15, '%2F%2FMake+first+letter+in+every+word+to+be+small'
         23        ECHO                                                     ~16
   10    24        ECHO                                                     '%0A'
   11    25        CONCAT                                           ~17     !2, '%09'
         26        CONCAT                                           ~18     ~17, '%2F%2FMake+first+letter+in+sentence+to+be+small'
         27        ECHO                                                     ~18
   12    28        ECHO                                                     '%0A'
   13    29        CONCAT                                           ~19     !3, '%09'
         30        CONCAT                                           ~20     ~19, '%2F%2FFirst+character+of+each+word+to+be+Uppercase'
         31        ECHO                                                     ~20
   14    32        ECHO                                                     '%0A'
   15    33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.87 ms | 1396 KiB | 21 Q