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)."<br>"; $a=$r2; echo s(a)."<br>"; echo s(22); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t9TiV
function name:  (null)
number of ops:  20
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        CONCAT                                           ~8      $7, '%3Cbr%3E'
          7        ECHO                                                     ~8
    9     8        ASSIGN                                                   !3, !1
   10     9        INIT_FCALL                                               's'
         10        FETCH_CONSTANT                                   ~10     'a'
         11        SEND_VAL                                                 ~10
         12        DO_FCALL                                      0  $11     
         13        CONCAT                                           ~12     $11, '%3Cbr%3E'
         14        ECHO                                                     ~12
   11    15        INIT_FCALL                                               's'
         16        SEND_VAL                                                 22
         17        DO_FCALL                                      0  $13     
         18        ECHO                                                     $13
   12    19      > RETURN                                                   1

Function s:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t9TiV
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:
169.86 ms | 1398 KiB | 18 Q