3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php trait TestTrait {function b(){}} trait TestTrait2 {function b(){}} class A { use TestTrait, TestTrait2 { TestTrait::b insteadof b; } }
based on m7uvN

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.60.0070.01016.72
7.2.00.0100.00719.39
7.1.200.0060.00315.77
7.1.100.0040.00417.95
7.1.70.0030.00316.66
7.1.60.0100.01419.42
7.1.50.0260.01334.82
7.1.00.0030.07322.50
7.0.200.0030.00716.63
7.0.60.0230.07319.81
7.0.50.0030.05017.86
7.0.40.0100.06720.32
7.0.30.0370.07720.25
7.0.20.0230.08320.05
7.0.10.0070.06020.08
7.0.00.0070.08020.19
5.6.280.0030.05321.07
5.6.210.0030.07720.63
5.6.200.0030.04018.18
5.6.190.0130.07020.55
5.6.180.0400.05720.50
5.6.170.0400.07320.58
5.6.160.0100.08720.71
5.6.150.0030.08018.25
5.6.140.0100.03718.14
5.6.130.0000.05318.14
5.6.120.0100.08020.98
5.6.110.0030.06020.99
5.6.100.0130.05720.98
5.6.90.0100.08321.02
5.6.80.0070.08320.54
5.5.350.0370.07320.42
5.5.340.0070.04718.09
5.5.330.0100.04720.41
5.5.320.0300.07720.38
5.5.310.0270.05720.27
5.5.300.0100.08018.07
5.5.290.0100.05318.06
5.5.280.0100.05320.98
5.5.270.0070.03720.80
5.5.260.0130.06720.77
5.5.250.0070.06720.70
5.5.240.0070.07320.13
5.4.450.0270.07019.71
5.4.440.0530.07019.57
5.4.430.0670.05719.61
5.4.420.0530.05319.70
5.4.410.0570.05019.18
5.4.400.0770.05019.29
5.4.390.0630.05719.29
5.4.380.0470.06019.32
5.4.370.0670.06018.88
5.4.360.0500.06019.29
5.4.350.0470.06019.14
5.4.340.0530.05719.29
5.4.320.0530.05318.84
5.4.310.0570.05319.30
5.4.300.0470.06019.25
5.4.290.0830.06719.00
5.4.280.0770.05019.30
5.4.270.0670.05019.14
5.4.260.0730.05319.15
5.4.250.0630.06319.25
5.4.240.0530.05019.27
5.4.230.0670.05019.25
5.4.220.0470.05719.25
5.4.210.0770.04319.34
5.4.200.0670.05016.82
5.4.190.0670.05318.99
5.4.180.0500.06319.12
5.4.170.0230.06719.02
5.4.160.0070.05319.01
5.4.150.0100.05319.09
5.4.140.0670.05016.49
5.4.130.0500.05716.46
5.4.120.0700.04716.46
5.4.110.0770.03716.76
5.4.100.0630.05016.76
5.4.90.0530.05316.55
5.4.80.0530.04716.34
5.4.70.0470.05716.73
5.4.60.0530.05016.31
5.4.50.0830.05716.48
5.4.40.0800.05316.48
5.4.30.0500.05316.37
5.4.20.0670.05016.37
5.4.10.0670.05316.51
5.4.00.0730.04715.95
5.3.290.0700.05314.50
5.3.280.0730.04714.47
5.3.270.0470.05314.48
5.3.260.0130.05714.45
5.3.250.0170.04314.55
5.3.240.0200.05314.59
5.3.230.0600.05014.48
5.3.220.0770.05314.58
5.3.210.0770.04714.40
5.3.200.0670.05314.66
5.3.190.0830.06314.41
5.3.180.0630.04714.57
5.3.170.0770.06014.38
5.3.160.0730.05014.40
5.3.150.0770.04714.41
5.3.140.0730.05014.54
5.3.130.0800.05314.39
5.3.120.0570.05714.65
5.3.110.0630.06014.39
5.3.100.0630.05313.99
5.3.90.0800.04313.79
5.3.80.0630.05313.96
5.3.70.0700.05014.00
5.3.60.0900.05713.98
5.3.50.0570.05013.76
5.3.40.0600.04713.77
5.3.30.0170.04313.75
5.3.20.0230.04013.54
5.3.10.0270.04313.75
5.3.00.0700.04713.48
5.2.170.0530.04311.09
5.2.160.0630.03311.16
5.2.150.0530.04010.98
5.2.140.0530.04310.99
5.2.130.0530.04311.20
5.2.120.0600.03010.95
5.2.110.0470.04711.04
5.2.100.0470.04711.09
5.2.90.0530.04311.26
5.2.80.0730.03011.08
5.2.70.0600.04711.14
5.2.60.0530.04010.98
5.2.50.0470.04710.90
5.2.40.0130.04010.83
5.2.30.0030.04310.81
5.2.20.0130.03310.79
5.2.10.0070.04010.86
5.2.00.0570.03310.62
5.1.60.0530.0439.96
5.1.50.0630.03710.00
5.1.40.0400.0379.90
5.1.30.0370.03710.36
5.1.20.0030.03710.37
5.1.10.0030.04010.09
5.1.00.0070.04010.13
5.0.50.0000.0378.63
5.0.40.0170.0308.46
5.0.30.0200.0408.15
5.0.20.0130.0278.35
5.0.10.0030.0308.09
5.0.00.0070.0408.07
4.4.90.0000.0235.78
4.4.80.0030.0235.84
4.4.70.0030.0205.86
4.4.60.0200.0235.83
4.4.50.0200.0205.83
4.4.40.0200.0335.74
4.4.30.0130.0205.83
4.4.20.0030.0305.85
4.4.10.0000.0235.87
4.4.00.0000.0375.82
4.3.110.0000.0275.73
4.3.100.0070.0205.75
4.3.90.0200.0235.66
4.3.80.0200.0335.66
4.3.70.0270.0205.67
4.3.60.0230.0205.70
4.3.50.0200.0175.69
4.3.40.0230.0275.61
4.3.30.0100.0304.49
4.3.20.0130.0274.53
4.3.10.0030.0274.43
4.3.00.0030.0207.00