3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.17 ms | 1396 KiB | 17 Q