3v4l.org

run code in 500+ 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.5.0


preferences:
213.33 ms | 1537 KiB | 10 Q