3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait FooTrait { public function foo() { return "foo"; } } trait BarTrait { use FooTrait public function bar() { return "bar"; } } dd(new class { use BarTrait; });

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.6.120.0170.03720.91
5.6.110.0000.04321.14
5.6.100.0030.04021.09
5.6.90.0170.05020.93
5.6.80.0030.06320.53
5.5.280.0130.03020.67
5.5.270.0100.07020.89
5.5.260.0100.04320.72
5.5.250.0070.04720.77
5.5.240.0030.05320.19
5.4.440.0500.05719.47
5.4.430.0530.06719.61
5.4.420.0600.05019.45
5.4.410.0500.05719.05
5.4.400.0630.05719.16
5.4.390.0670.04719.29
5.4.380.0600.05719.15
5.4.370.0630.05019.13
5.4.360.0570.06018.85
5.4.350.0600.05319.13
5.4.340.0630.05018.96
5.4.320.0570.05718.84
5.4.310.0700.05719.12
5.4.300.0730.04719.28
5.4.290.0670.04718.83
5.4.280.0630.05019.25
5.4.270.0530.05719.32
5.4.260.0530.05719.14
5.4.250.0600.05319.05
5.4.240.0670.04318.84
5.4.230.0700.04319.00
5.4.220.0530.06018.82
5.4.210.0600.05318.91
5.4.200.0630.04716.94
5.4.190.0800.06319.10
5.4.180.0670.04319.01
5.4.170.0670.06019.02
5.4.160.0570.05319.00
5.4.150.0570.05019.06
5.4.140.0530.05016.57
5.4.130.0600.05016.61
5.4.120.0700.04716.59
5.4.110.0570.06316.38
5.4.100.0600.05716.46
5.4.90.0800.05716.36
5.4.80.0670.04716.55
5.4.70.0670.04716.42
5.4.60.0470.06316.38
5.4.50.0670.04316.36
5.4.40.0700.07316.38
5.4.30.0730.04316.41
5.4.20.0670.06016.54
5.4.10.0570.05716.35
5.4.00.0570.05315.86
5.3.290.0500.06314.76
5.3.280.0630.06014.38
5.3.270.0600.05714.56
5.3.260.0470.05714.44
5.3.250.0730.04314.48
5.3.240.0600.05014.44
5.3.230.0730.05014.55
5.3.220.0700.06714.43
5.3.210.0570.06014.55
5.3.200.0700.04714.52
5.3.190.0670.05014.41
5.3.180.0570.05714.51
5.3.170.0670.05014.52
5.3.160.0470.05714.41
5.3.150.0630.04014.42
5.3.140.0670.04714.54
5.3.130.0530.06314.39
5.3.120.0770.04014.56
5.3.110.0770.04014.38
5.3.100.0570.05713.89
5.3.90.0530.05013.86
5.3.80.0570.05713.91
5.3.70.0700.04313.79
5.3.60.0670.05013.84
5.3.50.0700.04713.79
5.3.40.0570.06013.72
5.3.30.0670.04313.79
5.3.20.0600.05713.53
5.3.10.0570.06013.49
5.3.00.0600.04713.62
5.2.170.0400.04311.09
5.2.160.0400.04010.98
5.2.150.0570.04011.08
5.2.140.0370.04711.03
5.2.130.0470.04311.09
5.2.120.0530.04310.89
5.2.110.0570.03711.07
5.2.100.0530.05010.96
5.2.90.0600.03011.04
5.2.80.0470.04010.93
5.2.70.0500.03311.08
5.2.60.0530.05710.90
5.2.50.0530.04010.80
5.2.40.0400.04310.83
5.2.30.0400.04710.79
5.2.20.0500.03310.80
5.2.10.0400.04010.77
5.2.00.0500.04010.73
5.1.60.0300.0379.97
5.1.50.0430.0309.91
5.1.40.0470.03010.02
5.1.30.0370.04710.38
5.1.20.0400.04010.37
5.1.10.0300.0409.95
5.1.00.0470.0479.98
5.0.50.0170.0338.52
5.0.40.0170.0308.33
5.0.30.0230.0408.14
5.0.20.0200.0278.07
5.0.10.0200.0238.14
5.0.00.0130.0437.99
4.4.90.0200.0275.84
4.4.80.0270.0235.80
4.4.70.0130.0275.75
4.4.60.0000.0235.79
4.4.50.0070.0175.76
4.4.40.0070.0335.83
4.4.30.0030.0235.83
4.4.20.0070.0205.85
4.4.10.0130.0235.85
4.4.00.0230.0405.77
4.3.110.0230.0205.76
4.3.100.0200.0205.75
4.3.90.0200.0205.79
4.3.80.0100.0335.79
4.3.70.0130.0205.73
4.3.60.0130.0135.74
4.3.50.0300.0275.65
4.3.40.0070.0335.71
4.3.30.0100.0134.52
4.3.20.0070.0274.48
4.3.10.0070.0234.47
4.3.00.0100.0177.09

preferences:
133.09 ms | 1398 KiB | 7 Q