<?php // your code goes here$num = 2;${'myclass' . $num} = 5; var_dump($myclass2);
Standard input is empty
int(5)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!