3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a =cos(deg2rad((-2 * (45 - 90)))); var_export($a); echo "\n".sprintf('%F', $a)."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jbsmk
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'cos'
          1        INIT_FCALL                                               'deg2rad'
          2        SEND_VAL                                                 90
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    4     7        INIT_FCALL                                               'var_export'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'sprintf'
         11        SEND_VAL                                                 '%25F'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $5      
         14        CONCAT                                           ~6      '%0A', $5
         15        CONCAT                                           ~7      ~6, '%0A'
         16        ECHO                                                     ~7
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.32 ms | 1386 KiB | 21 Q