3v4l.org

run code in 300+ PHP versions simultaneously
<?php $p = 14; echo var_export((float) (string) round(20/3, $p), TRUE) . "\n"; echo var_export((float)(string) round(20 / 3, $p), TRUE) . "\n"; echo var_export((float)(string) round(6.66, $p), TRUE) . "\n"; echo var_export((float)(string) round(6.0, $p), TRUE) . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e9fro
function name:  (null)
number of ops:  50
compiled vars:  !0 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 14
    4     1        INIT_FCALL                                               'var_export'
          2        INIT_FCALL                                               'round'
          3        SEND_VAL                                                 6.66667
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        CAST                                          6  ~3      $2
          7        CAST                                          5  ~4      ~3
          8        SEND_VAL                                                 ~4
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                         $5      
         11        CONCAT                                           ~6      $5, '%0A'
         12        ECHO                                                     ~6
    5    13        INIT_FCALL                                               'var_export'
         14        INIT_FCALL                                               'round'
         15        SEND_VAL                                                 6.66667
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $7      
         18        CAST                                          6  ~8      $7
         19        CAST                                          5  ~9      ~8
         20        SEND_VAL                                                 ~9
         21        SEND_VAL                                                 <true>
         22        DO_ICALL                                         $10     
         23        CONCAT                                           ~11     $10, '%0A'
         24        ECHO                                                     ~11
    6    25        INIT_FCALL                                               'var_export'
         26        INIT_FCALL                                               'round'
         27        SEND_VAL                                                 6.66
         28        SEND_VAR                                                 !0
         29        DO_ICALL                                         $12     
         30        CAST                                          6  ~13     $12
         31        CAST                                          5  ~14     ~13
         32        SEND_VAL                                                 ~14
         33        SEND_VAL                                                 <true>
         34        DO_ICALL                                         $15     
         35        CONCAT                                           ~16     $15, '%0A'
         36        ECHO                                                     ~16
    7    37        INIT_FCALL                                               'var_export'
         38        INIT_FCALL                                               'round'
         39        SEND_VAL                                                 6
         40        SEND_VAR                                                 !0
         41        DO_ICALL                                         $17     
         42        CAST                                          6  ~18     $17
         43        CAST                                          5  ~19     ~18
         44        SEND_VAL                                                 ~19
         45        SEND_VAL                                                 <true>
         46        DO_ICALL                                         $20     
         47        CONCAT                                           ~21     $20, '%0A'
         48        ECHO                                                     ~21
         49      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.21 ms | 1400 KiB | 17 Q