3v4l.org

run code in 500+ PHP versions simultaneously
<?php ini_set('serialize_precision', 14); echo ini_get('precision') . PHP_EOL; echo ini_get('serialize_precision') . PHP_EOL; echo json_encode(array('price' => round('45.99', 2))) . PHP_EOL; var_export((0.1+0.7)); var_export(json_encode(0.1+0.7));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/coaWm
function name:  (null)
number of ops:  34
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'ini_set'
          1        SEND_VAL                                                     'serialize_precision'
          2        SEND_VAL                                                     14
          3        DO_ICALL                                                     
    3     4        INIT_FCALL                                                   'ini_get'
          5        SEND_VAL                                                     'precision'
          6        DO_ICALL                                             $1      
          7        CONCAT                                               ~2      $1, '%0A'
          8        ECHO                                                         ~2
    4     9        INIT_FCALL                                                   'ini_get'
         10        SEND_VAL                                                     'serialize_precision'
         11        DO_ICALL                                             $3      
         12        CONCAT                                               ~4      $3, '%0A'
         13        ECHO                                                         ~4
    5    14        INIT_FCALL                                                   'json_encode'
         15        INIT_FCALL                                                   'round'
         16        SEND_VAL                                                     '45.99'
         17        SEND_VAL                                                     2
         18        DO_ICALL                                             $5      
         19        INIT_ARRAY                                           ~6      $5, 'price'
         20        SEND_VAL                                                     ~6
         21        DO_ICALL                                             $7      
         22        CONCAT                                               ~8      $7, '%0A'
         23        ECHO                                                         ~8
    6    24        INIT_FCALL                                                   'var_export'
         25        SEND_VAL                                                     0.8
         26        DO_ICALL                                                     
    7    27        INIT_FCALL                                                   'var_export'
         28        INIT_FCALL                                                   'json_encode'
         29        SEND_VAL                                                     0.8
         30        DO_ICALL                                             $10     
         31        SEND_VAR                                                     $10
         32        DO_ICALL                                                     
         33      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.26 ms | 1985 KiB | 18 Q