3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "<?php\n class test{\n }\n \n someclasss::method('Class not found');\n "; var_dump( json_encode(token_get_all( $str ) ));
Output for git.master, git.master_jit
string(223) "[[394,"<?php\n",1],[397,"\n",2],[369,"class",3],[397," ",3],[313,"test",3],"{",[397,"\n\n",3],"}",[397,"\n\n\n\n",5],[313,"someclasss",9],[402,"::",9],[313,"method",9],"(",[320,"'Class not found'",9],")",";",[397,"\n\n",9]]"
Output for rfc.property-hooks
string(223) "[[396,"<?php\n",1],[399,"\n",2],[370,"class",3],[399," ",3],[313,"test",3],"{",[399,"\n\n",3],"}",[399,"\n\n\n\n",5],[313,"someclasss",9],[404,"::",9],[313,"method",9],"(",[320,"'Class not found'",9],")",";",[399,"\n\n",9]]"

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:
41.46 ms | 401 KiB | 8 Q