3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait first_trait { function first_function() { echo "From First Trait\n"; } } trait second_trait { use first_trait { first_trait::first_function as second_function; } function first_function() { echo "From Second Trait\n"; } } class first_class { use second_trait; } $obj = new first_class(); $obj->first_function(); $obj->second_function();

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.60.0080.00816.50
8.3.50.0070.01022.93
8.3.40.0100.01018.71
8.3.30.0070.00719.21
8.3.20.0070.00020.34
8.3.10.0100.00021.81
8.3.00.0040.00417.50
8.2.180.0110.00716.50
8.2.170.0140.00022.96
8.2.160.0070.01020.39
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0080.00020.95
8.2.110.0100.00722.14
8.2.100.0080.00319.51
8.2.90.0040.00419.28
8.2.80.0080.00017.97
8.2.70.0150.00017.12
8.2.60.0000.00817.92
8.2.50.0040.00418.07
8.2.40.0060.00318.34
8.2.30.0070.00017.97
8.2.20.0080.00017.56
8.2.10.0000.00818.06
8.2.00.0050.00217.78
8.1.280.0120.00925.92
8.1.270.0040.00423.84
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.64
8.1.230.0080.00319.15
8.1.220.0030.00517.76
8.1.210.0050.00318.77
8.1.200.0060.00517.22
8.1.190.0040.00417.23
8.1.180.0000.00918.10
8.1.170.0040.00418.61
8.1.160.0070.00021.92
8.1.150.0040.00418.83
8.1.140.0000.00817.39
8.1.130.0000.00717.70
8.1.120.0000.00717.38
8.1.110.0000.00717.32
8.1.100.0000.00717.48
8.1.90.0070.00017.36
8.1.80.0000.00717.36
8.1.70.0040.00417.45
8.1.60.0030.00517.63
8.1.50.0040.00417.56
8.1.40.0040.00417.52
8.1.30.0000.00917.63
8.1.20.0000.00717.56
8.1.10.0020.00517.49
8.1.00.0040.00417.45
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0000.00718.36
8.0.270.0030.00317.26
8.0.260.0040.00417.14
8.0.250.0000.00716.99
8.0.240.0070.00016.91
8.0.230.0060.00316.92
8.0.220.0000.00616.78
8.0.210.0040.00416.82
8.0.200.0050.00216.80
8.0.190.0000.00816.97
8.0.180.0070.00016.90
8.0.170.0080.00016.88
8.0.160.0000.00716.79
8.0.150.0040.00416.87
8.0.140.0110.00016.83
8.0.130.0000.00613.30
8.0.120.0000.00716.72
8.0.110.0060.00316.73
8.0.100.0040.00417.00
8.0.90.0030.00416.89
8.0.80.0060.00916.84
8.0.70.0050.00216.88
8.0.60.0050.00216.79
8.0.50.0040.00416.79
8.0.30.0150.00616.96
8.0.20.0130.00917.40
8.0.10.0070.00016.97
8.0.00.0070.01116.79
7.4.330.0020.00215.19
7.4.320.0030.00316.51
7.4.300.0030.00316.42
7.4.290.0040.00416.49
7.4.280.0040.00416.51
7.4.270.0030.00316.67
7.4.260.0030.00316.58
7.4.250.0040.00416.42
7.4.240.0020.00516.54
7.4.230.0070.00016.50
7.4.220.0070.01116.70
7.4.210.0030.01216.48
7.4.200.0030.00316.50
7.4.160.0060.01016.48
7.4.150.0110.00717.40
7.4.140.0070.01017.86
7.4.130.0110.00816.47
7.4.120.0110.00616.51
7.4.110.0060.01216.46
7.4.100.0130.00416.34
7.4.90.0100.01116.66
7.4.80.0150.00919.39
7.4.70.0120.01216.29
7.4.60.0050.01016.63
7.4.50.0060.00316.26
7.4.40.0160.00416.54
7.4.30.0130.00716.47
7.4.00.0090.00615.11
7.3.330.0070.00013.00
7.3.320.0050.00013.19
7.3.310.0000.00716.25
7.3.300.0000.00616.16
7.3.290.0100.01016.28
7.3.280.0050.01116.26
7.3.270.0130.00417.40
7.3.260.0030.01416.35
7.3.250.0090.01016.43
7.3.240.0080.01416.35
7.3.230.0120.00616.39
7.3.210.0120.00416.30
7.3.200.0150.00819.39
7.3.190.0100.00616.19
7.3.180.0090.01316.16
7.3.170.0060.00916.41
7.3.160.0090.00616.40
7.2.330.0070.01716.59
7.2.320.0040.01316.62
7.2.310.0090.00916.73
7.2.300.0060.01116.47
7.2.290.0080.00816.47
7.2.00.0080.00819.50
7.1.200.0090.00315.72
7.1.100.0070.00717.48
7.1.70.0030.00316.81
7.1.60.0030.00717.27
7.1.50.0170.00716.90
7.1.00.0000.08022.43
7.0.200.0030.01316.69
7.0.140.0070.06722.18
7.0.60.0070.07721.75
7.0.50.0030.04317.87
7.0.40.0030.04720.02
7.0.30.0430.06020.25
7.0.20.0270.03720.19
7.0.10.0070.04020.21
7.0.00.0100.08320.10
5.6.280.0000.07721.08
5.6.210.0070.06320.63
5.6.200.0070.08018.19
5.6.190.0170.05720.63
5.6.180.0030.07320.33
5.6.170.0330.07720.73
5.6.160.0100.06320.44
5.6.150.0100.08018.18
5.6.140.0030.07018.27
5.6.130.0130.04318.28
5.6.120.0070.04321.04
5.6.110.0170.06321.14
5.6.100.0100.08021.01
5.6.90.0170.07720.97
5.6.80.0070.05020.38
5.5.350.0270.08320.45
5.5.340.0100.06017.99
5.5.330.0000.07020.25
5.5.320.0300.03320.42
5.5.310.0230.08720.32
5.5.300.0030.08017.95
5.5.290.0030.04317.98
5.5.280.0030.07320.80
5.5.270.0130.07720.96
5.5.260.0170.07020.88
5.5.250.0070.07720.48
5.5.240.0000.06320.12
5.4.450.0470.04019.28
5.4.440.0230.03719.46
5.4.430.0730.07319.57
5.4.420.0630.04019.55
5.4.410.0670.03319.53
5.4.400.0300.04719.22
5.4.390.0970.03719.05
5.4.380.0830.06318.75
5.4.370.1030.07018.46
5.4.360.0900.05718.59
5.4.350.0870.06318.63
5.4.340.0730.05718.53
5.4.320.0070.04312.50
5.4.310.0090.03712.50
5.4.300.0060.04812.50
5.4.290.0040.04112.49
5.4.280.0060.03512.39
5.4.270.0050.03712.40
5.4.260.0040.04012.39
5.4.250.0120.03212.39
5.4.240.0080.03512.39
5.4.230.0030.04112.39
5.4.220.0080.03312.39
5.4.210.0040.03712.39
5.4.200.0090.03412.39
5.4.190.0040.04012.38
5.4.180.0040.04012.39
5.4.170.0050.03712.39
5.4.160.0070.03612.39
5.4.150.0040.04212.38
5.4.140.0050.04312.07
5.4.130.0070.03312.05
5.4.120.0090.03112.02
5.4.110.0030.03812.02
5.4.100.0040.03712.01
5.4.90.0060.03612.01
5.4.80.0040.03812.02
5.4.70.0040.03612.01
5.4.60.0090.03112.01
5.4.50.0060.03412.01
5.4.40.0060.03411.99
5.4.30.0080.03212.00
5.4.20.0030.03712.00
5.4.10.0040.03612.00
5.4.00.0060.03611.48
5.3.290.0120.03312.80
5.3.280.0090.03312.71
5.3.270.0060.03912.73
5.3.260.0080.03612.71
5.3.250.0020.04012.72
5.3.240.0050.03712.71
5.3.230.0080.03512.71
5.3.220.0090.03312.68
5.3.210.0060.03712.68
5.3.200.0050.03712.68
5.3.190.0060.03812.68
5.3.180.0090.03312.68
5.3.170.0090.03312.67
5.3.160.0050.03712.67
5.3.150.0070.03512.68
5.3.140.0090.03512.66
5.3.130.0090.04012.66
5.3.120.0040.04012.66
5.3.110.0080.03712.65
5.3.100.0070.03512.12
5.3.90.0010.04112.08
5.3.80.0050.03712.07
5.3.70.0060.03712.08
5.3.60.0050.04012.07
5.3.50.0060.03512.00
5.3.40.0080.03312.00
5.3.30.0040.03611.95
5.3.20.0050.03511.73
5.3.10.0050.03511.70
5.3.00.0070.03411.68
5.2.170.0040.0309.18
5.2.160.0080.0259.18
5.2.150.0040.0309.18
5.2.140.0070.0279.18
5.2.130.0040.0379.14
5.2.120.0030.0299.14
5.2.110.0050.0299.15
5.2.100.0080.0329.15
5.2.90.0070.0299.14
5.2.80.0050.0299.14
5.2.70.0050.0339.14
5.2.60.0050.0419.09
5.2.50.0100.0369.06
5.2.40.0030.0339.03
5.2.30.0040.0429.01
5.2.20.0060.0299.00
5.2.10.0060.0308.92
5.2.00.0050.0318.78
5.1.60.0060.0248.07
5.1.50.0060.0228.06
5.1.40.0050.0248.05
5.1.30.0040.0278.39
5.1.20.0060.0298.42
5.1.10.0040.0268.14
5.1.00.0080.0238.14
5.0.50.0060.0236.62
5.0.40.0050.0246.48
5.0.30.0050.0306.29
5.0.20.0030.0236.27
5.0.10.0040.0216.24
5.0.00.0020.0356.23
4.4.90.0020.0164.78
4.4.80.0030.0154.76
4.4.70.0050.0134.75
4.4.60.0030.0144.76
4.4.50.0030.0154.77
4.4.40.0050.0234.71
4.4.30.0010.0174.75
4.4.20.0040.0144.84
4.4.10.0050.0134.84
4.4.00.0010.0264.76
4.3.110.0030.0154.67
4.3.100.0040.0144.66
4.3.90.0030.0144.64
4.3.80.0020.0254.59
4.3.70.0050.0194.63
4.3.60.0030.0164.63
4.3.50.0030.0194.63
4.3.40.0030.0264.54
4.3.30.0020.0193.29
4.3.20.0010.0223.26
4.3.10.0020.0153.22
4.3.00.0000.01715.92

preferences:
41.52 ms | 400 KiB | 5 Q