3v4l.org

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

Function plusone:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nZd0B
function name:  plusOne
number of ops:  6
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        ADD                                              ~3      ~2, 1
          4      > RETURN                                                   ~3
    5     5*     > RETURN                                                   null

End of function plusone

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.98 ms | 1395 KiB | 15 Q