3v4l.org

run code in 500+ PHP versions simultaneously
<?php // more than 18 is sufficient $json = '12345123451234512345'; var_dump(json_decode($json)); // a float var_dump(json_decode($json, flags: JSON_BIGINT_AS_STRING)); // a string var_dump(json_encode(json_decode($json, flags: JSON_BIGINT_AS_STRING))); // string(22) ""12345123451234512345"" // with extra ""
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9cn1P
function name:  (null)
number of ops:  27
compiled vars:  !0 = $json
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                       !0, '12345123451234512345'
    6     1        INIT_FCALL                                                   'var_dump'
          2        INIT_FCALL                                                   'json_decode'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $2      
          5        SEND_VAR                                                     $2
          6        DO_ICALL                                                     
    7     7        INIT_FCALL                                                   'var_dump'
          8        INIT_FCALL                                                   'json_decode'
          9        SEND_VAR                                                     !0
         10        SEND_VAL                                                     2
         11        CHECK_UNDEF_ARGS                                             
         12        DO_ICALL                                             $4      
         13        SEND_VAR                                                     $4
         14        DO_ICALL                                                     
    9    15        INIT_FCALL                                                   'var_dump'
         16        INIT_FCALL                                                   'json_encode'
         17        INIT_FCALL                                                   'json_decode'
         18        SEND_VAR                                                     !0
         19        SEND_VAL                                                     2
         20        CHECK_UNDEF_ARGS                                             
         21        DO_ICALL                                             $6      
         22        SEND_VAR                                                     $6
         23        DO_ICALL                                             $7      
         24        SEND_VAR                                                     $7
         25        DO_ICALL                                                     
   11    26      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
127.94 ms | 481 KiB | 10 Q