3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $security = array( 'sec' => array( 'id' => sha1( $this->shopId . ':' . $this->shopKey . ':' . date( 'YmdHis' ) ), 'shopid' => '', 'timestamp' => '', ), ); $submitInfo = array( 'client' => array( 'type' => '', 'asset' => array( array( 'description' => '', ), ), 'contracttype' => '', 'assetcost' => '', 'advancepayment' => '', 'paymentperiod' => '', 'paymentday' => '', 'identitycode' => '', 'firstname' => '', 'lastname' => '', 'docno' => '', 'citizenship' => '', 'residenceperiodenddate' => '', 'address' => '', 'city' => '', 'postalcode' => '', 'housingtype' => '', 'phone1' => '', 'phone2' => '', 'email' => '', 'employer' => '', 'employmentrelationship' => '', 'terminationdate' => '', 'jobperiod' => '', 'jobposition' => '', 'income' => '', 'existingobligation' => array( array( 'lender' => '', 'monthlypayment' => '', 'enddate' => '', ) ), 'warrantor' => array( array( 'identitycode' => '', 'firstname' => '', 'lastname' => '', 'docno' => '', 'citizenship' => '', 'residenceperiodenddate' => '', 'address' => '', 'city' => '', 'postalcode' => '', 'housingtype' => '', 'phone1' => '', 'phone2' => '', 'email' => '', 'employer' => '', 'employmentrelationship' => '', 'jobperiod' => '', 'jobposition' => '', 'income' => '', 'existingobligation' => array( array( 'lender' => '', 'monthlypayment' => '', 'enddate' => '', ) ), ), ), 'reply' => array( 'url' => '', 'username' => '', 'password' => '', ), 'requestid' => '', ), ); print_r( ( $security + $submitInfo ) );
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Using $this when not in object context in /in/s7PGb:4 Stack trace: #0 {main} thrown in /in/s7PGb on line 4
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: $this is null in /in/s7PGb on line 4
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Fatal error: Using $this when not in object context in /in/s7PGb on line 4
Process exited with code 255.
Output for 4.3.0 - 4.4.9
Notice: Undefined variable: this in /in/s7PGb on line 4 Notice: Undefined variable: this in /in/s7PGb on line 4 Array ( [sec] => Array ( [id] => 06a7b3614962858ad68510656afb11fe20bf5cd2 [shopid] => [timestamp] => ) [client] => Array ( [type] => [asset] => Array ( [0] => Array ( [description] => ) ) [contracttype] => [assetcost] => [advancepayment] => [paymentperiod] => [paymentday] => [identitycode] => [firstname] => [lastname] => [docno] => [citizenship] => [residenceperiodenddate] => [address] => [city] => [postalcode] => [housingtype] => [phone1] => [phone2] => [email] => [employer] => [employmentrelationship] => [terminationdate] => [jobperiod] => [jobposition] => [income] => [existingobligation] => Array ( [0] => Array ( [lender] => [monthlypayment] => [enddate] => ) ) [warrantor] => Array ( [0] => Array ( [identitycode] => [firstname] => [lastname] => [docno] => [citizenship] => [residenceperiodenddate] => [address] => [city] => [postalcode] => [housingtype] => [phone1] => [phone2] => [email] => [employer] => [employmentrelationship] => [jobperiod] => [jobposition] => [income] => [existingobligation] => Array ( [0] => Array ( [lender] => [monthlypayment] => [enddate] => ) ) ) ) [reply] => Array ( [url] => [username] => [password] => ) [requestid] => ) )