3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface IFace{ function doSomething(); } class Foo implements IFace { function doSomething() { return 'OK'; } } class Bar { $face = null; function __construct(IFace $f) { $this->face = $f; } } $bar = new Bar(new 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)
5.4.190.0140.04512.40
5.4.180.0140.04412.40
5.4.170.0150.04312.40
5.4.160.0150.04412.40
5.4.150.0140.04712.39
5.4.140.0170.04112.09
5.4.130.0120.04812.07
5.4.120.0420.07612.03
5.4.110.0160.04012.03
5.4.100.0120.04712.02
5.4.90.0150.04512.03
5.4.80.0170.04112.03
5.4.70.0160.03912.02
5.4.60.0200.03612.02
5.4.50.0160.04012.02
5.4.40.0150.04112.01
5.4.30.0130.04512.01
5.4.20.0140.04412.00
5.4.10.0150.04212.01
5.4.00.0160.04011.50
5.3.270.0240.09612.73
5.3.260.0160.04412.72
5.3.250.0200.03912.72
5.3.240.0120.04712.72
5.3.230.0150.04712.71
5.3.220.0160.04312.68
5.3.210.0170.04412.68
5.3.200.0110.04912.68
5.3.190.0280.06512.67
5.3.180.0150.04412.67
5.3.170.0120.04712.67
5.3.160.0130.04712.67
5.3.150.0360.08512.68
5.3.140.0140.04612.66
5.3.130.0170.04212.66
5.3.120.0150.04712.66
5.3.110.0260.06712.66
5.3.100.0130.04712.12
5.3.90.0170.04112.10
5.3.80.0160.04612.09
5.3.70.0140.04912.09
5.3.60.0190.04212.07
5.3.50.0150.04512.03
5.3.40.0180.04512.02
5.3.30.0140.04712.00
5.3.20.0150.04511.77
5.3.10.0360.08211.73
5.3.00.0220.03911.71

preferences:
133.12 ms | 1394 KiB | 7 Q