fork download
  1. <?php
  2.  
  3. // your code goes here
  4. $num = 2;
  5. ${'myclass' . $num} = 5;
  6.  
  7. var_dump($myclass2);
Success #stdin #stdout 0.01s 82880KB
stdin
Standard input is empty
stdout
int(5)