3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo round('2.555', 2); echo round('2.555', 2, PHP_HALF_ROUND_UP);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZYdUr
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'round'
          1        SEND_VAL                                                 '2.555'
          2        SEND_VAL                                                 2
          3        DO_ICALL                                         $0      
          4        ECHO                                                     $0
    4     5        INIT_FCALL                                               'round'
          6        SEND_VAL                                                 '2.555'
          7        SEND_VAL                                                 2
          8        FETCH_CONSTANT                                   ~1      'PHP_HALF_ROUND_UP'
          9        SEND_VAL                                                 ~1
         10        DO_ICALL                                         $2      
         11        ECHO                                                     $2
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.21 ms | 1394 KiB | 15 Q