3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait myBaseClass1 { public function doSomething() { echo 'doSomething1'; }; public function mySpecialFunction1() { echo 'function1'; }; } trait myBaseClass2 { public function doSomething() { echo 'doSomething2'; }; public function mySpecialFunction2() { echo 'function2'; }; } class myClass { use myBaseClass1, myBaseClass2; } $a = new myClass(); $a->doSomething();

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.2900.04318.88
5.4.320.3430.04019.09
5.4.310.3170.04018.98
5.4.300.3130.03719.22
5.4.290.3230.03718.95
5.4.280.3330.03019.20
5.4.270.3530.04019.09
5.4.260.2630.03318.95
5.4.250.3270.03719.08
5.4.240.3530.03719.24
5.4.230.3300.04019.06
5.4.220.2930.03719.05
5.4.210.3300.03319.19
5.4.200.3930.03719.09
5.4.190.3570.03718.86
5.4.180.3730.03718.97
5.4.170.2830.03719.12
5.4.160.3300.04018.93
5.4.150.3330.03719.20
5.4.140.3530.03716.51
5.4.130.3570.03716.34
5.4.120.3270.03716.34
5.4.110.3470.03716.54
5.4.100.3670.03016.54
5.4.90.3500.03316.46
5.4.80.3600.04016.43
5.4.70.3670.03716.57
5.4.60.3530.04316.52
5.4.50.3700.03316.57
5.4.40.4230.02716.51
5.4.30.3530.03316.26
5.4.20.3770.03016.37
5.4.10.3630.03716.48
5.4.00.3700.04015.81
5.3.290.3470.04014.76
5.3.280.3500.04714.62
5.3.270.3370.04314.45
5.3.260.3370.04014.55
5.3.250.3470.03314.45
5.3.240.3500.03314.46
5.3.230.3530.03714.69
5.3.220.4000.04314.43
5.3.210.3800.03714.61
5.3.200.3400.03714.61
5.3.190.3730.04014.52
5.3.180.4230.05314.39
5.3.170.3600.04014.47
5.3.160.3600.03714.51
5.3.150.3670.02714.55
5.3.140.3430.03714.64
5.3.130.3500.04014.66
5.3.120.3500.03314.45
5.3.110.3600.04014.39
5.3.100.4170.04013.88
5.3.90.3630.03713.88
5.3.80.3630.03013.90
5.3.70.4270.04013.95
5.3.60.3530.04013.83
5.3.50.0700.03013.79
5.3.40.0070.06313.74
5.3.30.3770.03013.78
5.3.20.3930.03713.64
5.3.10.3400.04013.60
5.3.00.3830.03013.54
5.2.170.0030.02711.16
5.2.160.0030.02711.17
5.2.150.2400.02011.00
5.2.140.3000.03011.15
5.2.130.3000.03711.04
5.2.120.3170.02710.94
5.2.110.3200.02710.95
5.2.100.2970.02710.96
5.2.90.3070.03310.96
5.2.80.3270.03710.94
5.2.70.3770.02711.03
5.2.60.4330.03011.21
5.2.50.3430.02710.82
5.2.40.3000.02710.90
5.2.30.3000.02310.82
5.2.20.2700.03010.80
5.2.10.3070.02311.03
5.2.00.2670.03310.61
5.1.60.0070.0479.97
5.1.50.0070.0309.91
5.1.40.0100.04310.05
5.1.30.0000.04010.30
5.1.20.2430.02310.39
5.1.10.2530.0279.99
5.1.00.2530.0279.93
5.0.50.1270.0208.44
5.0.40.1470.0208.30
5.0.30.1400.0378.09
5.0.20.1300.0208.44
5.0.10.1230.0208.24
5.0.00.1270.0278.13
4.4.90.1570.0135.82
4.4.80.1730.0175.81
4.4.70.1270.0135.78
4.4.60.1470.0175.76
4.4.50.1030.0175.82
4.4.40.0100.0335.79
4.4.30.0000.0405.79
4.4.20.1330.0175.95
4.4.10.1400.0175.85
4.4.00.1270.0305.89
4.3.110.1430.0175.75
4.3.100.1200.0135.72
4.3.90.1300.0175.85
4.3.80.1330.0235.80
4.3.70.1600.0175.67
4.3.60.1430.0075.78
4.3.50.1470.0175.79
4.3.40.1330.0305.76
4.3.30.1030.0205.59
4.3.20.0970.0275.59
4.3.10.0930.0205.59
4.3.00.0800.0235.59

preferences:
141.59 ms | 1394 KiB | 7 Q