3v4l.org

run code in 300+ PHP versions simultaneously
<?php $e = new Exception(); // This line cause problem :( // Comment it to see the difference. // (string) $e; // This line show the clue (PHP Warning: ...). var_export($e); // This line will be affected. var_export(json_encode([$e])); // But This line still OK. var_export(json_encode($e));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Lgvq6
function name:  (null)
number of ops:  20
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'Exception'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   10     3        INIT_FCALL                                               'var_export'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
   13     6        INIT_FCALL                                               'var_export'
          7        INIT_FCALL                                               'json_encode'
          8        INIT_ARRAY                                       ~5      !0
          9        SEND_VAL                                                 ~5
         10        DO_ICALL                                         $6      
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                                 
   16    13        INIT_FCALL                                               'var_export'
         14        INIT_FCALL                                               'json_encode'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $8      
         17        SEND_VAR                                                 $8
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.81 ms | 1399 KiB | 17 Q