3v4l.org

run code in 300+ PHP versions simultaneously
<?php $title = "Little Book of Days"; echo "The title in caps is:" .strtoupper($title). "."; echo "The title in lowercase is:" .strtolower($title). "."; $lower = strtolower($title); echo "The title with first character uppercase is:" .ucfirst($lower). ".";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/34gdH
function name:  (null)
number of ops:  24
compiled vars:  !0 = $title, !1 = $lower
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Little+Book+of+Days'
    3     1        INIT_FCALL                                               'strtoupper'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        CONCAT                                           ~4      'The+title+in+caps+is%3A', $3
          5        CONCAT                                           ~5      ~4, '.'
          6        ECHO                                                     ~5
    4     7        INIT_FCALL                                               'strtolower'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $6      
         10        CONCAT                                           ~7      'The+title+in+lowercase+is%3A', $6
         11        CONCAT                                           ~8      ~7, '.'
         12        ECHO                                                     ~8
    6    13        INIT_FCALL                                               'strtolower'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $9      
         16        ASSIGN                                                   !1, $9
    7    17        INIT_FCALL                                               'ucfirst'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $11     
         20        CONCAT                                           ~12     'The+title+with+first+character+uppercase+is%3A', $11
         21        CONCAT                                           ~13     ~12, '.'
         22        ECHO                                                     ~13
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.16 ms | 940 KiB | 20 Q