3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"test" : "test one \xe0 "}'; var_dump(json_decode($json)); echo json_last_error() . PHP_EOL; echo json_last_error_msg();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MGJvI
function name:  (null)
number of ops:  15
compiled vars:  !0 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%22test%22+%3A+%22test+one+%5Cxe0+%22%7D'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'json_decode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'json_last_error'
          8        DO_ICALL                                         $4      
          9        CONCAT                                           ~5      $4, '%0A'
         10        ECHO                                                     ~5
    9    11        INIT_FCALL                                               'json_last_error_msg'
         12        DO_ICALL                                         $6      
         13        ECHO                                                     $6
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.63 ms | 1012 KiB | 17 Q