3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait TestTrait {} class Test { use TestTrait } $t = new Test; echo ($t instanceof "Test") ? "Is Test" : "Is not Test"; echo ($t instanceof "TestTrait") ? "Is Test" : "Is not Test";

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.310.0070.04019.15
5.4.300.0000.05319.21
5.4.290.0070.03019.22
5.4.280.0070.03319.08
5.4.270.0000.04319.19
5.4.260.0030.07318.86
5.4.250.0100.03019.13
5.4.240.0030.04319.21
5.4.230.0070.03719.24
5.4.220.0030.08319.13
5.4.210.0000.08019.19
5.4.200.0070.05019.31
5.4.190.0070.07319.13
5.4.180.0000.07718.93
5.4.170.0000.08318.84
5.4.160.0030.05719.13
5.4.150.0030.03719.20
5.4.140.0030.03316.40
5.4.130.0070.07016.55
5.4.120.0070.06016.56
5.4.110.0030.03716.24
5.4.100.0030.05316.40
5.4.90.0000.05016.50
5.4.80.0000.04716.22
5.4.70.0000.07716.57
5.4.60.0030.06716.43
5.4.50.0000.07316.42
5.4.40.0000.06316.25
5.4.30.0030.03716.23
5.4.20.0100.06716.37
5.4.10.0100.03316.23
5.4.00.0130.06315.82
5.3.280.0000.05014.45
5.3.270.0000.04014.45
5.3.260.0000.04714.54
5.3.250.0000.04014.44
5.3.240.0000.04714.45
5.3.230.0000.05014.45
5.3.220.0070.04014.40
5.3.210.0070.04714.52
5.3.200.0070.03314.43
5.3.190.0030.04014.43
5.3.180.0030.07014.51
5.3.170.0000.05714.51
5.3.160.0070.07314.51
5.3.150.0000.05714.54
5.3.140.0070.07014.50
5.3.130.0000.04314.39
5.3.120.0070.03714.57
5.3.110.0070.05014.50
5.3.100.0100.07313.88
5.3.90.0030.05313.87
5.3.80.0070.07313.87
5.3.70.0070.07313.87
5.3.60.0030.06713.77
5.3.50.0100.07013.78
5.3.40.0030.03313.97
5.3.30.0000.07713.86
5.3.20.0030.06013.54
5.3.10.0070.06313.48
5.3.00.0030.05013.41
5.2.170.0000.06311.55
5.2.160.0000.04311.55
5.2.150.0000.06711.55
5.2.140.0070.05711.55
5.2.130.0000.06011.55
5.2.120.0030.06311.55
5.2.110.0030.06011.55
5.2.100.0100.05011.55
5.2.90.0000.06711.55
5.2.80.0070.06311.55
5.2.70.0030.05311.55
5.2.60.0030.06011.55
5.2.50.0070.06011.55
5.2.40.0100.05311.55
5.2.30.0000.06311.55
5.2.20.0000.04011.55
5.2.10.0030.04711.55
5.2.00.0070.05711.55
5.1.60.0030.04311.55
5.1.50.0000.04311.55
5.1.40.0000.03711.55
5.1.30.0070.05311.55
5.1.20.0000.04311.55
5.1.10.0070.03711.55
5.1.00.0000.03311.55
5.0.50.0000.04311.55
5.0.40.0070.04011.55
5.0.30.0030.04011.55
5.0.20.0030.02711.55
5.0.10.0000.04711.55
5.0.00.0070.03711.55
4.4.90.0000.03311.55
4.4.80.0000.03711.55
4.4.70.0070.02311.55
4.4.60.0000.03711.55
4.4.50.0070.02311.55
4.4.40.0000.04311.55
4.4.30.0000.02711.55
4.4.20.0000.02711.55
4.4.10.0000.03311.55
4.4.00.0030.04311.55
4.3.110.0070.03311.55
4.3.100.0100.01711.55
4.3.90.0030.03011.55
4.3.80.0030.02711.55
4.3.70.0000.03711.55
4.3.60.0000.03711.55
4.3.50.0000.02711.55
4.3.40.0030.04311.55
4.3.30.0000.02311.55
4.3.20.0000.03711.55
4.3.10.0000.03711.55
4.3.00.0000.02711.55

preferences:
137.62 ms | 1386 KiB | 7 Q