3v4l.org

run code in 300+ PHP versions simultaneously
<?php function s($rad){ return pi*(pow($rad/2,2)); } $r1=4; $r2=10; $r3=22; echo s($r1); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4cldF
function name:  (null)
number of ops:  8
compiled vars:  !0 = $r1, !1 = $r2, !2 = $r3
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  $6      
          6        ECHO                                                     $6
    9     7      > RETURN                                                   1

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

End of function s

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.51 ms | 1397 KiB | 16 Q