3v4l.org

run code in 300+ PHP versions simultaneously
<?php $course1 = "advanced web development"; $course2 = "mobile app development"; $course3 = "info systems with business intell"; function fixCourseName($courseName) { $courseName = ucwords($courseName); return $courseName; } $GLOBALS['CIS475'] = fixCourseName ($course1); $GLOBALS['CIS360'] = fixCourseName ($course2); $GLOBALS['CIS429'] = fixCourseName ($course3); print_r($GLOBALS['CIS475']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Sk0Xn
function name:  (null)
number of ops:  23
compiled vars:  !0 = $course1, !1 = $course2, !2 = $course3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'advanced+web+development'
    4     1        ASSIGN                                                   !1, 'mobile+app+development'
    5     2        ASSIGN                                                   !2, 'info+systems+with+business+intell'
   13     3        INIT_FCALL                                               'fixcoursename'
          4        SEND_VAR                                                 !0
          5        DO_FCALL                                      0  $7      
          6        FETCH_W                      global              $6      'CIS475'
          7        ASSIGN                                                   $6, $7
   14     8        INIT_FCALL                                               'fixcoursename'
          9        SEND_VAR                                                 !1
         10        DO_FCALL                                      0  $10     
         11        FETCH_W                      global              $9      'CIS360'
         12        ASSIGN                                                   $9, $10
   15    13        INIT_FCALL                                               'fixcoursename'
         14        SEND_VAR                                                 !2
         15        DO_FCALL                                      0  $13     
         16        FETCH_W                      global              $12     'CIS429'
         17        ASSIGN                                                   $12, $13
   17    18        INIT_FCALL                                               'print_r'
         19        FETCH_R                      global              ~15     'CIS475'
         20        SEND_VAL                                                 ~15
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Function fixcoursename:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Sk0Xn
function name:  fixCourseName
number of ops:  7
compiled vars:  !0 = $courseName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        INIT_FCALL                                               'ucwords'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
   10     5      > RETURN                                                   !0
   11     6*     > RETURN                                                   null

End of function fixcoursename

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151 ms | 1015 KiB | 18 Q