3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sum($num1, $num2) { $total = $num1 + $num2; echo "cos($total)"; } sum(5,-5);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C860m
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'sum'
          1        SEND_VAL                                                 5
          2        SEND_VAL                                                 -5
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function sum:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C860m
function name:  sum
number of ops:  9
compiled vars:  !0 = $num1, !1 = $num2, !2 = $total
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        ADD                                              ~3      !0, !1
          3        ASSIGN                                                   !2, ~3
    6     4        ROPE_INIT                                     3  ~6      'cos%28'
          5        ROPE_ADD                                      1  ~6      ~6, !2
          6        ROPE_END                                      2  ~5      ~6, '%29'
          7        ECHO                                                     ~5
    7     8      > RETURN                                                   null

End of function sum

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.2 ms | 1397 KiB | 14 Q