3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.72 ms | 1396 KiB | 17 Q