3v4l.org

run code in 500+ PHP versions simultaneously
<?php # # Note that in this example, you can achieve the same result by imploding the terms # but I left it as is to resemble your code. # function cameramodel($delimiter) { # Example terms... $terms = ["one", "two", "three"]; # Create an array to store the results. $result = []; # Iterate over every term. foreach ($terms as $term) { # Insert the term into the result array. $result[] = $term; } # Return the elements of the array glued together as a string. return implode($delimiter, $result); } # Call the function using a demiliter of your choice. $cameramodel = cameramodel(" and\n"); ?> <?php echo $cameramodel; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Pk6Cm
function name:  (null)
number of ops:  7
compiled vars:  !0 = $cameramodel
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   25     0  E >   INIT_FCALL                                                   'cameramodel'
          1        SEND_VAL                                                     '+and%0A'
          2        DO_FCALL                                          0  $1      
          3        ASSIGN                                                       !0, $1
   27     4        ECHO                                                         '%0A'
   28     5        ECHO                                                         !0
          6      > RETURN                                                       1

Function cameramodel:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/Pk6Cm
function name:  cameramodel
number of ops:  12
compiled vars:  !0 = $delimiter, !1 = $terms, !2 = $result, !3 = $term
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   RECV                                                 !0      
    9     1        ASSIGN                                                       !1, <array>
   12     2        ASSIGN                                                       !2, <array>
   15     3      > FE_RESET_R                                           $6      !1, ->8
          4    > > FE_FETCH_R                                                   $6, !3, ->8
   17     5    >   ASSIGN_DIM                                                   !2
          6        OP_DATA                                                      !3
   15     7      > JMP                                                          ->4
          8    >   FE_FREE                                                      $6
   21     9        FRAMELESS_ICALL_2                implode             ~8      !0, !2
         10      > RETURN                                                       ~8
   22    11*     > RETURN                                                       null

End of function cameramodel

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.12 ms | 2034 KiB | 14 Q