News for hackers. Stuff that matters.
Re:PHP 8 to Add a JIT by bufferoverflow on Monday April 01, 2019 @07:22PM (#19549395)
You can do this in PHP:

    <?php
    eval('class Hello {public static function you(){echo "Yes!";}}');
    Hello::you();
or this:

    <?php
    file_put_contents('c.php', '<?php class Hello {public static function you(){echo "Yes!";}}');
    require('c.php');
    Hello::you();
Thus generating a class at runtime-ish.

There are no comments on this comment yet.