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.0200.07719.09
5.4.310.0170.05319.31
5.4.300.0270.07019.22
5.4.290.0300.03319.16
5.4.280.0270.06719.04
5.4.270.0200.07018.98
5.4.260.0170.05019.24
5.4.250.0100.05019.30
5.4.240.0230.07019.08
5.4.230.0130.04319.21
5.4.220.0230.06319.16
5.4.210.0200.03719.14
5.4.200.0270.07019.22
5.4.190.0170.07719.07
5.4.180.0230.05019.15
5.4.170.0200.07318.97
5.4.160.0130.04018.93
5.4.150.0130.05719.04
5.4.140.0230.03316.41
5.4.130.0170.05716.71
5.4.120.0170.04316.40
5.4.110.0200.07316.55
5.4.100.0300.05716.50
5.4.90.0200.04316.50
5.4.80.0170.06016.23
5.4.70.0230.05016.30
5.4.60.0170.04016.54
5.4.50.0230.03016.53
5.4.40.0200.03316.51
5.4.30.0230.03016.53
5.4.20.0130.04016.22
5.4.10.0270.06716.22
5.4.00.0200.03315.82
5.3.290.0270.04714.68
5.3.280.0270.04014.73
5.3.270.0300.03014.53
5.3.260.0200.04014.82
5.3.250.0270.04314.53
5.3.240.0230.06014.57
5.3.230.0300.06314.64
5.3.220.0200.04014.71
5.3.210.0330.06314.60
5.3.200.0230.05014.55
5.3.190.0170.04014.49
5.3.180.0270.07314.46
5.3.170.0200.05314.58
5.3.160.0230.04714.47
5.3.150.0300.08014.61
5.3.140.0330.03714.48
5.3.130.0230.07014.63
5.3.120.0270.06314.52
5.3.110.0200.04014.54
5.3.100.0270.06714.09
5.3.90.0300.03314.10
5.3.80.0170.04714.13
5.3.70.0270.02713.93
5.3.60.0200.04313.91
5.3.50.0230.03014.09
5.3.40.0200.04313.87
5.3.30.0130.04014.13
5.3.20.0070.04013.61
5.3.10.0170.03713.58
5.3.00.0200.03313.54
5.2.170.0170.02711.10
5.2.160.0130.03011.15
5.2.150.0170.03311.15
5.2.140.0130.03711.06
5.2.130.0170.03311.00
5.2.120.0170.02711.03
5.2.110.0200.03011.02
5.2.100.0170.03311.11
5.2.90.0170.03311.00
5.2.80.0130.03011.15
5.2.70.0130.03011.00
5.2.60.0130.03011.00
5.2.50.0170.02710.97
5.2.40.0130.02710.91
5.2.30.0170.03310.89
5.2.20.0130.03310.89
5.2.10.0100.03010.77
5.2.00.0100.03010.64
5.1.60.0170.0239.93
5.1.50.0170.0239.90
5.1.40.0100.0279.86
5.1.30.0100.02710.32
5.1.20.0070.03310.30
5.1.10.0130.0279.96
5.1.00.0100.02710.05
5.0.50.0030.0238.53
5.0.40.0130.0178.46
5.0.30.0030.0408.10
5.0.20.0030.0238.25
5.0.10.0070.0208.07
5.0.00.0070.0338.16
4.4.90.0070.0136.89
4.4.80.0170.0106.89
4.4.70.0070.0176.89
4.4.60.0000.0176.89
4.4.50.0000.0206.89
4.4.40.0030.0236.89
4.4.30.0070.0136.89
4.4.20.0030.0176.89
4.4.10.0100.0176.89
4.4.00.0070.0276.89
4.3.110.0030.0176.89
4.3.100.0030.0206.89
4.3.90.0100.0106.89
4.3.80.0070.0236.89
4.3.70.0070.0136.89
4.3.60.0030.0206.89
4.3.50.0030.0176.89
4.3.40.0070.0236.89
4.3.30.0030.0176.89
4.3.20.0000.0176.89
4.3.10.0000.0176.89
4.3.00.0030.0176.89

preferences:
141.15 ms | 1394 KiB | 7 Q