3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Test { function sqrt($arg=null) { return 'test'; } } namespace Second { function sqrt($arg=null) { return 'second'; } } namespace { use function Test\sqrt; use function Second\sqrt; echo sqrt(); }

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.70.0040.01116.95
7.1.60.0270.01734.96
7.1.50.0170.01734.70
7.1.40.0180.01134.31
7.1.30.0220.00734.39
7.1.20.0220.00634.43
7.1.10.0030.01016.29
7.1.00.0060.00916.14
7.0.200.0070.01016.73
7.0.190.0040.00816.20
7.0.180.0090.00616.11
7.0.170.0030.01016.00
7.0.160.0030.01115.86
7.0.150.0030.01016.11
7.0.140.0000.01416.08
7.0.130.0040.01416.51
7.0.120.0090.00316.07
7.0.110.0120.00316.13
7.0.100.0090.00616.00
7.0.90.0070.00716.07
7.0.80.0070.00716.22
7.0.70.0040.01116.07
7.0.60.0040.01115.81
7.0.50.0080.00616.42
7.0.40.0030.01016.54
7.0.30.0120.00316.28
7.0.20.0100.00316.42
7.0.10.0060.00616.14
7.0.00.0000.01316.34

preferences:
140.04 ms | 1394 KiB | 7 Q