3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(json_decode(<<<JSON { "CORS_ALLOW_ORIGIN": "^https?://localhost\\\\(:[0-9]+\\\\)?$" } JSON , true)); var_dump(json_last_error_msg());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rP8Cj
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'json_decode'
    4     2        SEND_VAL                                                 '%7B%0A++%22CORS_ALLOW_ORIGIN%22%3A+%22%5Ehttps%3F%3A%2F%2Flocalhost%5C%5C%28%3A%5B0-9%5D%2B%5C%5C%29%3F%24%22%0A%7D'
    8     3        SEND_VAL                                                 <true>
    3     4        DO_ICALL                                         $0      
    8     5        SEND_VAR                                                 $0
    3     6        DO_ICALL                                                 
   10     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'json_last_error_msg'
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.13 ms | 998 KiB | 16 Q