3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach ([0.1, -0.1, 1.0, 123.4, -123.4, -5.45, 5.46] as $i) { $b=sprintf("%.1e\n", $i); echo $i.' => '.(float)$b. "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 1, Position 2 = 13
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 13
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/03EEG
function name:  (null)
number of ops:  15
compiled vars:  !0 = $i, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > FE_RESET_R                                       $2      <array>, ->13
          1    > > FE_FETCH_R                                               $2, !0, ->13
    4     2    >   INIT_FCALL                                               'sprintf'
          3        SEND_VAL                                                 '%25.1e%0A'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    5     7        CONCAT                                           ~5      !0, '+%3D%3E+'
          8        CAST                                          5  ~6      !1
          9        CONCAT                                           ~7      ~5, ~6
         10        CONCAT                                           ~8      ~7, '%0A'
         11        ECHO                                                     ~8
    3    12      > JMP                                                      ->1
         13    >   FE_FREE                                                  $2
    6    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.9 ms | 1394 KiB | 15 Q