<?php
class PMoon{
public function __construct(){
$this->ast = array('labelStatement' => create_function('$label', 'return array("type" => "LabelStatement", "label" => $label);'
));
}
}
$moon = new PMoon;
$labelFunc = $moon->ast['labelStatement']('Foo bar');
PD9waHAKCmNsYXNzIFBNb29uewoJcHVibGljICRhc3QgPSBhcnJheSgpOwoJCglwdWJsaWMgZnVuY3Rpb24gX19jb25zdHJ1Y3QoKXsKCQkkdGhpcy0+YXN0ID0gYXJyYXkoJ2xhYmVsU3RhdGVtZW50JyA9PiBjcmVhdGVfZnVuY3Rpb24oJyRsYWJlbCcsICdyZXR1cm4gYXJyYXkoInR5cGUiID0+ICJMYWJlbFN0YXRlbWVudCIsIAoJCSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImxhYmVsIiA9PiAkbGFiZWwpOycKCQkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApKTsgCgl9Cn0KCiRtb29uID0gbmV3IFBNb29uOwokbGFiZWxGdW5jID0gJG1vb24tPmFzdFsnbGFiZWxTdGF0ZW1lbnQnXSgnRm9vIGJhcicpOwoKdmFyX2R1bXAoJGxhYmVsRnVuYyk7