3v4l.org

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

Function add:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s2PYc
function name:  add
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 add

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.16 ms | 1397 KiB | 16 Q