3v4l.org

run code in 500+ PHP versions simultaneously
<?php $newstatus = 'yes'; json_encode ( (object) [ 'status' => (int) $newstatus ] );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Reoec
function name:  (null)
number of ops:  8
compiled vars:  !0 = $newstatus
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'yes'
    3     1        INIT_FCALL                                                   'json_encode'
          2        CAST                                              4  ~2      !0
          3        INIT_ARRAY                                           ~3      ~2, 'status'
          4        CAST                                              8  ~4      ~3
          5        SEND_VAL                                                     ~4
          6        DO_ICALL                                                     
          7      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.72 ms | 2945 KiB | 14 Q