3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} $type = 'Foo'; $args = array(); $reflection = new \ReflectionClass($type); var_dump($reflection->newInstanceArgs($args)); var_dump($reflection->newInstanceArgs(array()))); var_dump($reflection->newInstanceArgs(array(2)));

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.08320.18
5.6.160.0170.07720.62
5.6.150.0000.04318.25
5.6.140.0030.04318.29
5.6.130.0070.08718.18
5.6.120.0000.04321.00
5.6.110.0130.07720.98
5.6.100.0070.06020.93
5.6.90.0130.07321.00
5.6.80.0130.07020.39
5.5.300.0070.07718.02
5.5.290.0070.07017.95
5.5.280.0100.03320.68
5.5.270.0030.07720.88
5.5.260.0000.08020.97
5.5.250.0100.07720.68
5.5.240.0170.04720.18

preferences:
125.79 ms | 1398 KiB | 7 Q