3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "{ \"idMissing\": { \"en\": \"Object must have an id property.\" }, \"invalidBody\": { \"en\": \"Passing in the 'body' request\n option as an array to send a POST request has been deprecated.\n Please use the 'form_params' request option to send a\n application/x-www-form-urlencoded request, or a the 'multipart'\n request option to send a multipart/form-data request.\" } }"; $b = json_decode($a); print_r($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nrtd1
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%0A++%22idMissing%22%3A+%7B%0A++++%22en%22%3A+%22Object+must+have+an+id+property.%22%0A++%7D%2C%0A++%22invalidBody%22%3A+%7B%0A++++%22en%22%3A+%22Passing+in+the+%27body%27+request%0A+option+as+an+array+to+send+a+POST+request+has+been+deprecated.%0A+Please+use+the+%27form_params%27+request+option+to+send+a%0A+application%2Fx-www-form-urlencoded+request%2C+or+a+the+%27multipart%27%0A+request+option+to+send+a+multipart%2Fform-data+request.%22%0A++%7D%0A%7D'
   11     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   13     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.23 ms | 1394 KiB | 17 Q