3v4l.org

run code in 300+ PHP versions simultaneously
<?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). ".";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) 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 8.0.0


preferences:
157.21 ms | 1395 KiB | 19 Q