3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set( "precision", 14 ); ini_set( "serialize_precision", -1 ); echo json_encode([0.1, round((14984 / 83112), 4)*100, 0.1803 * 100]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vFCgM
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'precision'
          2        SEND_VAL                                                 14
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'ini_set'
          5        SEND_VAL                                                 'serialize_precision'
          6        SEND_VAL                                                 -1
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'json_encode'
          9        INIT_ARRAY                                       ~2      0.1
         10        INIT_FCALL                                               'round'
         11        SEND_VAL                                                 0.180287
         12        SEND_VAL                                                 4
         13        DO_ICALL                                         $3      
         14        MUL                                              ~4      $3, 100
         15        ADD_ARRAY_ELEMENT                                ~2      ~4
         16        ADD_ARRAY_ELEMENT                                ~2      18.03
         17        SEND_VAL                                                 ~2
         18        DO_ICALL                                         $5      
         19        ECHO                                                     $5
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.79 ms | 1395 KiB | 19 Q