3v4l.org

run code in 500+ PHP versions simultaneously
<?php ini_set('serialize_precision', ini_get('precision')); $c = 122.13 + 0.02; echo $c; echo "\n"; echo json_encode($c); echo "\n"; echo json_encode(105.15);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bGaCZ
function name:  (null)
number of ops:  20
compiled vars:  !0 = $c
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'ini_set'
          1        SEND_VAL                                                     'serialize_precision'
          2        INIT_FCALL                                                   'ini_get'
          3        SEND_VAL                                                     'precision'
          4        DO_ICALL                                             $1      
          5        SEND_VAR                                                     $1
          6        DO_ICALL                                                     
    3     7        ASSIGN                                                       !0, 122.15
    4     8        ECHO                                                         !0
    5     9        ECHO                                                         '%0A'
    6    10        INIT_FCALL                                                   'json_encode'
         11        SEND_VAR                                                     !0
         12        DO_ICALL                                             $4      
         13        ECHO                                                         $4
    7    14        ECHO                                                         '%0A'
    8    15        INIT_FCALL                                                   'json_encode'
         16        SEND_VAL                                                     105.15
         17        DO_ICALL                                             $5      
         18        ECHO                                                         $5
         19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
172.66 ms | 2191 KiB | 15 Q