3v4l.org

run code in 300+ PHP versions simultaneously
<?php $buffer = '{ "format": { "rule": [ "matches", "" ], "message": "Applications.submit_birthdate_format" } }'; var_dump(json_decode($buffer), json_last_error(), JSON_ERROR_SYNTAX);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kVg27
function name:  (null)
number of ops:  12
compiled vars:  !0 = $buffer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%0A++++%22format%22%3A+%7B%0A++++++++%22rule%22%3A+%5B%0A++++++++++++%22matches%22%2C%0A++++++++++++%22%22%0A++++++++%5D%2C%0A++++++++%22message%22%3A+%22Applications.submit_birthdate_format%22%0A++++%7D%0A++++%0A%7D'
   14     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'json_decode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        INIT_FCALL                                               'json_last_error'
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        SEND_VAL                                                 4
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.6 ms | 1394 KiB | 19 Q