3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x{ public $for; } (new x)->for = 'hi';

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.0.00.0070.07020.33
5.6.160.0000.04320.52
5.6.150.0070.05018.15
5.6.140.0030.08318.27
5.6.130.0000.07718.27
5.6.120.0100.08021.14
5.6.110.0030.04021.01
5.6.100.0200.06021.13
5.6.90.0070.07321.10
5.6.80.0030.08320.38
5.5.300.0100.06317.99
5.5.290.0000.05017.98
5.5.280.0030.04020.93
5.5.270.0030.09020.96
5.5.260.0130.06720.96
5.5.250.0100.07320.57
5.5.240.0200.07320.19

preferences:
143.32 ms | 935 KiB | 8 Q