3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I {} interface J {} trait T implements I { } 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.0270.04719.10
5.4.310.0270.06318.93
5.4.300.0200.03319.19
5.4.290.0130.04719.13
5.4.280.0130.05019.15
5.4.270.0200.06019.14
5.4.260.0170.04019.03
5.4.250.0130.03719.09
5.4.240.0200.05719.24
5.4.230.0200.06019.11
5.4.220.0170.04319.05
5.4.210.0200.04318.91
5.4.200.0300.03018.92
5.4.190.0200.03018.92
5.4.180.0030.05719.04
5.4.170.0170.03719.15
5.4.160.0170.06019.22
5.4.150.0130.04019.11
5.4.140.0100.05716.31
5.4.130.0230.04716.45
5.4.120.0100.03716.42
5.4.110.0130.03716.33
5.4.100.0130.04716.53
5.4.90.0130.03316.49
5.4.80.0130.04016.49
5.4.70.0270.02716.39
5.4.60.0100.03716.50
5.4.50.0100.06316.23
5.4.40.0070.04016.46
5.4.30.0170.03316.61
5.4.20.0130.04316.45
5.4.10.0130.03716.45
5.4.00.0200.03015.91
5.3.290.0230.07014.70
5.3.280.0200.04314.58
5.3.270.0270.07014.61
5.3.260.0130.04014.76
5.3.250.0170.03314.64
5.3.240.0170.03314.49
5.3.230.0070.04714.59
5.3.220.0100.04014.61
5.3.210.0230.02714.57
5.3.200.0070.04314.61
5.3.190.0100.04014.72
5.3.180.0170.03314.57
5.3.170.0100.04014.46
5.3.160.0170.03314.61
5.3.150.0130.03314.58
5.3.140.0100.04014.71
5.3.130.0170.04014.54
5.3.120.0100.04314.59
5.3.110.0200.04714.57
5.3.100.0170.04014.07
5.3.90.0130.03714.07
5.3.80.0170.03314.01
5.3.70.0170.03314.16
5.3.60.0030.03714.01
5.3.50.0070.03314.10
5.3.40.0100.04313.95
5.3.30.0070.04013.90
5.3.20.0170.03013.72
5.3.10.0130.03313.65
5.3.00.0230.02713.60
5.2.170.0100.03011.11
5.2.160.0170.02311.16
5.2.150.0070.03311.11
5.2.140.0100.02711.29
5.2.130.0100.03011.15
5.2.120.0130.02711.14
5.2.110.0170.02311.04
5.2.100.0100.02711.06
5.2.90.0300.03711.02
5.2.80.0130.03711.06
5.2.70.0100.03311.23
5.2.60.0130.02711.09
5.2.50.0130.02710.97
5.2.40.0030.03311.05
5.2.30.0170.03011.11
5.2.20.0030.03311.01
5.2.10.0070.03010.77
5.2.00.0100.03010.87
5.1.60.0100.02310.70
5.1.50.0030.03010.70
5.1.40.0100.02310.70
5.1.30.0100.03310.70
5.1.20.0070.02710.70
5.1.10.0030.03010.70
5.1.00.0070.03710.70
5.0.50.0030.03010.70
5.0.40.0070.02710.70
5.0.30.0070.03010.70
5.0.20.0030.02010.70
5.0.10.0030.02310.70
5.0.00.0070.03310.70
4.4.90.0070.01710.70
4.4.80.0070.01310.70
4.4.70.0030.01710.70
4.4.60.0100.01010.70
4.4.50.0100.01010.70
4.4.40.0000.02710.70
4.4.30.0000.02010.70
4.4.20.0030.01710.70
4.4.10.0070.02710.70
4.4.00.0030.03010.70
4.3.110.0070.01310.70
4.3.100.0070.01310.70
4.3.90.0030.02010.70
4.3.80.0100.04010.70
4.3.70.0070.01310.70
4.3.60.0070.01710.70
4.3.50.0070.01710.70
4.3.40.0030.02310.70
4.3.30.0030.01310.70
4.3.20.0000.01710.70
4.3.10.0030.01310.70
4.3.00.0000.01710.70

preferences:
142.82 ms | 1394 KiB | 7 Q