3v4l.org

run code in 300+ PHP versions simultaneously
<?php $j = '{ "v": 0.1234567890123456789 }'; $d1 = json_decode($j); ini_set('precision', 20); $d2 = json_decode($j); var_dump($d1, $d2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/48VSt
function name:  (null)
number of ops:  18
compiled vars:  !0 = $j, !1 = $d1, !2 = $d2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B+%22v%22%3A+0.1234567890123456789+%7D'
    4     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    5     5        INIT_FCALL                                               'ini_set'
          6        SEND_VAL                                                 'precision'
          7        SEND_VAL                                                 20
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'json_decode'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !2, $7
    7    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.48 ms | 999 KiB | 16 Q