3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variable= "'Body;Style'=>'SEDAN;4 DOOR';'CD Player'=>'PRESENT';'Color'=>'GRAY';'Engine Size'=>'3.0L V6 FI F';'Air Bags'=>'4';'Radio'=>'PRESENT';'Tape Deck'=>'N/A';'Estimated Repair Cost'=>'5518';'ACV'=>'6122';'Driver Airbag'=>'INTACT';'Passenger Airbag'=>'INTACT';'Left Side Airbag'=>'INTACT';'Right Side Airbag'=>'INTACT';'VIN Status'=>'OK';'Interior Color'=>'GRAY';'Airbag'=>'INTACT';'KeyFob'=>'PRESENT';"; if (preg_match_all("/'(.*?)'=>'(.*?)';/", $variable, $matches)) { $result = array_combine($matches[1], $matches[2]); print_r($result); }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [Body;Style] => SEDAN;4 DOOR [CD Player] => PRESENT [Color] => GRAY [Engine Size] => 3.0L V6 FI F [Air Bags] => 4 [Radio] => PRESENT [Tape Deck] => N/A [Estimated Repair Cost] => 5518 [ACV] => 6122 [Driver Airbag] => INTACT [Passenger Airbag] => INTACT [Left Side Airbag] => INTACT [Right Side Airbag] => INTACT [VIN Status] => OK [Interior Color] => GRAY [Airbag] => INTACT [KeyFob] => PRESENT )

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:
18.36 ms | 402 KiB | 8 Q