3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pmac_details = array( 'name' => 'amarillo', 'dvatName' => 'amarillo', 'hostname' => 'amarillo', 'mgmtBridge' => 'management', 'mgmtIp' => '10.240.4.82', 'mgmtNM' => '255.255.255.0', 'gateway' => '10.240.4.1', 'controlBridge' => 'control', 'controlIp' => '169.254.118.4', 'controlNM' => '255.255.255.0', 'controlNetwork' => '169.254.118.0', 'routeIf' => 'management', 'ntp' => '10.250.32.10', 'tvoeHost' => array( 'mgmtIp' => '10.240.4.83', 'mgmtNM' => '255.255.255.0', 'gateway' => '10.240.4.1', 'iloIp' => '10.240.4.84', 'hostname' => 'amarilloHost', 'dvatName' => 'amarilloHost', 'hardwareID' => 'ProLiantDL380pGen8', 'ntpServer' => '10.250.32.10', 'mgmtNetworkInt1' => 'eth01', 'mgmtNetworkInt2' => 'eth02', 'mgmtNetworkBond' => 'bond0', 'mgmtBridgeDevice' => 'bond0.2', ), 'features' => array( array( 'featureName' => 'DEVICE.NTP', 'enable' => '1', 'featureRole' => 'management', 'featureDescription' => 'PMAC as a Time Server', ), ), 'networks' => array( array( 'networkIP' => '10.240.4.0', 'networkNM' => '255.255.255.0', 'networkRole' => 'management', 'device' => 'management', 'interfaceIp' => '10.240.4.82', 'interfaceDescr' => 'Management of system devices', 'routes' => array( array( 'device' => 'management', 'destIp' => '0.0.0.0', 'netmask' => '0.0.0.0', 'gatewayIp' => '10.240.4.1', ), ), 'dhcpRanges' => array(), ), array( 'networkIP' => '169.254.118.0', 'networkNM' => '255.255.255.0', 'networkRole' => 'control', 'device' => 'control', 'interfaceIp' => '169.254.118.4', 'interfaceDescr' => 'Control network for managed servers', 'routes' => array(), 'dhcpRanges' => array( array( 'startAddr' => '169.254.118.50', 'endAddr' => '169.254.118.250', ), ), ), ), 'cabinets' => array('505', '504', '507'), 'enclosures' => array( array( 'cabinetID' => '505', 'enclosureID' => '50502', 'OA1' => '10.240.17.9', 'OA2' => '10.240.17.30', 'blades' => array( array( 'location' => '1F', 'model' => 'ProLiantBL460cG6', 'os' => 'TPD', 'sanHba' => '0', 'enableTesting' => '1, ), array( 'location' => '2F', 'model' => 'ProLiantBL460cG6', 'os' => 'TPD', 'sanHba' => '0', 'enableTesting' => '1', ), array( 'location' => '3F', 'model' => 'ProLiantBL460cG6', 'os' => 'TVOE', 'sanHba' => '1', 'enableTesting' => '1', ), array( 'location' => '4F', 'model' => 'ProLiantBL460cG6', 'os' => 'TPD', 'sanHba' => '1', 'enableTesting' => '1', ), array( 'location' => '5F', 'model' => 'ProLiantBL460cG6', 'os' => 'TVOE', 'sanHba' => '1', 'enableTesting' => '0', ), array( 'location' => '6F', 'model' => 'ProLiantBL460cGen8', 'os' => 'TPD', 'sanHba' => '0', 'enableTesting' => '1', ), array( 'location' => '7F', 'model' => 'ProLiantBL460cGen8', 'os' => 'TVOE', 'sanHba' => '0', 'enableTesting' => '1', ), array( 'location' => '8F', 'model' => 'ProLiantBL460cG6', 'os' => 'TPD', 'sanHba' => '1', 'enableTesting' => '0', ), ), ), ), 'rmservers' => array( array( 'iloip' => '10.240.4.12', 'name' => 'RMS50004U03', 'cabinet' => '504', 'user' => 'root', 'password' => 'TklcRoot', 'os' => 'TVOE', 'enableTesting' => '1', ), array( 'iloip' => '10.240.4.84', 'name' => 'amarilloHost', 'cabinet' => '507', 'user' => 'root', 'password' => 'TklcRoot', 'os' => 'TVOE', 'enableTesting' => '0', ), ), 'sanControllers' => array( array( 'controllerA' => '10.240.17.53', 'controllerB' => '10.240.17.53', 'type' => 'msa2012', 'user' => 'manage', 'password' => '!manage', 'disk0' => '0.0', 'disk1' => '0.1', 'disk2' => '0.2', 'disk3' => '0.3', 'disk4' => '0.4', 'disk5' => '0.5', 'disk6' => '0.6', 'disk7' => '0.7', 'disk8' => '0.8', 'disk9' => '0.9', 'disk10' => '0.10', 'disk11' => '0.11', 'enableTesting' => '1', ), array( 'controllerA' => '10.240.17.57', 'controllerB' => '10.240.17.58', 'type' => 'p2000', 'user' => 'manage', 'password' => '!manage', 'disk0' => '1.1', 'disk1' => '1.2', 'disk2' => '1.3', 'disk3' => '1.4', 'disk4' => '1.5', 'disk5' => '1.6', 'disk6' => '1.7', 'disk7' => '1.8', 'disk8' => '1.9', 'disk9' => '1.10', 'disk10' => '1.11', 'disk11' => '1.12', 'enableTesting' => '1', ), array( 'controllerA' => '10.240.17.57', 'controllerB' => '10.240.17.58', 'type' => 'jbod', 'user' => 'manage', 'password' => '!manage', 'disk0' => '2.1', 'disk1' => '1.2', 'disk2' => '2.3', 'disk3' => '1.4', 'disk4' => '2.5', 'disk5' => '1.6', 'disk6' => '2.7', 'disk7' => '1.8', 'disk8' => '2.9', 'disk9' => '1.11', 'disk10' => '2.11', 'disk11' => '1.12', 'enableTesting' => '1', ), ), ); var_dump($pmac_details); ?>
Output for 5.4.0 - 5.4.26
Parse error: syntax error, unexpected 'location' (T_STRING), expecting ')' in /in/Fov9Y on line 89
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING, expecting ')' in /in/Fov9Y on line 89
Process exited with code 255.

preferences:
174.17 ms | 1394 KiB | 63 Q