3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test_1(int $arg_1, int $arg_2): int{ return $arg_1+$arg_2; } $a = 1; $b = 2; $result = test_1($a, $b); echo $result;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tTnDl
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a, !1 = $b, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 1
    7     1        ASSIGN                                                   !1, 2
    8     2        INIT_FCALL                                               'test_1'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !2, $5
    9     7        ECHO                                                     !2
          8      > RETURN                                                   1

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

End of function test_1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.35 ms | 1397 KiB | 14 Q