3v4l.org

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

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