3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bigger_than_max = '{"max": ' . PHP_INT_MAX . '1}'; var_dump($bigger_than_max); var_dump(json_decode($bigger_than_max)); var_dump(json_decode($bigger_than_max, false, 512, JSON_BIGINT_AS_STRING)); var_dump(json_encode(json_decode($bigger_than_max, false, 512, JSON_BIGINT_AS_STRING))); var_dump(json_encode(json_decode($bigger_than_max, false, 512, JSON_BIGINT_AS_STRING), JSON_NUMERIC_CHECK));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lHL62
function name:  (null)
number of ops:  45
compiled vars:  !0 = $bigger_than_max
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%22max%22%3A+92233720368547758071%7D'
    4     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    5     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'json_decode'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'json_decode'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 <false>
         14        SEND_VAL                                                 512
         15        SEND_VAL                                                 2
         16        DO_ICALL                                         $5      
         17        SEND_VAR                                                 $5
         18        DO_ICALL                                                 
    8    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'json_encode'
         21        INIT_FCALL                                               'json_decode'
         22        SEND_VAR                                                 !0
         23        SEND_VAL                                                 <false>
         24        SEND_VAL                                                 512
         25        SEND_VAL                                                 2
         26        DO_ICALL                                         $7      
         27        SEND_VAR                                                 $7
         28        DO_ICALL                                         $8      
         29        SEND_VAR                                                 $8
         30        DO_ICALL                                                 
    9    31        INIT_FCALL                                               'var_dump'
         32        INIT_FCALL                                               'json_encode'
         33        INIT_FCALL                                               'json_decode'
         34        SEND_VAR                                                 !0
         35        SEND_VAL                                                 <false>
         36        SEND_VAL                                                 512
         37        SEND_VAL                                                 2
         38        DO_ICALL                                         $10     
         39        SEND_VAR                                                 $10
         40        SEND_VAL                                                 32
         41        DO_ICALL                                         $11     
         42        SEND_VAR                                                 $11
         43        DO_ICALL                                                 
         44      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.52 ms | 1400 KiB | 19 Q