3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.38 ms | 1396 KiB | 19 Q