3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { public function foo($bar); } interface J {} trait T implements I { function foo(){}; } trait U implements J { } class C { use T; use U; } $c = new C(); if ($c instanceof I) { echo "I"; } if ($c instanceof J) { echo "J"; }

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.320.0170.06019.04
5.4.310.0270.06319.25
5.4.300.0230.05019.15
5.4.290.0170.08318.87
5.4.280.0100.04718.88
5.4.270.0130.04019.18
5.4.260.0130.04718.99
5.4.250.0270.07019.09
5.4.240.0170.05319.23
5.4.230.0300.04719.08
5.4.220.0130.04019.21
5.4.210.0200.07019.23
5.4.200.0200.07318.98
5.4.190.0100.05019.08
5.4.180.0170.05718.98
5.4.170.0270.06719.13
5.4.160.0230.06319.20
5.4.150.0200.06319.20
5.4.140.0270.06016.38
5.4.130.0170.04316.46
5.4.120.0230.06016.44
5.4.110.0230.04716.32
5.4.100.0270.06316.40
5.4.90.0270.05716.29
5.4.80.0300.05716.57
5.4.70.0270.06316.59
5.4.60.0170.04716.56
5.4.50.0270.06716.50
5.4.40.0270.06316.32
5.4.30.0270.06316.43
5.4.20.0300.04316.55
5.4.10.0230.03316.32
5.4.00.0170.07315.77
5.3.290.0200.07014.71
5.3.280.0200.04714.50
5.3.270.0170.03714.83
5.3.260.0130.07714.69
5.3.250.0200.04014.49
5.3.240.0230.05714.52
5.3.230.0230.04714.82
5.3.220.0230.06714.56
5.3.210.0230.05014.57
5.3.200.0200.04714.56
5.3.190.0270.04714.61
5.3.180.0230.07314.79
5.3.170.0330.05714.58
5.3.160.0230.03314.78
5.3.150.0230.03014.48
5.3.140.0270.05714.77
5.3.130.0170.04714.54
5.3.120.0230.07314.55
5.3.110.0130.05714.57
5.3.100.0130.07714.03
5.3.90.0100.07713.94
5.3.80.0130.06314.07
5.3.70.0170.05314.02
5.3.60.0170.04014.08
5.3.50.0200.04013.95
5.3.40.0300.04014.10
5.3.30.0270.04313.91
5.3.20.0270.04013.73
5.3.10.0170.05713.82
5.3.00.0270.05713.75
5.2.170.0100.06312.02
5.2.160.0170.04312.02
5.2.150.0130.06012.02
5.2.140.0200.06012.02
5.2.130.0230.05312.02
5.2.120.0200.06012.02
5.2.110.0270.05012.02
5.2.100.0130.04712.02
5.2.90.0170.06312.02
5.2.80.0230.02712.02
5.2.70.0130.05012.02
5.2.60.0230.06012.02
5.2.50.0170.06312.02
5.2.40.0100.03012.02
5.2.30.0200.03312.02
5.2.20.0130.02712.02
5.2.10.0170.03312.02
5.2.00.0170.06012.02
5.1.60.0230.04312.02
5.1.50.0130.04712.02
5.1.40.0170.05312.02
5.1.30.0130.05312.02
5.1.20.0170.05312.02
5.1.10.0100.03712.02
5.1.00.0230.04712.02
5.0.50.0070.03012.02
5.0.40.0130.04312.02
5.0.30.0070.06312.02
5.0.20.0070.04312.02
5.0.10.0100.04012.02
5.0.00.0070.05712.02
4.4.90.0000.02312.02
4.4.80.0070.02712.02
4.4.70.0100.02312.02
4.4.60.0130.01712.02
4.4.50.0070.02012.02
4.4.40.0100.05312.02
4.4.30.0030.03312.02
4.4.20.0100.03012.02
4.4.10.0130.01312.02
4.4.00.0130.02312.02
4.3.110.0130.02012.02
4.3.100.0100.03012.02
4.3.90.0070.03712.02
4.3.80.0130.03012.02
4.3.70.0030.02712.02
4.3.60.0070.02012.02
4.3.50.0070.02012.02
4.3.40.0100.04712.02
4.3.30.0030.03312.02
4.3.20.0030.03712.02
4.3.10.0030.03712.02
4.3.00.0070.02312.02

preferences:
145.12 ms | 1394 KiB | 7 Q