3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait StaticExample { protected function doSomething( $value ) { $this->var = $value; } } class Example { use StaticExample; } $1 = new Example;

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.170.4030.04019.21
5.4.160.3930.03719.09
5.4.150.4130.04019.12
5.4.140.0100.07016.55
5.4.130.0100.06316.39
5.4.120.4870.03016.50
5.4.110.4600.04316.49
5.4.100.3830.03716.50
5.4.90.3770.03016.31
5.4.80.4130.03016.67
5.4.70.4100.03716.55
5.4.60.4400.03016.54
5.4.50.3830.04316.50
5.4.40.0230.06716.28
5.4.30.0070.07016.52
5.4.20.4030.03316.53
5.4.10.4770.04016.45
5.4.00.4430.03715.86
5.3.270.3900.04714.70
5.3.260.4130.04014.50
5.3.250.2670.04014.53
5.3.240.0130.03714.54
5.3.230.3300.03314.53
5.3.220.4670.03714.58
5.3.210.4970.03014.50
5.3.200.3800.03714.53
5.3.190.4000.03714.47
5.3.180.4400.04314.45
5.3.170.4430.03714.49
5.3.160.3730.04014.46
5.3.150.4430.03314.65
5.3.140.4470.04014.48
5.3.130.0130.07314.37
5.3.120.1630.05014.64
5.3.110.3930.04014.34
5.3.100.4170.04013.98
5.3.90.4230.03713.82
5.3.80.4170.02013.94
5.3.70.4070.04013.99
5.3.60.3830.04013.82
5.3.50.3970.03713.90
5.3.40.4000.03713.87
5.3.30.4230.03713.84
5.3.20.4230.02013.63
5.3.10.4230.02713.62
5.3.00.4000.02713.60

preferences:
160.73 ms | 1394 KiB | 7 Q