3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $title = "Little Book of Days"; $upper = strtoupper($title); echo "The title in caps is:" .$upper. "."; echo "The title in lowercase is:" .strtolower($title). "."; $lower = strtolower($title); echo "The title with first character uppercase is:" .ucfirst($lower). ".";
based on 34gdH
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/Irnau
function name:  (null)
number of ops:  25
compiled vars:  !0 = $title, !1 = $upper, !2 = $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                                         $4      
         4        ASSIGN                                                   !1, $4
   4     5        CONCAT                                           ~6      'The+title+in+caps+is%3A', !1
         6        CONCAT                                           ~7      ~6, '.'
         7        ECHO                                                     ~7
   5     8        INIT_FCALL                                               'strtolower'
         9        SEND_VAR                                                 !0
        10        DO_ICALL                                         $8      
        11        CONCAT                                           ~9      'The+title+in+lowercase+is%3A', $8
        12        CONCAT                                           ~10     ~9, '.'
        13        ECHO                                                     ~10
   7    14        INIT_FCALL                                               'strtolower'
        15        SEND_VAR                                                 !0
        16        DO_ICALL                                         $11     
        17        ASSIGN                                                   !2, $11
   8    18        INIT_FCALL                                               'ucfirst'
        19        SEND_VAR                                                 !2
        20        DO_ICALL                                         $13     
        21        CONCAT                                           ~14     'The+title+with+first+character+uppercase+is%3A', $13
        22        CONCAT                                           ~15     ~14, '.'
        23        ECHO                                                     ~15
        24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0