Display the drop-down list

Test of class_implements()

Example #1 : test success
Example #2 : test failed
Example #3 : test success
Example #1
$input = 'ArrayObject'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => [
      
'IteratorAggregate' => 'IteratorAggregate',
      
'Traversable' => 'Traversable',
      
'ArrayAccess' => 'ArrayAccess',
      
'Serializable' => 'Serializable',
      
'Countable' => 'Countable',
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #2
$input = 'Exception'
$expected_output = [
  
'result' => [
    
'array' => [
    ],
  ],
  
'php_version' => '5.6.8 WINNT i586',
]
$test_output = [
  
'result' => [
    
'array' => [
      
'Throwable' => 'Throwable',
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #3
$input = 'xyz'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => false,
  ],
  
'errors' => [
    
=> [
      
'code' => 2,
      
'message' => 'class_implements(): Class xyz does not exist and could not be loaded',
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]