3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [0.06,0.0025,0.0225,0.01]; $s = array_sum($a); echo $s . "\n"; echo number_format($s, 2, '.', '');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WQVRub
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'array_sum'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    6     5        CONCAT                                           ~5      !1, '%0A'
          6        ECHO                                                     ~5
    8     7        INIT_FCALL                                               'number_format'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 2
         10        SEND_VAL                                                 '.'
         11        SEND_VAL                                                 ''
         12        DO_ICALL                                         $6      
         13        ECHO                                                     $6
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.13 ms | 1005 KiB | 15 Q