3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(ini_get('bcmath.scale')); foreach (array('87951', '156257') as $newTime) { $newTime = bcdiv($newTime, bcmul("24", bcmul("60", "60")), 10); var_dump($newTime); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 26
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 26
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/9esdW
function name:  (null)
number of ops:  28
compiled vars:  !0 = $newTime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'ini_get'
          2        SEND_VAL                                                 'bcmath.scale'
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                                 
    5     6      > FE_RESET_R                                       $3      <array>, ->26
          7    > > FE_FETCH_R                                               $3, !0, ->26
    6     8    >   INIT_FCALL_BY_NAME                                       'bcdiv'
          9        SEND_VAR_EX                                              !0
         10        INIT_FCALL_BY_NAME                                       'bcmul'
         11        SEND_VAL_EX                                              '24'
         12        INIT_FCALL_BY_NAME                                       'bcmul'
         13        SEND_VAL_EX                                              '60'
         14        SEND_VAL_EX                                              '60'
         15        DO_FCALL                                      0  $4      
         16        SEND_VAR_NO_REF_EX                                       $4
         17        DO_FCALL                                      0  $5      
         18        SEND_VAR_NO_REF_EX                                       $5
         19        SEND_VAL_EX                                              10
         20        DO_FCALL                                      0  $6      
         21        ASSIGN                                                   !0, $6
    7    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                                 
    5    25      > JMP                                                      ->7
         26    >   FE_FREE                                                  $3
    8    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.37 ms | 1395 KiB | 17 Q