3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( 8.75 * 3600 ); var_dump( 8.75 * 3600.00 ); define( 'HOUR_IN_SECONDS', 60 * 60 ); $gmt_offset = '8.75'; $num = (float) $gmt_offset * HOUR_IN_SECONDS; var_dump( $num, (int) $num );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rW2Ob
function name:  (null)
number of ops:  21
compiled vars:  !0 = $gmt_offset, !1 = $num
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 31500
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAL                                                 31500
          5        DO_ICALL                                                 
    6     6        INIT_FCALL                                               'define'
          7        SEND_VAL                                                 'HOUR_IN_SECONDS'
          8        SEND_VAL                                                 3600
          9        DO_ICALL                                                 
    7    10        ASSIGN                                                   !0, '8.75'
    8    11        CAST                                          5  ~6      !0
         12        FETCH_CONSTANT                                   ~7      'HOUR_IN_SECONDS'
         13        MUL                                              ~8      ~6, ~7
         14        ASSIGN                                                   !1, ~8
   10    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        CAST                                          4  ~10     !1
         18        SEND_VAL                                                 ~10
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.71 ms | 1460 KiB | 15 Q