3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sum ( $x, $y) { $z= $x+$y; echo "<br>". $z; } function sub ( $x, $y) { $z= $x-$y; echo "<br>". $z; } sum(9,3); sub(9,3); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CB89E
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'sum'
          1        SEND_VAL                                                 9
          2        SEND_VAL                                                 3
          3        DO_FCALL                                      0          
   14     4        INIT_FCALL                                               'sub'
          5        SEND_VAL                                                 9
          6        SEND_VAL                                                 3
          7        DO_FCALL                                      0          
   15     8      > RETURN                                                   1

Function sum:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CB89E
function name:  sum
number of ops:  7
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        ADD                                              ~3      !0, !1
          3        ASSIGN                                                   !2, ~3
    6     4        CONCAT                                           ~5      '%3Cbr%3E', !2
          5        ECHO                                                     ~5
    7     6      > RETURN                                                   null

End of function sum

Function sub:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CB89E
function name:  sub
number of ops:  7
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2        SUB                                              ~3      !0, !1
          3        ASSIGN                                                   !2, ~3
   11     4        CONCAT                                           ~5      '%3Cbr%3E', !2
          5        ECHO                                                     ~5
   12     6      > RETURN                                                   null

End of function sub

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.11 ms | 1398 KiB | 15 Q