3v4l.org

run code in 300+ PHP versions simultaneously
<?php $buffer = '{"format": {"rule": ["matches","/^(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\\d\\d$/"],"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/T2rg4
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%22format%22%3A+%7B%22rule%22%3A+%5B%22matches%22%2C%22%2F%5E%280%5B1-9%5D%7C1%5B012%5D%29%5B-+%2F.%5D%280%5B1-9%5D%7C%5B12%5D%5B0-9%5D%7C3%5B01%5D%29%5B-+%2F.%5D%2819%7C20%29%5Cd%5Cd%24%2F%22%5D%2C%22message%22%3A%22Applications.submit_birthdate_format%22%7D%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        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:
151.52 ms | 1394 KiB | 19 Q