3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArr = array( "success" => ( object ) array( "id" => "success=-message", "class" => "success-message", "inner-html" => "Congratulations! You have been succesfully logged in" ) ); //Now you output the json version echo json_encode( $myArr );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tUZUQ
function name:  (null)
number of ops:  8
compiled vars:  !0 = $myArr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   CAST                                          8  ~1      <array>
          1        INIT_ARRAY                                       ~2      ~1, 'success'
    2     2        ASSIGN                                                   !0, ~2
   11     3        INIT_FCALL                                               'json_encode'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ECHO                                                     $4
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.1 ms | 1385 KiB | 15 Q