3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo count([ 'origin_id' => [ 'type' => 'string', 'options' => [ 'length' => 32, 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => false], 'merge' => ['display' => true], ] ] ], 'phone' => [ 'type' => 'string', 'options' => [ 'length' => 255, 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], 'fax' => [ 'type' => 'string', 'options' => [ 'length' => 255, 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], 'sic' => [ 'type' => 'string', 'options' => [ 'length' => 255, 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], 'annual_revenue' => [ 'type' => 'money', 'options' => [ 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], // Number_of_Screens__c 'number_of_screens' => [ 'type' => 'integer', 'options' => [ 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], // Contract_Expiry_Month__c 'contract_expiry_month' => [ 'type' => 'integer', 'options' => [ 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], // Contract_Expiry_Year__c 'contract_expiry_year' => [ 'type' => 'integer', 'options' => [ 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], // Company_Rank__c 'company_rank' => [ 'type' => 'integer', 'options' => [ 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], // Trading_As__c 'trading_as' => [ 'type' => 'string', 'options' => [ 'length' => 255, 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], // Number_of_Invoices__c 'number_of_invoices' => [ 'type' => 'integer', 'options' => [ 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], // Total_Opportunity__c 'total_opportunity' => [ 'type' => 'integer', 'options' => [ 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], // Closed_Won_Opportunity_Indicator__c 'closed_won_opportunity_ind' => [ 'type' => 'integer', 'options' => [ 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], // ABN_ACN__c 'abn_acn' => [ 'type' => 'string', 'options' => [ 'length' => 255, 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], // Total_Fleet_Number_of_Vehicles__c 'total_fleet_vehicles' => [ 'type' => 'integer', 'options' => [ 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], // Other_Site_Address__c 'other_site_address' => [ 'type' => 'string', 'options' => [ 'length' => 255, 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], // Dealer_Account__c 'dealer_account' => [ 'type' => 'string', 'options' => [ 'length' => 255, 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], // MPS_TCP_Fit__c 'msp_tcp_fit' => [ 'type' => 'boolean', 'options' => [ 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], // IT_Solutions_TCP_Fit__c 'it_solutions_tcp_fit' => [ 'type' => 'boolean', 'options' => [ 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], // Fleet_TCP_Fit__c 'fleet_tcp_fit' => [ 'type' => 'boolean', 'options' => [ 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], // Telesales_TCP_Fit__c 'telesales_tcp_fit' => [ 'type' => 'boolean', 'options' => [ 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], // Current_Supplier__c 'current_supplier' => [ 'type' => 'string', 'options' => [ 'length' => 255, 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], // No_of_Sites__c 'no_of_sites' => [ 'type' => 'integer', 'options' => [ 'length' => 255, 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], // No_of_Vehicles__c 'no_of_vehicles' => [ 'type' => 'integer', 'options' => [ 'length' => 255, 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], // Existing_IT_Projects__c 'existing_it_projects' => [ 'type' => 'string', 'options' => [ 'length' => 255, 'oro_options' => [ 'extend' => ['owner' => ExtendScope::OWNER_CUSTOM], 'datagrid' => ['is_visible' => true], 'merge' => ['display' => true], ] ] ], ];);
Output for 5.4.0 - 5.4.32
Parse error: syntax error, unexpected ';' in /in/Z1LDK on line 286
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/Z1LDK on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[', expecting ')' in /in/Z1LDK on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/Z1LDK on line 3
Process exited with code 255.

preferences:
201.23 ms | 1395 KiB | 123 Q