3v4l.org

run code in 300+ PHP versions simultaneously
<?php function s($rad){ return M_PI*(pow($rad/2,2)); } $r1=4; $r2=10; $r3=22; echo s($r1); echo "<br>"; $a=$r2; echo s($a); echo "<br>"; echo s(22); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eNjRe
function name:  (null)
number of ops:  19
compiled vars:  !0 = $r1, !1 = $r2, !2 = $r3, !3 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 4
    6     1        ASSIGN                                                   !1, 10
    7     2        ASSIGN                                                   !2, 22
    8     3        INIT_FCALL                                               's'
          4        SEND_VAR                                                 !0
          5        DO_FCALL                                      0  $7      
          6        ECHO                                                     $7
    9     7        ECHO                                                     '%3Cbr%3E'
   10     8        ASSIGN                                                   !3, !1
   11     9        INIT_FCALL                                               's'
         10        SEND_VAR                                                 !3
         11        DO_FCALL                                      0  $9      
         12        ECHO                                                     $9
   12    13        ECHO                                                     '%3Cbr%3E'
   13    14        INIT_FCALL                                               's'
         15        SEND_VAL                                                 22
         16        DO_FCALL                                      0  $10     
         17        ECHO                                                     $10
   14    18      > RETURN                                                   1

Function s:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eNjRe
function name:  s
number of ops:  9
compiled vars:  !0 = $rad
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'pow'
          2        DIV                                              ~1      !0, 2
          3        SEND_VAL                                                 ~1
          4        SEND_VAL                                                 2
          5        DO_ICALL                                         $2      
          6        MUL                                              ~3      $2, 3.14159
          7      > RETURN                                                   ~3
    4     8*     > RETURN                                                   null

End of function s

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.53 ms | 1398 KiB | 18 Q