3v4l.org

run code in 300+ PHP versions simultaneously
<head> <title>Functions</title> </head> <body> <?php function AddAll($number1,$number2,$number3) { $plus = $number1 + $number2 + $number3; return $plus; } echo "123 + 654 + 9 equals " . AddAll(123,654,9); ?> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WXobj
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Chead%3E%0A%09%3Ctitle%3EFunctions%3C%2Ftitle%3E%0A%0A%09%3C%2Fhead%3E%0A%09%3Cbody%3E%0A%0A%09'
   14     1        INIT_FCALL                                               'addall'
          2        SEND_VAL                                                 123
          3        SEND_VAL                                                 654
          4        SEND_VAL                                                 9
          5        DO_FCALL                                      0  $0      
          6        CONCAT                                           ~1      '123+%2B+654+%2B+9+equals+', $0
          7        ECHO                                                     ~1
   17     8        ECHO                                                     '%0A%09%3C%2Fbody%3E%0A%09%3C%2Fhtml%3E'
   19     9      > RETURN                                                   1

Function addall:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WXobj
function name:  AddAll
number of ops:  8
compiled vars:  !0 = $number1, !1 = $number2, !2 = $number3, !3 = $plus
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
   10     3        ADD                                              ~4      !0, !1
          4        ADD                                              ~5      ~4, !2
          5        ASSIGN                                                   !3, ~5
   11     6      > RETURN                                                   !3
   12     7*     > RETURN                                                   null

End of function addall

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.86 ms | 1397 KiB | 14 Q