3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dist = sin(deg2rad(45.9007)) * sin(deg2rad(45.9007)) + cos(deg2rad(45.9007)) * cos(deg2rad(45.9007)); var_dump( $dist, acos($dist) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LTLAg
function name:  (null)
number of ops:  36
compiled vars:  !0 = $dist
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'sin'
          1        INIT_FCALL                                               'deg2rad'
          2        SEND_VAL                                                 45.9007
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                         $2      
          6        INIT_FCALL                                               'sin'
          7        INIT_FCALL                                               'deg2rad'
          8        SEND_VAL                                                 45.9007
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        DO_ICALL                                         $4      
         12        MUL                                              ~5      $2, $4
         13        INIT_FCALL                                               'cos'
         14        INIT_FCALL                                               'deg2rad'
         15        SEND_VAL                                                 45.9007
         16        DO_ICALL                                         $6      
         17        SEND_VAR                                                 $6
         18        DO_ICALL                                         $7      
         19        INIT_FCALL                                               'cos'
         20        INIT_FCALL                                               'deg2rad'
         21        SEND_VAL                                                 45.9007
         22        DO_ICALL                                         $8      
         23        SEND_VAR                                                 $8
         24        DO_ICALL                                         $9      
         25        MUL                                              ~10     $7, $9
         26        ADD                                              ~11     ~5, ~10
         27        ASSIGN                                                   !0, ~11
    4    28        INIT_FCALL                                               'var_dump'
    5    29        SEND_VAR                                                 !0
    6    30        INIT_FCALL                                               'acos'
         31        SEND_VAR                                                 !0
         32        DO_ICALL                                         $13     
         33        SEND_VAR                                                 $13
         34        DO_ICALL                                                 
    7    35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.04 ms | 1396 KiB | 23 Q