3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(json_encode([ 'response' => [ 'statuscode' => 200, 'iserror' => false, 'errormessage' => '', 'debug' => '', 'errors' => [], 'warnings' => [], 'stacktrace' => '', 'friendlyerror' => '', 'friendlyerrortype' => '', 'processingtime' => '12.293', 'usdrescreated' => true, 'reservationscreated' => 1, 'reservations' => [ [ 'header' => [ 'resnumber' => 10684, 'productcode' => 'MX-CUNHTL', 'brandid' => 'EGT', 'departuredate' => '2015-03-24', 'returndate' => '2015-03-24', 'bookdate' => '2015-03-23 14:08:50.000', 'bookedby' => 'apitest', 'resstatus' => 'Q', 'depositdate' => '2015-03-23', 'depositamount' => 1318.93, 'finaldate' => '2015-03-23', 'quotecurrency' => 'USD', 'price' => 1318.93, 'pricetax' => 0, 'pricegst' => 0, 'commission' => 0, 'received' => 0, 'leadname' => 'LASTNAMEB, FIRSTNAMEB', 'contactid' => 15152, 'customerid' => '', 'customername' => '', ], 'contact' => [ 'contactid' => 15152, 'lastname' => '', 'firstname' => '', 'gender' => '', 'paxtype' => 'A', 'email' => '', 'phone' => '', 'mobilephone' => '', 'fax' => '', 'address' => [ 'address1' => '', 'address2' => '', 'city' => '', 'state' => '', 'zip' => '', 'country' => '', ], ], 'passengers' => [ [ 'passengerseq' => 1, 'contactid' => 15153, 'lastname' => 'LASTNAMEB', 'firstname' => 'FIRSTNAMEB', 'gender' => 'M', 'birthdate' => '1980-03-03', 'paxtype' => 'A', 'email' => '', 'phone' => '', 'mobilephone' => '', 'fax' => '', 'hotelrequest' => '', 'airrequest' => '', 'generalrequest' => '', 'address' => [ 'address1' => '', 'address2' => '', 'city' => '', 'state' => '', 'zip' => '', 'country' => '', ], ], ], 'services' => [ [ 'serviceseq' => 1, 'confinfo' => '', 'productcode' => 'MX-CUNHTL', 'seq' => 2700, 'iseq' => 30, 'itemrole' => 'R', 'requestedmask' => 'A', 'servicetype' => 'HTL', 'servicetypename' => 'Hotel', 'servicedate' => '2015-03-24', 'servicetime' => '18:00', 'serviceduration' => 3, 'supplierid' => 'MX-CUNGBC', 'serviceid' => 'JSS', 'description' => 'Junior Suite Superior - All Inclusive', 'suppliername' => 'Grand Bahia Principe Coba', 'vouchernotes' => '', 'itinerarydescription' => '', 'destination' => 'CUN', 'todestination' => '', 'confstatus' => 'BK', 'extsvcref' => '551054dad600f', 'supplierimage' => '', 'supplierthumbnail' => '', 'supplierdetail' => '', 'verboseduration' => '3 Nights', 'totalprice' => 770, 'totalpricetax' => 0, 'totalpricegst' => 0, 'totalcommission' => 0, 'totalqty' => 1, 'priceitems' => [ [ 'qty' => 1, 'unit' => 'Single Occupancy', 'mask' => 'A', 'requestedmask' => 'A', 'price' => 770, 'pricetax' => 0, 'pricegst' => 0, 'commission' => 0, 'commissionpercentage' => 0, 'verboseqty' => '1 Single Occupancy', ], ], ], [ 'serviceseq' => 7, 'confinfo' => '', 'productcode' => 'SHIPPING', 'seq' => 100, 'iseq' => 0, 'itemrole' => 'OC', 'requestedmask' => 'A', 'servicetype' => 'SHP', 'servicetypename' => 'Shipping', 'servicedate' => '2015-03-24', 'servicetime' => '08:00', 'serviceduration' => 1, 'supplierid' => 'US-NYCEGT', 'serviceid' => 'SHPDEC', 'description' => 'Electronic Documents', 'suppliername' => 'Exclusive Group Travel', 'vouchernotes' => '', 'itinerarydescription' => '', 'destination' => 'US', 'todestination' => '', 'confstatus' => '', 'extsvcref' => '', 'supplierimage' => '', 'supplierthumbnail' => '', 'supplierdetail' => '', 'verboseduration' => '', 'totalprice' => 0, 'totalpricetax' => 0, 'totalpricegst' => 0, 'totalcommission' => 0, 'totalqty' => 1, 'priceitems' => [ [ 'qty' => 1, 'unit' => 'Electronic Delivery', 'mask' => 'M1-999', 'requestedmask' => 'A', 'price' => 0, 'pricetax' => 0, 'pricegst' => 0, 'commission' => 0, 'commissionpercentage' => 0, 'verboseqty' => '1 Electronic Delivery', ], ], ], ], 'paymentlist' => [ 'payments' => [], ], 'promotionsapplied' => [], 'references' => [], ], ], ] ]));
Output for git.master, git.master_jit, rfc.property-hooks
string(3043) "{"response":{"statuscode":200,"iserror":false,"errormessage":"","debug":"","errors":[],"warnings":[],"stacktrace":"","friendlyerror":"","friendlyerrortype":"","processingtime":"12.293","usdrescreated":true,"reservationscreated":1,"reservations":[{"header":{"resnumber":10684,"productcode":"MX-CUNHTL","brandid":"EGT","departuredate":"2015-03-24","returndate":"2015-03-24","bookdate":"2015-03-23 14:08:50.000","bookedby":"apitest","resstatus":"Q","depositdate":"2015-03-23","depositamount":1318.93,"finaldate":"2015-03-23","quotecurrency":"USD","price":1318.93,"pricetax":0,"pricegst":0,"commission":0,"received":0,"leadname":"LASTNAMEB, FIRSTNAMEB","contactid":15152,"customerid":"","customername":""},"contact":{"contactid":15152,"lastname":"","firstname":"","gender":"","paxtype":"A","email":"","phone":"","mobilephone":"","fax":"","address":{"address1":"","address2":"","city":"","state":"","zip":"","country":""}},"passengers":[{"passengerseq":1,"contactid":15153,"lastname":"LASTNAMEB","firstname":"FIRSTNAMEB","gender":"M","birthdate":"1980-03-03","paxtype":"A","email":"","phone":"","mobilephone":"","fax":"","hotelrequest":"","airrequest":"","generalrequest":"","address":{"address1":"","address2":"","city":"","state":"","zip":"","country":""}}],"services":[{"serviceseq":1,"confinfo":"","productcode":"MX-CUNHTL","seq":2700,"iseq":30,"itemrole":"R","requestedmask":"A","servicetype":"HTL","servicetypename":"Hotel","servicedate":"2015-03-24","servicetime":"18:00","serviceduration":3,"supplierid":"MX-CUNGBC","serviceid":"JSS","description":"Junior Suite Superior - All Inclusive","suppliername":"Grand Bahia Principe Coba","vouchernotes":"","itinerarydescription":"","destination":"CUN","todestination":"","confstatus":"BK","extsvcref":"551054dad600f","supplierimage":"","supplierthumbnail":"","supplierdetail":"","verboseduration":"3 Nights","totalprice":770,"totalpricetax":0,"totalpricegst":0,"totalcommission":0,"totalqty":1,"priceitems":[{"qty":1,"unit":"Single Occupancy","mask":"A","requestedmask":"A","price":770,"pricetax":0,"pricegst":0,"commission":0,"commissionpercentage":0,"verboseqty":"1 Single Occupancy"}]},{"serviceseq":7,"confinfo":"","productcode":"SHIPPING","seq":100,"iseq":0,"itemrole":"OC","requestedmask":"A","servicetype":"SHP","servicetypename":"Shipping","servicedate":"2015-03-24","servicetime":"08:00","serviceduration":1,"supplierid":"US-NYCEGT","serviceid":"SHPDEC","description":"Electronic Documents","suppliername":"Exclusive Group Travel","vouchernotes":"","itinerarydescription":"","destination":"US","todestination":"","confstatus":"","extsvcref":"","supplierimage":"","supplierthumbnail":"","supplierdetail":"","verboseduration":"","totalprice":0,"totalpricetax":0,"totalpricegst":0,"totalcommission":0,"totalqty":1,"priceitems":[{"qty":1,"unit":"Electronic Delivery","mask":"M1-999","requestedmask":"A","price":0,"pricetax":0,"pricegst":0,"commission":0,"commissionpercentage":0,"verboseqty":"1 Electronic Delivery"}]}],"paymentlist":{"payments":[]},"promotionsapplied":[],"references":[]}]}}"

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
71.73 ms | 409 KiB | 8 Q