3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array( array( array( INF ) ) ); $flags = 0; $depth = 2; var_dump( json_encode( $array, $flags, $depth ) ); var_dump( json_last_error_msg() );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fL0eO
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array, !1 = $flags, !2 = $depth
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   11     1        ASSIGN                                                       !1, 0
   12     2        ASSIGN                                                       !2, 2
   13     3        INIT_FCALL                                                   'var_dump'
          4        INIT_FCALL                                                   'json_encode'
          5        SEND_VAR                                                     !0
          6        SEND_VAR                                                     !1
          7        SEND_VAR                                                     !2
          8        DO_ICALL                                             $6      
          9        SEND_VAR                                                     $6
         10        DO_ICALL                                                     
   14    11        INIT_FCALL                                                   'var_dump'
         12        INIT_FCALL                                                   'json_last_error_msg'
         13        DO_ICALL                                             $8      
         14        SEND_VAR                                                     $8
         15        DO_ICALL                                                     
         16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.74 ms | 480 KiB | 10 Q