<?php

if (function_exists('array_column')) {
  array_column(array(), '');
  json_last_error_msg();
} else {
  array_column(array(), '');
}

if (class_exists('CURLFile')) {
  new CURLFile('');
  new DateTimeImmutable();
}

if (function_exists('json_last_error_msg'))
  json_last_error_msg();

// These shouldn't fatal.
if (SomeClass::someStaticMethod($param)) {}
$var = 'some_func';
if ($var()) {}
~~~~~~~~~~
error:5:3
error:7:3
error:12:7
~~~~~~~~~~
~~~~~~~~~~
{
  "config": {
    "xhpast.php-version": "5.3.0"
  }
}
