3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(json_decode("{foo: Infinity}")); $st = new stdclass; $st->test = INF; var_dump(json_encode($st));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/db71E
function name:  (null)
number of ops:  18
compiled vars:  !0 = $st
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'json_decode'
          2        SEND_VAL                                                 '%7Bfoo%3A+Infinity%7D'
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                                 
    5     6        NEW                                              $3      'stdclass'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !0, $3
    6     9        ASSIGN_OBJ                                               !0, 'test'
         10        OP_DATA                                                  INF
    8    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'json_encode'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.55 ms | 1394 KiB | 19 Q