3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.55 ms | 1396 KiB | 17 Q