3v4l.org

run code in 500+ PHP versions simultaneously
<?php trait PersonPL{ public function sayHello($name){ echo 'Witaj, nazywam siÄ™ '.$name; } public function whereFrom($country){ echo 'Jestem z '.$country; } } trait PersonENG{ public function sayHello($name){ echo 'Hi, my name is '.$name; } public function whereFrom($country){ echo 'I am form '.$country; } } class TestA{ // use PersonPL, PersonENG; // Fatal error: Trait method sayHello has not been applied, because there are collisions with other trait methods on TestA }

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.5.60.0080.00516.61
8.5.50.0090.00918.27
8.5.30.0080.00917.44
8.5.20.0110.00620.11
8.5.10.0110.00620.09
8.5.00.0130.01019.82
8.4.180.0100.01220.48
8.4.170.0120.01023.66
8.4.160.0060.00522.96
8.4.150.0090.00316.77
8.4.140.0160.00617.41
8.4.130.0110.00919.47
8.4.120.0140.00620.45
8.4.110.0070.00422.50
8.4.100.0120.00720.39
8.4.90.0070.00918.50
8.4.80.0130.00717.73
8.4.70.0110.00817.79
8.4.60.0120.00919.08
8.4.50.0100.01018.00
8.4.40.0120.00917.63
8.4.30.0060.01317.61
8.4.20.0030.00617.69
8.4.10.0050.00517.61
8.3.300.0120.00818.88
8.3.290.0050.00420.62
8.3.280.0110.00918.11
8.3.270.0070.01316.44
8.3.260.0100.00916.24
8.3.250.0110.00718.70
8.3.240.0140.00616.67
8.3.230.0090.00816.53
8.3.220.0120.00618.92
8.3.210.0100.00818.29
8.3.200.0040.00516.47
8.3.190.0050.00319.07
8.3.180.0100.00718.79
8.3.170.0070.01117.29
8.3.160.0100.00718.39
8.3.150.0060.01218.85
8.3.140.0070.00718.81
8.3.130.0070.00018.34
8.3.120.0040.00420.59
8.3.110.0100.01020.94
8.3.100.0080.00024.06
8.3.90.0080.00020.02
8.3.80.0090.00017.97
8.3.70.0140.00716.25
8.3.60.0090.00916.50
8.3.50.0120.00821.05
8.3.40.0110.00418.59
8.3.30.0110.00418.60
8.3.20.0050.00320.31
8.3.10.0000.00723.66
8.3.00.0080.00023.52
8.2.300.0050.00420.38
8.2.290.0120.00620.05
8.2.280.0100.00920.08
8.2.270.0030.00516.55
8.2.260.0060.00316.82
8.2.250.0080.00016.61
8.2.240.0000.00817.17
8.2.230.0030.00622.58
8.2.220.0060.00337.54
8.2.210.0000.00826.77
8.2.200.0000.00916.38
8.2.190.0170.00316.58
8.2.180.0160.00016.50
8.2.170.0110.00322.96
8.2.160.0030.01020.25
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0060.00321.02
8.2.120.0080.00026.35
8.2.110.0080.00420.92
8.2.100.0040.00817.70
8.2.90.0040.00417.91
8.2.80.0050.00319.64
8.2.70.0080.00017.91
8.2.60.0060.00317.80
8.2.50.0050.00318.10
8.2.40.0020.00520.54
8.2.30.0070.00019.36
8.2.20.0070.00017.55
8.2.10.0040.00417.93
8.2.00.0060.00318.00
8.1.340.0130.00817.38
8.1.330.0150.00321.79
8.1.320.0110.00715.80
8.1.310.0100.00316.55
8.1.300.0060.00317.64
8.1.290.0030.00618.88
8.1.280.0060.00925.92
8.1.270.0090.00622.14
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0090.00022.39
8.1.230.0120.00020.82
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00417.22
8.1.190.0000.00817.11
8.1.180.0000.00818.10
8.1.170.0000.00818.46
8.1.160.0000.00722.09
8.1.150.0040.00418.64
8.1.140.0030.00519.44
8.1.130.0030.00317.65
8.1.120.0000.00717.35
8.1.110.0040.00417.22
8.1.100.0070.00017.35
8.1.90.0000.00717.34
8.1.80.0050.00317.33
8.1.70.0000.00717.28
8.1.60.0040.00417.37
8.1.50.0000.00817.44
8.1.40.0040.00417.36
8.1.30.0040.00417.43
8.1.20.0000.00817.38
8.1.10.0050.00217.38
8.1.00.0070.00017.27
8.0.300.0060.00319.77
8.0.290.0000.00716.63
8.0.280.0030.00318.32
8.0.270.0040.00417.13
8.0.260.0030.00317.14
8.0.250.0000.00716.75
8.0.240.0030.00316.83
8.0.230.0050.00216.80
8.0.220.0030.00316.74
8.0.210.0070.00016.71
8.0.200.0000.00616.77
8.0.190.0040.00416.84
8.0.180.0070.00016.73
8.0.170.0070.00016.71
8.0.160.0040.00416.86
8.0.150.0050.00216.70
8.0.140.0070.00016.74
8.0.130.0030.00313.18
8.0.120.0040.00416.62
8.0.110.0040.00416.80
8.0.100.0040.00416.82
8.0.90.0000.00816.79
8.0.80.0090.00616.73
8.0.70.0040.00416.75
8.0.60.0000.00816.75
8.0.50.0000.00716.59
8.0.30.0100.00616.99
8.0.20.0050.01517.40
8.0.10.0030.00516.94
8.0.00.0140.00516.65
7.4.330.0000.00616.70
7.4.320.0000.00716.38
7.4.300.0100.00016.47
7.4.290.0070.00016.42
7.4.280.0030.00516.38
7.4.270.0040.00416.37
7.4.260.0040.00416.25
7.4.250.0030.00316.33
7.4.240.0000.00716.47
7.4.230.0070.00016.56
7.4.220.0120.00816.55
7.4.210.0090.00816.38
7.4.200.0070.00016.50
7.4.160.0060.00916.14
7.4.150.0120.01217.40
7.4.140.0100.00817.86
7.4.130.0050.01216.38
7.4.120.0100.00616.17
7.4.110.0090.01316.25
7.4.100.0140.00716.41
7.4.90.0030.01316.52
7.4.80.0080.00819.39
7.4.70.0080.00816.53
7.4.60.0070.01016.31
7.4.50.0070.01016.29
7.4.40.0060.01116.55
7.4.30.0130.00316.36
7.4.00.0090.00614.98
7.3.330.0020.00213.16
7.3.320.0000.00513.03
7.3.310.0000.00616.03
7.3.300.0000.00716.00
7.3.290.0000.00616.04
7.3.280.0090.00816.13
7.3.270.0070.01017.40
7.3.260.0040.01316.07
7.3.250.0090.00916.25
7.3.240.0060.01316.32
7.3.230.0120.00916.39
7.3.210.0060.01116.04
7.3.200.0060.01119.39
7.3.190.0060.01116.12
7.3.180.0120.00316.15
7.3.170.0100.00716.27
7.3.160.0080.00816.31
7.2.330.0060.01616.46
7.2.320.0160.00616.14
7.2.310.0060.01216.53
7.2.300.0110.00616.49
7.2.290.0130.00316.49
7.2.60.0380.00316.73
7.1.200.0000.00715.56
7.1.70.0040.00417.10
7.1.60.0100.01619.40
7.1.50.0040.01816.52
7.1.00.0030.07022.28
7.0.200.0390.00714.63
7.0.60.0100.09021.74
7.0.50.0000.06717.87
7.0.40.0030.07720.24
7.0.30.0170.04020.09
7.0.20.0270.04720.06
7.0.10.0100.03720.25
7.0.00.0030.06020.06
5.6.280.0000.05021.10
5.6.210.0000.08020.72
5.6.200.0070.08018.20
5.6.190.0030.05320.55
5.6.180.0200.05320.34
5.6.170.0400.06720.64
5.6.160.0130.06020.50
5.6.150.0070.08318.20
5.6.140.0100.06718.21
5.6.130.0070.05018.25
5.6.120.0130.04321.00
5.6.110.0100.03321.12
5.6.100.0030.05021.02
5.6.90.0070.04020.98
5.6.80.0130.04320.41
5.5.350.0070.08020.41
5.5.340.0000.06317.95
5.5.330.0000.05720.28
5.5.320.0630.06020.28
5.5.310.0330.04020.23
5.5.300.0030.08317.98
5.5.290.0070.04018.07
5.5.280.0030.09020.84
5.5.270.0100.08320.90
5.5.260.0100.04020.80
5.5.250.0000.04720.63
5.5.240.0270.05020.24

preferences:
110.55 ms | 1465 KiB | 5 Q