3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait a { public function t() { print 123; } } trait b { use a; } class c { use b; } $c = new c(); $c->t();

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.0070.01118.34
8.3.50.0130.01022.05
8.3.40.0110.00418.72
8.3.30.0070.00718.93
8.3.20.0040.00420.16
8.3.10.0070.00021.73
8.3.00.0030.00619.51
8.2.180.0070.00718.54
8.2.170.0090.00622.96
8.2.160.0100.01019.46
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0060.00320.55
8.2.110.0030.00622.00
8.2.100.0090.00319.26
8.2.90.0040.00419.09
8.2.80.0050.00317.97
8.2.70.0030.00517.62
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0030.00618.09
8.2.30.0040.00418.09
8.2.20.0080.00017.74
8.2.10.0040.00418.06
8.2.00.0000.00817.68
8.1.280.0170.00325.92
8.1.270.0030.00622.24
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0060.00323.90
8.1.230.0070.00419.16
8.1.220.0050.00217.79
8.1.210.0040.00418.77
8.1.200.0030.00617.00
8.1.190.0080.00017.41
8.1.180.0040.00418.71
8.1.170.0060.00318.70
8.1.160.0040.00421.94
8.1.150.0040.00418.94
8.1.140.0000.00717.35
8.1.130.0030.00317.72
8.1.120.0040.00417.45
8.1.110.0040.00417.39
8.1.100.0070.00017.36
8.1.90.0070.00017.49
8.1.80.0040.00417.46
8.1.70.0000.00817.39
8.1.60.0050.00317.62
8.1.50.0000.00817.44
8.1.40.0000.00817.50
8.1.30.0000.00817.53
8.1.20.0080.00017.52
8.1.10.0040.00417.45
8.1.00.0060.00317.50
8.0.300.0000.00718.77
8.0.290.0070.00017.18
8.0.280.0030.00318.36
8.0.270.0080.00017.20
8.0.260.0060.00017.23
8.0.250.0030.00316.82
8.0.240.0070.00016.90
8.0.230.0000.00716.91
8.0.220.0000.00716.78
8.0.210.0030.00316.89
8.0.200.0080.00016.89
8.0.190.0000.00717.01
8.0.180.0070.00016.91
8.0.170.0040.00416.86
8.0.160.0030.00516.84
8.0.150.0030.00516.74
8.0.140.0040.00416.74
8.0.130.0000.00713.30
8.0.120.0040.00416.88
8.0.110.0050.00316.89
8.0.100.0000.00816.86
8.0.90.0040.00316.84
8.0.80.0100.00716.88
8.0.70.0090.00016.71
8.0.60.0040.00416.92
8.0.50.0000.00716.88
8.0.30.0050.01616.93
8.0.20.0100.00717.40
8.0.10.0000.00716.86
8.0.00.0130.00716.72
7.4.330.0030.00315.15
7.4.320.0000.00716.48
7.4.300.0000.00616.58
7.4.290.0000.00816.60
7.4.280.0000.00716.49
7.4.270.0000.00616.53
7.4.260.0000.00716.49
7.4.250.0060.00316.32
7.4.240.0040.00316.50
7.4.230.0070.00016.70
7.4.220.0060.01016.45
7.4.210.0100.01016.67
7.4.200.0000.00716.68
7.4.160.0030.01316.61
7.4.150.0130.01017.40
7.4.140.0080.00817.86
7.4.130.0090.00816.62
7.4.120.0150.00516.58
7.4.110.0090.00916.53
7.4.100.0100.01016.42
7.4.90.0110.00616.52
7.4.80.0210.00319.39
7.4.70.0120.00616.57
7.4.60.0130.00316.65
7.4.50.0000.00816.36
7.4.40.0140.00316.61
7.4.30.0100.01316.47
7.4.00.0040.00715.00
7.3.330.0000.00513.28
7.3.320.0030.00313.23
7.3.310.0000.00816.29
7.3.300.0000.00716.10
7.3.290.0070.00816.21
7.3.280.0070.01016.27
7.3.270.0090.01017.40
7.3.260.0060.01116.24
7.3.250.0140.00516.29
7.3.240.0130.00316.20
7.3.230.0100.00616.51
7.3.210.0090.00916.20
7.3.200.0090.00819.39
7.3.190.0030.01316.29
7.3.180.0100.00716.15
7.3.170.0180.00316.38
7.3.160.0100.00616.39
7.3.120.0070.00714.59
7.3.110.0090.00314.76
7.3.100.0060.00814.74
7.3.90.0030.00714.85
7.3.80.0040.00414.38
7.3.70.0050.00814.48
7.3.60.0000.01514.68
7.3.50.0080.00814.62
7.3.40.0000.01314.78
7.3.30.0100.00614.74
7.3.20.0040.01116.64
7.3.10.0120.00416.51
7.3.00.0060.00616.53
7.2.330.0120.00616.80
7.2.320.0060.01016.79
7.2.310.0000.01816.76
7.2.300.0040.01216.30
7.2.290.0060.01016.37
7.2.250.0070.01015.27
7.2.240.0090.00915.22
7.2.230.0000.01015.19
7.2.220.0000.01014.59
7.2.210.0000.01215.06
7.2.200.0040.01215.02
7.2.190.0030.01314.95
7.2.180.0050.00815.00
7.2.170.0060.01014.93
7.2.130.0060.00916.89
7.2.120.0000.01116.68
7.2.110.0120.00316.66
7.2.100.0080.00316.92
7.2.90.0150.00016.77
7.2.80.0000.01316.79
7.2.70.0000.01017.04
7.2.60.0040.01016.95
7.2.50.0030.01316.97
7.2.40.0030.00916.89
7.2.30.0090.00616.75
7.2.20.0070.00416.83
7.2.10.0030.01016.85
7.2.00.0100.00716.80
7.1.330.0070.00715.79
7.1.320.0040.00415.59
7.1.310.0000.01215.77
7.1.300.0070.00315.55
7.1.290.0040.00815.52
7.1.280.0040.00815.58
7.1.270.0070.00715.54
7.1.260.0000.01115.50
7.1.250.0040.00815.57
7.1.200.0000.01215.58
7.1.100.0040.01218.27
7.1.70.0000.00817.06
7.1.60.0070.01719.29
7.1.50.0290.00634.77
7.1.00.0030.07722.30
7.0.200.0740.00014.75
7.0.140.0100.07021.96
7.0.60.0030.07320.02
7.0.50.0070.06017.87
7.0.40.0070.08719.96
7.0.30.0200.03720.21
7.0.20.0300.08020.08
7.0.10.0030.06020.23
7.0.00.0030.05020.05
5.6.280.0030.07320.93
5.6.210.0070.04720.64
5.6.200.0070.03718.15
5.6.190.0100.08020.39
5.6.180.0300.06720.47
5.6.170.0300.06320.62
5.6.160.0100.08020.55
5.6.150.0070.04018.27
5.6.140.0070.06718.27
5.6.130.0100.03318.21
5.6.120.0100.07721.12
5.6.110.0070.05721.01
5.6.100.0070.08721.11
5.6.90.0270.04320.99
5.6.80.0100.05320.53
5.5.350.0130.08720.41
5.5.340.0130.07717.99
5.5.330.0030.07720.27
5.5.320.0370.06320.30
5.5.310.0230.03320.25
5.5.300.0070.03718.01
5.5.290.0100.04318.04
5.5.280.0030.09020.73
5.5.270.0170.07720.78
5.5.260.0070.07320.83
5.5.250.0070.05320.61
5.5.240.0070.07020.28
5.4.450.0200.05719.62
5.4.440.0730.04719.20
5.4.430.0130.05019.46
5.4.420.0100.06719.39
5.4.410.0100.06019.44
5.4.400.0070.06719.02
5.4.390.0170.04719.11
5.4.380.0230.05018.84
5.4.370.0130.05718.62
5.4.360.0230.05318.61
5.4.350.0130.05318.71
5.4.340.0100.05718.68
5.4.320.0200.04318.68
5.4.310.0170.04718.61
5.4.300.0100.03718.47
5.4.290.0100.04018.71
5.4.280.0070.04318.66
5.4.270.0200.04318.72
5.4.260.0130.04318.66
5.4.250.0270.03718.48
5.4.240.0400.05018.61
5.4.230.0200.03318.47
5.4.220.0170.05018.57
5.4.210.0130.05018.67
5.4.200.0230.05016.56
5.4.190.0100.04318.67
5.4.180.0230.04718.69
5.4.170.0130.04018.43
5.4.160.0130.04718.50
5.4.150.0130.04718.45
5.4.140.0200.04016.24
5.4.130.0170.03716.18
5.4.120.0230.05016.19
5.4.110.0100.05316.14
5.4.100.0200.04316.40
5.4.90.0130.04716.25
5.4.80.0100.05016.28
5.4.70.0130.04716.18
5.4.60.0130.03316.36
5.4.50.0170.03016.14
5.4.40.0170.05016.17
5.4.30.0130.04716.09
5.4.20.0170.05016.35
5.4.10.0100.04716.23
5.4.00.0070.05015.83
5.3.290.0030.05314.58
5.3.280.0130.04714.49
5.3.270.0170.04014.64
5.3.260.0070.05714.46
5.3.250.0200.05014.50
5.3.240.0200.04014.61
5.3.230.0170.06014.60
5.3.220.0270.04714.50
5.3.210.0200.06314.49
5.3.200.0300.03714.48
5.3.190.0500.04714.62
5.3.180.0200.04714.60
5.3.170.0300.05014.42
5.3.160.0200.04714.54
5.3.150.0170.05014.48
5.3.140.0270.05714.47
5.3.130.0200.04714.48
5.3.120.0170.05314.46
5.3.110.0100.05714.39
5.3.100.0170.04714.00
5.3.90.0200.04313.98
5.3.80.0170.04714.00
5.3.70.0100.05013.96
5.3.60.0030.05713.85
5.3.50.0100.05013.87
5.3.40.0130.05313.80
5.3.30.0300.04313.84
5.3.20.0070.04013.61
5.3.10.0270.03713.68
5.3.00.0130.04313.67
5.2.170.0070.03711.14
5.2.160.0030.03711.11
5.2.150.0070.04011.14
5.2.140.0100.04011.11
5.2.130.0100.03311.08
5.2.120.0170.03011.18
5.2.110.0170.03311.18
5.2.100.0100.02711.15
5.2.90.0030.03311.07
5.2.80.0070.03311.01
5.2.70.0100.03011.19
5.2.60.0100.03011.05
5.2.50.0030.03711.11
5.2.40.0030.03310.95
5.2.30.0000.03710.95
5.2.20.0000.04010.93
5.2.10.0070.03010.80
5.2.00.0070.03310.68
5.1.60.0000.02710.00
5.1.50.0000.03010.02
5.1.40.0030.0279.98
5.1.30.0000.03010.30
5.1.20.0070.02310.32
5.1.10.0000.03010.18
5.1.00.0030.02710.15
5.0.50.0030.0208.55
5.0.40.0030.0208.40
5.0.30.0000.0378.28
5.0.20.0070.0208.26
5.0.10.0030.0208.30
5.0.00.0030.0308.09
4.4.90.0030.0135.86
4.4.80.0000.0175.86
4.4.70.0000.0205.80
4.4.60.0000.0175.82
4.4.50.0000.0175.82
4.4.40.0000.0275.82
4.4.30.0030.0135.79
4.4.20.0030.0135.89
4.4.10.0030.0205.88
4.4.00.0000.0335.87
4.3.110.0000.0205.74
4.3.100.0030.0175.77
4.3.90.0000.0175.83
4.3.80.0030.0235.74
4.3.70.0000.0175.75
4.3.60.0070.0105.84
4.3.50.0000.0205.76
4.3.40.0030.0235.74
4.3.30.0000.0175.74
4.3.20.0000.0175.74
4.3.10.0000.0175.74
4.3.00.0070.0206.71

preferences:
49.12 ms | 401 KiB | 5 Q