3v4l.org

run code in 300+ PHP versions simultaneously
<?php bcscale(2); print bcadd('-0.0', '-0.0') . '<br>'; // prints: -0.00, should be: 0.00 print bccomp('-0.0', '0') . '<br>'; // prints: -1, should be: 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J93YJ
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'bcscale'
          1        SEND_VAL_EX                                              2
          2        DO_FCALL                                      0          
    3     3        INIT_FCALL_BY_NAME                                       'bcadd'
          4        SEND_VAL_EX                                              '-0.0'
          5        SEND_VAL_EX                                              '-0.0'
          6        DO_FCALL                                      0  $1      
          7        CONCAT                                           ~2      $1, '%3Cbr%3E'
          8        ECHO                                                     ~2
    4     9        INIT_FCALL_BY_NAME                                       'bccomp'
         10        SEND_VAL_EX                                              '-0.0'
         11        SEND_VAL_EX                                              '0'
         12        DO_FCALL                                      0  $3      
         13        CONCAT                                           ~4      $3, '%3Cbr%3E'
         14        ECHO                                                     ~4
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161 ms | 1397 KiB | 13 Q