3v4l.org

run code in 500+ PHP versions simultaneously
<?php $foo = new stdClass; $bar = new stdClass; $foo->bar = $bar; $bar->foo = $foo; echo json_encode($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5rVEA
function name:  (null)
number of ops:  15
compiled vars:  !0 = $foo, !1 = $bar
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $2      'stdClass'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $2
    4     3        NEW                                                  $5      'stdClass'
          4        DO_FCALL                                          0          
          5        ASSIGN                                                       !1, $5
    6     6        ASSIGN_OBJ                                                   !0, 'bar'
          7        OP_DATA                                                      !1
    7     8        ASSIGN_OBJ                                                   !1, 'foo'
          9        OP_DATA                                                      !0
    9    10        INIT_FCALL                                                   'json_encode'
         11        SEND_VAR                                                     !0
         12        DO_ICALL                                             $10     
         13        ECHO                                                         $10
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
151.66 ms | 2871 KiB | 14 Q