3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_num = 131510; $dec = number_format($my_num / 100, 2, '.'); echo $dec . "\n"; echo floatval($dec);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PtMBP
function name:  (null)
number of ops:  13
compiled vars:  !0 = $my_num, !1 = $dec
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 131510
    5     1        INIT_FCALL                                               'number_format'
          2        DIV                                              ~3      !0, 100
          3        SEND_VAL                                                 ~3
          4        SEND_VAL                                                 2
          5        SEND_VAL                                                 '.'
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    6     8        CONCAT                                           ~6      !1, '%0A'
          9        ECHO                                                     ~6
    8    10        CAST                                          5  ~7      !1
         11        ECHO                                                     ~7
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.44 ms | 1394 KiB | 15 Q