3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo{ private function callme(){ echo "works"; } function asPrivate(){ return private $this; } } $foo = new Foo(); $foo->asPrivate()->callme(); // this should work

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.1.90.0090.00317.66
7.1.80.0030.00917.78
7.1.70.0060.00616.90
7.1.60.0100.02035.15
7.1.50.0200.01334.62
7.1.40.0160.01934.32
7.1.30.0160.01334.47
7.1.20.0130.02034.37
7.1.10.0030.01316.38
7.1.00.0030.01016.41
7.0.230.0030.00917.58
7.0.220.0030.01017.54
7.0.210.0120.00016.54
7.0.200.0030.01216.68
7.0.190.0040.01216.58
7.0.180.0060.00916.13
7.0.170.0000.01216.13
7.0.160.0000.01616.13
7.0.150.0060.01015.93
7.0.140.0040.01116.15
7.0.130.0100.00916.24
7.0.120.0070.00816.45
7.0.110.0060.00616.04
7.0.100.0000.01615.99
7.0.90.0060.00616.18
7.0.80.0030.00916.10
7.0.70.0030.01016.23
7.0.60.0030.00916.07
7.0.50.0000.01316.14
7.0.40.0000.01216.37
7.0.30.0030.00916.26
7.0.20.0100.00316.30
7.0.10.0060.00816.16
7.0.00.0040.00916.14

preferences:
142.39 ms | 997 KiB | 7 Q