3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Something { interface Hello { public function hello(\SomethingDifferent\World $world) { $world->display(); } } } namespace SomethingDifferent { interface World { public function display() { echo "Hello World!"; } } } namespace Hell { use Something\Hello; use SomethingDifferent\World; class HelloWorld implements Hello { public function hello(World $world) { } } } $hell = new Hell\HelloWorld();

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.340.0430.03719.21
5.4.320.0330.04018.95
5.4.310.0430.03319.18
5.4.300.0370.04019.24
5.4.290.0400.06319.21
5.4.280.0570.05718.91
5.4.270.0500.06019.22
5.4.260.0430.07319.22
5.4.250.0430.06019.04
5.4.240.0370.03719.30
5.4.230.0370.05319.21
5.4.220.0430.06718.99
5.4.210.0430.07019.11
5.4.200.0500.06019.21
5.4.190.0470.06718.86
5.4.180.0430.03719.13
5.4.170.0470.06018.97
5.4.160.0600.05018.82
5.4.150.0370.04719.12
5.4.140.0430.04016.67
5.4.130.0370.03716.41
5.4.120.0330.03316.39
5.4.110.0400.03016.56
5.4.100.0430.04016.45
5.4.90.0300.03716.27
5.4.80.0470.06016.55
5.4.70.0400.03716.39
5.4.60.0330.03716.38
5.4.50.0300.03716.16
5.4.40.0400.03316.51
5.4.30.0430.06016.52
5.4.20.0400.05016.54
5.4.10.0370.06316.51
5.4.00.0400.03015.76
5.3.290.0430.07014.75
5.3.280.0430.07014.71
5.3.270.0500.06314.52
5.3.260.0370.05014.61
5.3.250.0600.06014.52
5.3.240.0600.04714.62
5.3.230.0530.06314.71
5.3.220.0530.05014.54
5.3.210.0370.05314.47
5.3.200.0500.06014.55
5.3.190.0570.05714.63
5.3.180.0470.04314.63
5.3.170.0300.05314.55
5.3.160.0400.04314.48
5.3.150.0330.05014.46
5.3.140.0330.04014.63
5.3.130.0400.03014.63
5.3.120.0270.05014.55
5.3.110.0230.04314.69
5.3.100.0300.03713.94
5.3.90.0270.03714.03
5.3.80.0330.03014.09
5.3.70.0270.04314.08
5.3.60.0270.04013.90
5.3.50.0330.03314.02
5.3.40.0330.03313.86
5.3.30.0300.03314.00
5.3.20.0300.03713.63
5.3.10.0300.03713.57
5.3.00.0300.03713.69
5.2.170.0300.02712.16
5.2.160.0230.03012.16
5.2.150.0330.03312.16
5.2.140.0330.02012.16
5.2.130.0270.02712.16
5.2.120.0200.03312.16
5.2.110.0270.02712.16
5.2.100.0230.03012.16
5.2.90.0230.04012.16
5.2.80.0270.02712.16
5.2.70.0270.03012.16
5.2.60.0300.02312.16
5.2.50.0300.02312.16
5.2.40.0200.02712.16
5.2.30.0230.02712.16
5.2.20.0200.03712.16
5.2.10.0230.02312.16
5.2.00.0200.02712.16
5.1.60.0200.02312.16
5.1.50.0330.01712.16
5.1.40.0200.03012.16
5.1.30.0200.02312.16
5.1.20.0170.02712.16
5.1.10.0170.02712.16
5.1.00.0200.02312.16
5.0.50.0100.02012.16
5.0.40.0130.01712.16
5.0.30.0100.03312.16
5.0.20.0130.01712.16
5.0.10.0070.02312.16
5.0.00.0070.03312.16
4.4.90.0100.01712.16
4.4.80.0100.01712.16
4.4.70.0070.02012.16
4.4.60.0070.01712.16
4.4.50.0100.01712.16
4.4.40.0070.02712.16
4.4.30.0100.01312.16
4.4.20.0130.01312.16
4.4.10.0100.01312.16
4.4.00.0130.02012.16
4.3.110.0100.01312.16
4.3.100.0130.01012.16
4.3.90.0170.01012.16
4.3.80.0130.02312.16
4.3.70.0100.01312.16
4.3.60.0100.01712.16
4.3.50.0100.01312.16
4.3.40.0100.02312.16
4.3.30.0070.01312.16
4.3.20.0070.01312.16
4.3.10.0030.01712.16
4.3.00.0030.01712.16

preferences:
142.21 ms | 1386 KiB | 7 Q