3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.58 ms | 1395 KiB | 15 Q