3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_ALL, "czech"); $x = 1/3; echo var_export($x); echo "\n"; echo sprintf('%.14F', $x); echo "\n"; echo (string) $x;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UpscV
function name:  (null)
number of ops:  19
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'setlocale'
          1        SEND_VAL                                                 6
          2        SEND_VAL                                                 'czech'
          3        DO_ICALL                                                 
    3     4        ASSIGN                                                   !0, 0.333333
    4     5        INIT_FCALL                                               'var_export'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        ECHO                                                     $3
    5     9        ECHO                                                     '%0A'
    6    10        INIT_FCALL                                               'sprintf'
         11        SEND_VAL                                                 '%25.14F'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $4      
         14        ECHO                                                     $4
    7    15        ECHO                                                     '%0A'
    8    16        CAST                                          6  ~5      !0
         17        ECHO                                                     ~5
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
221.73 ms | 1394 KiB | 19 Q