3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(function_exists('json_last_error_msg')) { $json = '{ "bookindId":"30779265", "timestamp":"1428447744", "plate":"D-GO9872", "cityId":"RLD", "zoneId":"759", "highDemandZones":[ "402", "429", "714", "715", "721", "728", "732", "734", "742", "756", "758", "763" ], "accountId":"151426", "date":"20150408", "formattedDate":"08.04.2015, 01:02 Uhr" }'; print_r(json_decode($json), true); // Decode as array echo 'Error: '.json_last_error_msg(); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 16
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/uU59f
function name:  (null)
number of ops:  17
compiled vars:  !0 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'function_exists'
          1        SEND_VAL                                                 'json_last_error_msg'
          2        DO_ICALL                                         $1      
          3      > JMPZ                                                     $1, ->16
    4     4    >   ASSIGN                                                   !0, '%7B%0A++++++++%22bookindId%22%3A%2230779265%22%2C%0A++++++++%22timestamp%22%3A%221428447744%22%2C%0A++++++++%22plate%22%3A%22D-GO9872%22%2C%0A++++++++%22cityId%22%3A%22RLD%22%2C%0A++++++++%22zoneId%22%3A%22759%22%2C%0A++++++++%22highDemandZones%22%3A%5B%0A++++++++++++%22402%22%2C%0A++++++++++++%22429%22%2C%0A++++++++++++%22714%22%2C%0A++++++++++++%22715%22%2C%0A++++++++++++%22721%22%2C%0A++++++++++++%22728%22%2C%0A++++++++++++%22732%22%2C%0A++++++++++++%22734%22%2C%0A++++++++++++%22742%22%2C%0A++++++++++++%22756%22%2C%0A++++++++++++%22758%22%2C%0A++++++++++++%22763%22%0A++++++++%5D%2C%0A++++++++%22accountId%22%3A%22151426%22%2C%0A++++++++%22date%22%3A%2220150408%22%2C%0A++++++++%22formattedDate%22%3A%2208.04.2015%2C+01%3A02+Uhr%22%0A++++%7D'
   28     5        INIT_FCALL                                               'print_r'
          6        INIT_FCALL                                               'json_decode'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                                 
   29    12        INIT_FCALL                                               'json_last_error_msg'
         13        DO_ICALL                                         $5      
         14        CONCAT                                           ~6      'Error%3A+', $5
         15        ECHO                                                     ~6
   30    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.49 ms | 1395 KiB | 21 Q