3v4l.org

run code in 300+ PHP versions simultaneously
<?php $val_str = "1008901020901566350119"; $int = "1"; $string = "12345"; $data = array("val_str" => $val_str, "int" => (int)$int, "string" => $string); var_dump(json_encode($data));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f3qUj
function name:  (null)
number of ops:  15
compiled vars:  !0 = $val_str, !1 = $int, !2 = $string, !3 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1008901020901566350119'
    4     1        ASSIGN                                                   !1, '1'
    5     2        ASSIGN                                                   !2, '12345'
    7     3        INIT_ARRAY                                       ~7      !0, 'val_str'
          4        CAST                                          4  ~8      !1
          5        ADD_ARRAY_ELEMENT                                ~7      ~8, 'int'
          6        ADD_ARRAY_ELEMENT                                ~7      !2, 'string'
          7        ASSIGN                                                   !3, ~7
    8     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'json_encode'
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                         $10     
         12        SEND_VAR                                                 $10
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.22 ms | 1394 KiB | 17 Q