3v4l.org

run code in 300+ PHP versions simultaneously
<?php //£0.00230 -> £0.0023 and £1.50000 -> £1.50 $str = "£0.00230"; $str2 = "£1.50000"; echo number_format($str,2); echo number_format($str2,2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YR35Z
function name:  (null)
number of ops:  13
compiled vars:  !0 = $str, !1 = $str2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, '%C2%A30.00230'
    6     1        ASSIGN                                                   !1, '%C2%A31.50000'
    8     2        INIT_FCALL                                               'number_format'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 2
          5        DO_ICALL                                         $4      
          6        ECHO                                                     $4
    9     7        INIT_FCALL                                               'number_format'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 2
         10        DO_ICALL                                         $5      
         11        ECHO                                                     $5
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.96 ms | 1394 KiB | 15 Q