3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lowercase = "cats"; $uppercase = "DOGS"; $multiplewords = "the cats and the dogs"; echo strtoupper($lowercase); echo strtolower($uppercase); echo ucfirst($lowercase); echo ucwords($multiplewords); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VXS88
function name:  (null)
number of ops:  20
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        INIT_FCALL                                               'strtolower'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $7      
         10        ECHO                                                     $7
    8    11        INIT_FCALL                                               'ucfirst'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $8      
         14        ECHO                                                     $8
    9    15        INIT_FCALL                                               'ucwords'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $9      
         18        ECHO                                                     $9
   11    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.92 ms | 1395 KiB | 21 Q