3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num = 30.61; echo number_format(round($num, 1), 2); echo "\n"; $num = 30.79; echo number_format(round($num, 1), 2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i2YV5
function name:  (null)
number of ops:  22
compiled vars:  !0 = $num
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 30.61
    4     1        INIT_FCALL                                               'number_format'
          2        INIT_FCALL                                               'round'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 1
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        SEND_VAL                                                 2
          8        DO_ICALL                                         $3      
          9        ECHO                                                     $3
    6    10        ECHO                                                     '%0A'
    8    11        ASSIGN                                                   !0, 30.79
    9    12        INIT_FCALL                                               'number_format'
         13        INIT_FCALL                                               'round'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 1
         16        DO_ICALL                                         $5      
         17        SEND_VAR                                                 $5
         18        SEND_VAL                                                 2
         19        DO_ICALL                                         $6      
         20        ECHO                                                     $6
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162 ms | 1399 KiB | 17 Q