3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = 'barValue'; protected $baz = 'bazValue'; private $tab = 'tabValue'; } var_dump((Foo)[]);

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.20.0370.07020.09
7.0.10.0100.07020.01
7.0.00.0070.05320.32
5.6.170.0370.07720.47
5.6.160.0100.06320.49
5.6.150.0300.06318.27
5.6.140.0100.07718.23
5.6.130.0000.08718.15
5.6.120.0100.06721.02
5.6.110.0170.06321.00
5.6.100.0100.03321.11
5.6.90.0100.03721.00
5.6.80.0100.03020.53
5.5.310.0370.06020.32
5.5.300.0070.05717.94
5.5.290.0030.07317.95
5.5.280.0030.04020.73
5.5.270.0170.07720.86
5.5.260.0130.07320.86
5.5.250.0070.08320.69
5.5.240.0270.07720.12

preferences:
136.06 ms | 1398 KiB | 7 Q