3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FooInterface { public function bar(); } $class = (class implements FooInterface { public function bar() { return new Bar(); } }); var_dump((new $class)->bar());

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)
5.6.130.0070.08318.18
5.6.120.0130.08321.11
5.6.110.0170.07321.11
5.6.100.0170.06720.97
5.6.90.0070.05721.13
5.6.80.0030.08320.41
5.5.290.0130.06718.07
5.5.280.0030.04320.80
5.5.270.0100.08020.72
5.5.260.0130.07720.88
5.5.250.0130.03020.68
5.5.240.0170.06720.27
5.4.450.0630.05019.71
5.4.440.0800.06319.53
5.4.430.0730.05319.69
5.4.420.0700.05319.38
5.4.410.0670.06019.47
5.4.400.0800.04319.13
5.4.390.0600.05019.28
5.4.380.0700.05319.26
5.4.370.0770.05019.15
5.4.360.0700.05718.87
5.4.350.0800.06019.01
5.4.340.0770.05019.38
5.4.320.0700.05719.01
5.4.310.0600.05019.28
5.4.300.0730.05319.23
5.4.290.0870.04318.88
5.4.280.0770.07719.03
5.4.270.0730.05719.12
5.4.260.0770.04719.14
5.4.250.0730.04719.28
5.4.240.0500.06319.29
5.4.230.0730.05318.84
5.4.220.0730.05719.05
5.4.210.0570.05318.91
5.4.200.0500.05716.92
5.4.190.0770.05019.11
5.4.180.0670.05318.98
5.4.170.0730.05019.06
5.4.160.0700.05018.90
5.4.150.0630.05719.05
5.4.140.0670.05716.36
5.4.130.0730.04316.46
5.4.120.0730.05016.35
5.4.110.0730.06316.35
5.4.100.0700.05016.54
5.4.90.0800.06016.60
5.4.80.0770.05016.34
5.4.70.0630.05316.57
5.4.60.0630.04716.45
5.4.50.0530.05316.34
5.4.40.0800.05016.36
5.4.30.0830.06016.35
5.4.20.0770.04316.27
5.4.10.0800.04016.39
5.4.00.0570.05015.93

preferences:
128.08 ms | 1398 KiB | 7 Q