3v4l.org

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

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.18 ms | 1462 KiB | 16 Q