3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo ' ' . json_encode(round('1.123456789123456789', 10), JSON_NUMERIC_CHECK) . PHP_EOL; echo json_encode('1.123456789123456789');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Iobjm
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_encode'
          1        INIT_FCALL                                               'round'
          2        SEND_VAL                                                 '1.123456789123456789'
          3        SEND_VAL                                                 10
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        SEND_VAL                                                 32
          7        DO_ICALL                                         $1      
          8        CONCAT                                           ~2      '+', $1
          9        CONCAT                                           ~3      ~2, '%0A'
         10        ECHO                                                     ~3
    4    11        INIT_FCALL                                               'json_encode'
         12        SEND_VAL                                                 '1.123456789123456789'
         13        DO_ICALL                                         $4      
         14        ECHO                                                     $4
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.7 ms | 1394 KiB | 17 Q