Server : Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.6 System : Windows NT USER-PC 6.1 build 7601 (Windows 7 Professional Edition Service Pack 1) AMD64 User : User ( 0) PHP Version : 7.4.6 Disable Function : NONE Directory : C:/xampp/php/tests/ |
<?php /** * Request #6056 Add support for reporting max PHP version. Sample code. * * PHP versions 4 and 5 * * @category PHP * @package PHP_CompatInfo * @author Laurent Laville <pear@laurent-laville.org> * @license http://www.php.net/license/3_01.txt PHP License 3.01 * @version CVS: $Id: sample_req6056.php,v 1.4 2007/11/15 18:23:40 farell Exp $ * @link http://pear.php.net/bugs/bug.php?id=6056 * @ignore */ class Request6056 { /** * Sample code to check max php version * * @return void */ function testMaxVersion() { // PHP 5 <= 5.0.4 $res = php_check_syntax('bug6581.php'); $array1 = array('blue' => 1, 'red' => 2, 'green' => 3); $array2 = array('green' => 5, 'blue' => 6, 'yellow' => 7); // PHP 5 >= 5.1.0RC1 $diff = array_diff_key($array1, $array2); } } ?>