3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait T { private $x; protected function foo() {} function bar() {} } trait TT { use T {$x as protected} } class C { use T { foo as public; } } $c = new C(); $c->foo(); $c->bar();

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.340.3270.03718.99
5.4.320.3270.04019.24
5.4.310.3130.04319.09
5.4.300.3270.03718.98
5.4.290.3270.04319.14
5.4.280.3470.04719.15
5.4.270.2900.04018.98
5.4.260.2970.04018.85
5.4.250.3000.04319.25
5.4.240.3300.04018.86
5.4.230.3230.03719.30
5.4.220.3830.03719.24
5.4.210.3900.03718.97
5.4.200.3970.04018.99
5.4.190.3800.03719.07
5.4.180.3930.03719.12
5.4.170.4000.03718.84
5.4.160.3230.04019.07
5.4.150.3230.04019.13
5.4.140.3200.03716.40
5.4.130.3270.03716.32
5.4.120.3170.04016.43
5.4.110.3270.03716.60
5.4.100.3130.03716.51
5.4.90.2970.03716.59
5.4.80.2900.03316.49
5.4.70.2900.03316.39
5.4.60.2870.03316.35
5.4.50.2900.03716.54
5.4.40.3430.03716.25
5.4.30.3170.03716.48
5.4.20.2430.03016.43
5.4.10.1770.03316.51
5.4.00.2200.03315.94
5.3.290.2630.04014.50
5.3.280.2730.02714.62
5.3.270.3300.04014.54
5.3.260.2730.04314.66
5.3.250.2870.03714.51
5.3.240.2570.04014.55
5.3.230.2870.03314.69
5.3.220.3630.03714.40
5.3.210.3130.03714.41
5.3.200.3070.03014.43
5.3.190.3130.04314.43
5.3.180.3230.04014.42
5.3.170.3230.04014.41
5.3.160.3070.04014.51
5.3.150.3070.03314.43
5.3.140.3470.04714.59
5.3.130.3500.04314.39
5.3.120.3530.04314.47
5.3.110.3300.03714.53
5.3.100.3270.03713.99
5.3.90.2970.03714.11
5.3.80.3030.03313.95
5.3.70.3200.04013.89
5.3.60.2470.03314.05
5.3.50.2830.03713.73
5.3.40.2930.04013.99
5.3.30.3100.03713.89
5.3.20.3130.03313.54
5.3.10.3070.03313.61
5.3.00.3230.03713.49
5.2.170.2530.02712.84
5.2.160.2700.03012.84
5.2.150.3030.03712.84
5.2.140.2700.03312.84
5.2.130.2700.03012.84
5.2.120.2730.02312.84
5.2.110.2400.03012.84
5.2.100.2800.03012.84
5.2.90.2670.03012.84
5.2.80.2430.03012.84
5.2.70.2730.03012.84
5.2.60.3130.03012.84
5.2.50.2730.03712.84
5.2.40.2230.02712.84
5.2.30.1930.03012.84
5.2.20.2300.02712.84
5.2.10.2230.03012.84
5.2.00.2170.03312.84
5.1.60.2230.02012.84
5.1.50.2230.02312.84
5.1.40.2230.02312.84
5.1.30.2170.02712.84
5.1.20.2000.02312.84
5.1.10.2230.02712.84
5.1.00.2300.02312.84
5.0.50.1300.01712.84
5.0.40.1200.02712.84
5.0.30.1000.02712.84
5.0.20.1030.01712.84
5.0.10.1300.02312.84
5.0.00.1200.04012.84
4.4.90.1000.01312.84
4.4.80.1200.01712.84
4.4.70.0770.01312.84
4.4.60.1070.01712.84
4.4.50.1000.01712.84
4.4.40.1230.03312.84
4.4.30.1030.01312.84
4.4.20.1000.01712.84
4.4.10.1170.01712.84
4.4.00.1170.03012.84
4.3.110.1030.01712.84
4.3.100.1230.01712.84
4.3.90.1100.02012.84
4.3.80.1430.01712.84
4.3.70.1300.01312.84
4.3.60.1170.02012.84
4.3.50.0970.01712.84
4.3.40.1170.02712.84
4.3.30.0530.02012.84
4.3.20.0470.01712.84
4.3.10.0670.02712.84
4.3.00.0570.01712.84

preferences:
145.65 ms | 1394 KiB | 7 Q