3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(round(-1)); var_dump(+round(-1)); var_dump(round(-1e-99)); var_dump(+round(-1e-99)); var_dump(-round(-1e-99));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VM7K1
function name:  (null)
number of ops:  34
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'round'
          2        SEND_VAL                                                 -1
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'round'
          8        SEND_VAL                                                 -1
          9        DO_ICALL                                         $2      
         10        MUL                                              ~3      $2, 1
         11        SEND_VAL                                                 ~3
         12        DO_ICALL                                                 
    6    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'round'
         15        SEND_VAL                                                 -1.0e-99
         16        DO_ICALL                                         $5      
         17        SEND_VAR                                                 $5
         18        DO_ICALL                                                 
    7    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'round'
         21        SEND_VAL                                                 -1.0e-99
         22        DO_ICALL                                         $7      
         23        MUL                                              ~8      $7, 1
         24        SEND_VAL                                                 ~8
         25        DO_ICALL                                                 
    8    26        INIT_FCALL                                               'var_dump'
         27        INIT_FCALL                                               'round'
         28        SEND_VAL                                                 -1.0e-99
         29        DO_ICALL                                         $10     
         30        MUL                                              ~11     $10, -1
         31        SEND_VAL                                                 ~11
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.57 ms | 1396 KiB | 17 Q