3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array( 'id' => '4', 'realid' => '4', 'address_rev' => NULL, 'relation_data_id' => '3', 'contact_set_rev' => '3', 'business_data_rev' => '4', 'private_data_rev' => NULL, // etc.. ); $s = "aaaa = $a['id']"; eval("\$s = \"$s\";"); echo $s; ?>
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /in/kGOvp on line 15
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /in/kGOvp on line 15
Process exited with code 255.