3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(8/16); var_dump((1/16) * 8); var_dump(pow(16,-1) * 8); bcscale(4); var_dump(bcpow('16','-1') * 8); var_dump(bcpow('16','-1',3) * 8);
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/V82YT
function name:  (null)
number of ops:  35
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   INIT_FCALL                                               'var_dump'
         1        SEND_VAL                                                 0.5
         2        DO_ICALL                                                 
   3     3        INIT_FCALL                                               'var_dump'
         4        SEND_VAL                                                 0.5
         5        DO_ICALL                                                 
   4     6        INIT_FCALL                                               'var_dump'
         7        INIT_FCALL                                               'pow'
         8        SEND_VAL                                                 16
         9        SEND_VAL                                                 -1
        10        DO_ICALL                                         $2      
        11        MUL                                              ~3      $2, 8
        12        SEND_VAL                                                 ~3
        13        DO_ICALL                                                 
   5    14        INIT_FCALL                                               'bcscale'
        15        SEND_VAL                                                 4
        16        DO_ICALL                                                 
   6    17        INIT_FCALL                                               'var_dump'
        18        INIT_FCALL                                               'bcpow'
        19        SEND_VAL                                                 '16'
        20        SEND_VAL                                                 '-1'
        21        DO_ICALL                                         $6      
        22        MUL                                              ~7      $6, 8
        23        SEND_VAL                                                 ~7
        24        DO_ICALL                                                 
   7    25        INIT_FCALL                                               'var_dump'
        26        INIT_FCALL                                               'bcpow'
        27        SEND_VAL                                                 '16'
        28        SEND_VAL                                                 '-1'
        29        SEND_VAL                                                 3
        30        DO_ICALL                                         $9      
        31        MUL                                              ~10     $9, 8
        32        SEND_VAL                                                 ~10
        33        DO_ICALL                                                 
        34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0