3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Thread { function tick() { echo 'multithreaded'; } } $thread1 = new Thread; $thread2 = new Thread; while (1) { $thread1->tick(); $thread2->tick(); break; }
Output for 4.3.0 - 7.2.0
multithreadedmultithreaded