3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v = array(1.0, 0.0000000001, 1e300, 1e-100, 1/3, 1-1/3, 8/9, 1-8/9, 1.235469999932135465487e-56); array_walk($v, function($i) { echo $i . "\n" . "$i" . "\n" . ((string) $i) . "\n" . json_encode($i) . "\n" . var_export($i, TRUE) . "\n" . sprintf('%f', $i) . "\n" . "\n"; });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/caDe7
function name:  (null)
number of ops:  7
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'array_walk'
          2        SEND_REF                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FcaDe7%3A5%240'
   13     4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FcaDe7%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/caDe7
function name:  {closure}
number of ops:  28
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        CONCAT                                           ~1      !0, '%0A'
    7     2        CAST                                          6  ~2      !0
          3        CONCAT                                           ~3      ~1, ~2
          4        CONCAT                                           ~4      ~3, '%0A'
    8     5        CAST                                          6  ~5      !0
          6        CONCAT                                           ~6      ~4, ~5
          7        CONCAT                                           ~7      ~6, '%0A'
    9     8        INIT_FCALL                                               'json_encode'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $8      
         11        CONCAT                                           ~9      ~7, $8
         12        CONCAT                                           ~10     ~9, '%0A'
   10    13        INIT_FCALL                                               'var_export'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 <true>
         16        DO_ICALL                                         $11     
         17        CONCAT                                           ~12     ~10, $11
         18        CONCAT                                           ~13     ~12, '%0A'
   11    19        INIT_FCALL                                               'sprintf'
         20        SEND_VAL                                                 '%25f'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $14     
         23        CONCAT                                           ~15     ~13, $14
         24        CONCAT                                           ~16     ~15, '%0A'
   12    25        CONCAT                                           ~17     ~16, '%0A'
         26        ECHO                                                     ~17
   13    27      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FcaDe7%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.77 ms | 1396 KiB | 21 Q