3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait T1 { abstract protected function _doStuff(); } trait T2 { protected function _doStuff() { echo "Doing stuff in trait\n"; } } class C { use T1 { _doStuff as _traitDoStuff; } use T2 { _doStuff as _traitDoStuff; } protected function _doStuff() { echo "Doing stuff in class\n"; $this->_traitDoStuff(); } }

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)
8.3.130.0040.00418.34
8.3.120.0060.00320.73
8.3.110.0040.00420.94
8.3.100.0060.00324.06
8.3.90.0100.01026.77
8.3.80.0050.00518.31
8.3.70.0060.00916.63
8.3.60.0060.01218.55
8.3.50.0140.00718.29
8.3.40.0130.00618.47
8.3.30.0040.01918.54
8.3.20.0070.00418.90
8.3.10.0070.00021.90
8.3.00.0080.00017.67
8.2.250.0110.00716.85
8.2.240.0040.01217.16
8.2.230.0030.00622.58
8.2.220.0040.00437.54
8.2.210.0030.00526.77
8.2.200.0060.00316.38
8.2.190.0090.00616.58
8.2.180.0070.01016.38
8.2.170.0000.01522.96
8.2.160.0110.00420.10
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00419.70
8.2.120.0040.00426.35
8.2.110.0060.00320.52
8.2.100.0060.00617.66
8.2.90.0000.00817.63
8.2.80.0000.00818.65
8.2.70.0050.00317.38
8.2.60.0080.00017.50
8.2.50.0040.00418.10
8.2.40.0040.00419.16
8.2.30.0030.00619.17
8.2.20.0060.00317.94
8.2.10.0040.00417.87
8.2.00.0030.00519.24
8.1.300.0070.01118.20
8.1.290.0100.00018.88
8.1.280.0060.01625.92
8.1.270.0060.00323.82
8.1.260.0110.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.09
8.1.230.0030.00822.15
8.1.220.0000.00818.56
8.1.210.0040.00418.77
8.1.200.0040.00417.09
8.1.190.0030.00617.10
8.1.180.0000.00818.10
8.1.170.0000.00818.64
8.1.160.0040.00418.78
8.1.150.0000.00718.82
8.1.140.0070.00017.62
8.1.130.0020.00517.38
8.1.120.0000.00717.41
8.1.110.0080.00017.34
8.1.100.0030.00317.38
8.1.90.0030.00517.28
8.1.80.0000.00817.44
8.1.70.0070.00017.33
8.1.60.0000.00917.49
8.1.50.0070.00317.35
8.1.40.0050.00317.44
8.1.30.0040.00417.66
8.1.20.0000.00817.47
8.1.10.0000.00817.39
8.1.00.0040.00417.17
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.43
8.0.270.0070.00017.25
8.0.260.0000.00816.77
8.0.250.0060.00016.85
8.0.240.0000.00716.88
8.0.230.0000.00716.80
8.0.220.0000.00716.86
8.0.210.0000.00716.89
8.0.200.0000.00816.96
8.0.190.0070.00016.94
8.0.180.0000.00816.95
8.0.170.0060.00316.91
8.0.160.0070.00016.93
8.0.150.0050.00316.79
8.0.140.0000.00816.80
8.0.130.0030.00313.24
8.0.120.0070.00016.73
8.0.110.0040.00416.89
8.0.100.0070.00016.79
8.0.90.0030.00316.68
8.0.80.0030.01216.86
8.0.70.0040.00416.69
8.0.60.0040.00416.87
8.0.50.0030.00516.75
8.0.30.0140.00517.13
8.0.20.0090.01217.40
8.0.10.0040.00416.99
8.0.00.0110.00816.72
7.4.330.0000.00515.55
7.4.320.0030.00316.36
7.4.300.0000.00716.44
7.4.290.0000.00716.32
7.4.280.0000.00716.52
7.4.270.0000.00716.35
7.4.260.0030.00316.33
7.4.250.0030.00316.49
7.4.240.0030.00316.36
7.4.230.0000.00716.51
7.4.220.0080.00016.23
7.4.210.0120.00716.40
7.4.200.0030.00316.38
7.4.160.0040.01216.44
7.4.140.0120.00717.86
7.4.130.0150.00316.50
7.4.120.0080.01016.49
7.4.110.0070.01016.23
7.4.100.0100.01316.50
7.4.90.0100.00716.44
7.4.80.0120.00919.39
7.4.70.0090.00616.35
7.4.60.0040.01116.36
7.4.50.0110.00716.50
7.4.40.0040.01516.06
7.4.00.0030.01314.84
7.3.330.0000.00513.20
7.3.320.0000.00613.25
7.3.310.0040.00416.30
7.3.300.0030.00316.10
7.3.290.0050.00216.31
7.3.280.0070.00816.25
7.3.260.0100.00716.34
7.3.240.0070.01116.35
7.3.230.0060.01016.32
7.3.210.0120.00816.37
7.3.200.0060.00916.39
7.3.190.0060.01516.49
7.3.180.0040.01116.35
7.3.170.0090.00816.30
7.3.160.0070.01516.30
7.2.330.0160.00616.38
7.2.320.0060.01216.59
7.2.310.0040.01816.46
7.2.300.0150.00716.65
7.2.290.0120.00616.39
7.2.60.0000.01116.70
7.2.50.0120.00816.82
7.2.40.2080.00817.90
7.2.30.2480.00817.83
7.2.20.2570.00718.04
7.2.10.3110.01117.94
7.2.00.1430.00617.89
7.1.200.0000.01315.72
7.1.160.2140.01316.83
7.1.150.2080.00716.41
7.1.140.2490.00916.77
7.1.130.1500.01016.64
7.1.120.1450.00816.69
7.1.110.2660.00916.21
7.1.100.1930.00615.91
7.1.90.2390.00915.98
7.1.80.2100.00816.06
7.1.70.2150.00914.93
7.1.60.1800.01033.16
7.1.50.1830.01232.75
7.1.40.2530.01332.59
7.1.30.1910.01132.49
7.1.20.1760.01232.85
7.1.10.1360.01114.62
7.1.00.2260.01014.69

preferences:
35.75 ms | 403 KiB | 5 Q