3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lowercase = "cats"; $uppercase = "DOGS"; $multiplewords = "the cats and the dogs"; echo strtoupper($lowercase); echo "</br>"; echo strtolower($uppercase); echo "</br>"; echo ucfirst($lowercase); echo "</br>"; echo ucwords($multiplewords); echo "</br>"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tB9QS
function name:  (null)
number of ops:  24
compiled vars:  !0 = $lowercase, !1 = $uppercase, !2 = $multiplewords
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'cats'
    3     1        ASSIGN                                                   !1, 'DOGS'
    4     2        ASSIGN                                                   !2, 'the+cats+and+the+dogs'
    6     3        INIT_FCALL                                               'strtoupper'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        ECHO                                                     $6
    7     7        ECHO                                                     '%3C%2Fbr%3E'
    8     8        INIT_FCALL                                               'strtolower'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $7      
         11        ECHO                                                     $7
    9    12        ECHO                                                     '%3C%2Fbr%3E'
   10    13        INIT_FCALL                                               'ucfirst'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $8      
         16        ECHO                                                     $8
   11    17        ECHO                                                     '%3C%2Fbr%3E'
   12    18        INIT_FCALL                                               'ucwords'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                         $9      
         21        ECHO                                                     $9
   13    22        ECHO                                                     '%3C%2Fbr%3E'
   14    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.93 ms | 1395 KiB | 21 Q