3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sum($a, $b) { return $a + $b; } var_dump(sum(12, 34)); var_dump(sum(1, 2)); var_dump(sum(3, 4));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FRe7R
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'sum'
          2        SEND_VAL                                                 12
          3        SEND_VAL                                                 34
          4        DO_FCALL                                      0  $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
    8     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'sum'
          9        SEND_VAL                                                 1
         10        SEND_VAL                                                 2
         11        DO_FCALL                                      0  $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                                 
    9    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'sum'
         16        SEND_VAL                                                 3
         17        SEND_VAL                                                 4
         18        DO_FCALL                                      0  $4      
         19        SEND_VAR                                                 $4
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Function sum:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FRe7R
function name:  sum
number of ops:  5
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        ADD                                              ~2      !0, !1
          3      > RETURN                                                   ~2
    5     4*     > RETURN                                                   null

End of function sum

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.21 ms | 1402 KiB | 18 Q