3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '{"carrier":"R&L Carriers","charge":"99.13","service_days":"Wednesday Oct. 22, 2014"}'; $parsed = json_decode($input); if (json_last_error() !== JSON_ERROR_NONE) { echo json_last_error_msg(); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/hU0HP
function name:  (null)
number of ops:  13
compiled vars:  !0 = $input, !1 = $parsed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%22carrier%22%3A%22R%26L+Carriers%22%2C%22charge%22%3A%2299.13%22%2C%22service_days%22%3A%22Wednesday+Oct.+22%2C+2014%22%7D'
    3     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    5     5        INIT_FCALL                                               'json_last_error'
          6        DO_ICALL                                         $5      
          7        IS_NOT_IDENTICAL                                         $5, 0
          8      > JMPZ                                                     ~6, ->12
    6     9    >   INIT_FCALL                                               'json_last_error_msg'
         10        DO_ICALL                                         $7      
         11        ECHO                                                     $7
    7    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.9 ms | 1394 KiB | 19 Q