3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait FooTrait { public function foo() { echo('qwer'); } } class Foo2 { use FooTrait; public function foo() { echo('asdf'); } } $foo = new Foo2(); $foo->foo();

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.0140.00718.43
8.3.50.0130.00721.08
8.3.40.0070.01418.71
8.3.30.0140.00020.34
8.3.20.0070.00020.34
8.3.10.0040.00422.14
8.3.00.0080.00022.29
8.2.180.0210.00018.46
8.2.170.0090.00622.96
8.2.160.0100.00620.55
8.2.150.0030.00624.18
8.2.140.0120.00324.66
8.2.130.0110.00726.16
8.2.120.0000.00719.64
8.2.110.0030.00619.21
8.2.100.0080.00317.84
8.2.90.0050.00519.22
8.2.80.0030.00517.97
8.2.70.0080.00017.38
8.2.60.0040.00417.80
8.2.50.0060.00318.10
8.2.40.0040.00420.59
8.2.30.0020.00519.24
8.2.20.0080.00017.57
8.2.10.0000.00717.75
8.2.00.0070.00317.72
8.1.280.0100.01025.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00021.13
8.1.230.0030.00820.41
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0000.00817.22
8.1.190.0080.00417.00
8.1.180.0040.00418.10
8.1.170.0050.00318.49
8.1.160.0040.00418.80
8.1.150.0040.00420.14
8.1.140.0030.00517.41
8.1.130.0090.00017.89
8.1.120.0000.00717.40
8.1.110.0000.00717.48
8.1.100.0080.00017.44
8.1.90.0000.00717.31
8.1.80.0050.00217.37
8.1.70.0070.00017.51
8.1.60.0030.00617.60
8.1.50.0040.00417.53
8.1.40.0000.00817.40
8.1.30.0050.00317.50
8.1.20.0060.00317.58
8.1.10.0040.00417.59
8.1.00.0030.00617.52
8.0.300.0000.00718.77
8.0.290.0050.00216.75
8.0.280.0030.00318.38
8.0.270.0070.00017.30
8.0.260.0000.00616.88
8.0.250.0030.00316.86
8.0.240.0000.00816.91
8.0.230.0020.00516.98
8.0.220.0030.00316.90
8.0.210.0000.00716.89
8.0.200.0060.00017.02
8.0.190.0050.00216.82
8.0.180.0050.00216.79
8.0.170.0000.00716.84
8.0.160.0040.00416.94
8.0.150.0000.00716.84
8.0.140.0050.00316.82
8.0.130.0030.00313.29
8.0.120.0040.00416.85
8.0.110.0000.00716.86
8.0.100.0000.00717.00
8.0.90.0040.00416.76
8.0.80.0110.00316.89
8.0.70.0050.00216.83
8.0.60.0000.00816.89
8.0.50.0000.00816.89
8.0.30.0100.00817.15
8.0.20.0100.01517.40
8.0.10.0000.00717.01
8.0.00.0090.01116.71
7.4.330.0050.00015.00
7.4.320.0000.00616.36
7.4.300.0000.00616.56
7.4.290.0070.00016.40
7.4.280.0040.00416.58
7.4.270.0030.00616.65
7.4.260.0030.00316.54
7.4.250.0080.00016.54
7.4.240.0040.00316.52
7.4.230.0030.00316.69
7.4.220.0230.00016.57
7.4.210.0080.00716.59
7.4.200.0030.00316.59
7.4.190.0040.00416.78
7.4.160.0090.00916.53
7.4.150.0030.01417.40
7.4.140.0140.00617.86
7.4.130.0070.01016.55
7.4.120.0110.00616.54
7.4.110.0040.01516.59
7.4.100.0070.01716.69
7.4.90.0140.01016.38
7.4.80.0140.00419.39
7.4.70.0040.01316.48
7.4.60.0100.00616.49
7.4.50.0090.00016.25
7.4.40.0100.00722.77
7.4.30.0100.01016.57
7.4.00.0080.00815.07
7.3.330.0030.00313.19
7.3.320.0030.00313.21
7.3.310.0000.00816.09
7.3.300.0060.00016.24
7.3.290.0040.01116.24
7.3.280.0060.01016.22
7.3.270.0100.00717.40
7.3.260.0150.00816.48
7.3.250.0090.01016.46
7.3.240.0150.00316.57
7.3.230.0090.00616.39
7.3.210.0120.00616.34
7.3.200.0100.01019.39
7.3.190.0110.01116.24
7.3.180.0100.01016.32
7.3.170.0100.00616.48
7.3.160.0030.01316.57
7.3.120.0130.00314.81
7.3.110.0110.00614.39
7.3.100.0030.01014.70
7.3.90.0030.01014.36
7.3.80.0030.00814.67
7.3.70.0050.00514.71
7.3.60.0080.00814.68
7.3.50.0030.00914.66
7.3.40.0080.00514.45
7.3.30.0110.00414.78
7.3.20.0000.01616.50
7.3.10.0080.00316.51
7.3.00.0030.01016.56
7.2.330.0140.00316.68
7.2.320.0120.01016.68
7.2.310.0090.00916.26
7.2.300.0080.00816.51
7.2.290.0090.00916.74
7.2.250.0040.01414.82
7.2.240.0030.01015.14
7.2.230.0070.00715.11
7.2.220.0030.01014.86
7.2.210.0090.00314.89
7.2.200.0070.00714.79
7.2.190.0140.00315.01
7.2.180.0090.00915.12
7.2.170.0040.01115.08
7.2.130.0060.00616.82
7.2.120.0050.00516.98
7.2.110.0030.01016.95
7.2.100.0080.00416.84
7.2.90.0040.01117.02
7.2.80.0070.00716.85
7.2.70.0100.00316.36
7.2.60.0070.00716.75
7.2.50.0080.00316.78
7.2.40.0090.00616.73
7.2.30.0060.00917.04
7.2.20.0090.00316.95
7.2.10.0100.00616.89
7.2.00.0070.00617.99
7.1.330.0030.01015.80
7.1.320.0040.00815.37
7.1.310.0140.00015.68
7.1.300.0030.00815.73
7.1.290.0100.00315.34
7.1.280.0080.00815.68
7.1.270.0030.01315.73
7.1.260.0120.00315.90
7.1.250.0030.00915.75
7.1.100.0000.01117.94
7.1.70.0070.00417.13
7.1.60.0040.00819.21
7.1.50.0260.01034.70
7.1.00.0030.03322.44
7.0.200.0160.00314.82
7.0.140.0030.07321.98
7.0.60.0030.04719.90
7.0.50.0130.03017.95
7.0.40.0070.08320.14
7.0.30.0330.07720.34
7.0.20.0370.04720.09
7.0.10.0170.06020.45
7.0.00.0130.03320.29
5.6.280.0030.07320.78
5.6.210.0100.07020.75
5.6.200.0030.08318.15
5.6.190.0100.05020.50
5.6.180.0200.03720.39
5.6.170.0200.05320.54
5.6.160.0070.05020.52
5.6.150.0000.04718.12
5.6.140.0100.08018.17
5.6.130.0030.08018.16
5.6.120.0100.05720.96
5.6.110.0130.05021.18
5.6.100.0030.08321.04
5.6.90.0070.07721.10
5.6.80.0100.06320.39
5.6.70.0230.07320.52
5.5.350.0070.07020.39
5.5.340.0130.07717.92
5.5.330.0100.07720.13
5.5.320.0200.08020.31
5.5.310.0200.08320.35
5.5.300.0100.07718.01
5.5.290.0030.06318.05
5.5.280.0030.04720.74
5.5.270.0130.07720.83
5.5.260.0170.07020.96
5.5.250.0030.06020.69
5.5.240.0070.03720.24
5.4.450.1000.07019.45
5.4.440.0900.06719.63
5.4.430.0930.06019.60
5.4.420.0100.05319.38
5.4.410.0800.05019.40
5.4.400.0270.05718.87
5.4.390.0330.05318.70
5.4.380.0400.05318.46
5.4.370.0070.05718.62
5.4.360.0070.06018.84
5.4.350.0080.04612.02
5.4.340.0110.04212.02
5.4.320.0100.03212.50
5.4.310.0100.03612.50
5.4.300.0050.03712.50
5.4.290.0050.03812.50
5.4.280.0050.03512.39
5.4.270.0060.03812.40
5.4.260.0070.03712.39
5.4.250.0030.05719.09
5.4.240.0030.06718.94
5.4.230.0030.08018.80
5.4.220.0100.05318.80
5.4.210.0000.06318.79
5.4.200.0000.05718.89
5.4.190.0100.05318.83
5.4.180.0070.05018.74
5.4.170.0100.05318.83
5.4.160.0070.07019.09
5.4.150.0070.08018.73
5.4.140.0100.07016.35
5.4.130.0100.05716.55
5.4.120.0070.07316.34
5.4.110.0100.04716.48
5.4.100.0070.05016.33
5.4.90.0100.06016.38
5.4.80.0130.04716.59
5.4.70.0070.07316.40
5.4.60.0130.05716.46
5.4.50.0130.06716.40
5.4.40.0070.05016.42
5.4.30.0000.05316.30
5.4.20.0100.05716.47
5.4.10.0030.05316.61
5.4.00.0030.05016.00
5.3.290.0040.04012.80
5.3.280.0000.06014.61
5.3.270.0030.06714.62
5.3.260.0170.04314.63
5.3.250.0070.05314.64
5.3.240.0000.05714.49
5.3.230.0030.05714.66
5.3.220.0100.06714.41
5.3.210.0070.06014.43
5.3.200.0100.04714.45
5.3.190.0130.04714.27
5.3.180.0130.06714.56
5.3.170.0100.05314.56
5.3.160.0100.07014.57
5.3.150.0000.06314.57
5.3.140.0070.06014.57
5.3.130.0130.04714.33
5.3.120.0130.04714.47
5.3.110.0170.04314.39
5.3.100.0070.07014.07
5.3.90.0170.04013.85
5.3.80.0000.05713.91
5.3.70.0000.05313.89
5.3.60.0200.06014.02
5.3.50.0000.06013.84
5.3.40.0100.04713.95
5.3.30.0100.04313.82
5.3.20.0070.05013.72
5.3.10.0070.06313.66
5.3.00.0070.05013.53
5.2.170.0130.03711.25
5.2.160.0130.03311.14
5.2.150.0030.04311.23
5.2.140.0100.05010.89
5.2.130.0000.05311.21
5.2.120.0000.04711.25
5.2.110.0100.04311.00
5.2.100.0070.03711.03
5.2.90.0000.06010.98
5.2.80.0130.03311.24
5.2.70.0100.03710.99
5.2.60.0000.04711.06
5.2.50.0000.04311.03
5.2.40.0030.04310.89
5.2.30.0070.04010.85
5.2.20.0070.03710.96
5.2.10.0070.03711.03
5.2.00.0100.03710.71
5.1.60.0030.0539.95
5.1.50.0200.02310.23
5.1.40.0000.0379.88
5.1.30.0070.03310.41
5.1.20.0100.04010.42
5.1.10.0070.03310.30
5.1.00.0030.04010.09
5.0.50.0070.0278.56
5.0.40.0100.0208.44
5.0.30.0070.0408.13
5.0.20.0070.0278.17
5.0.10.0070.0238.39
5.0.00.0130.0438.34
4.4.90.0100.0137.38
4.4.80.0070.0177.38
4.4.70.0000.0237.38
4.4.60.0070.0177.38
4.4.50.0030.0207.38
4.4.40.0070.0337.38
4.4.30.0000.0237.38
4.4.20.0030.0237.38
4.4.10.0030.0207.38
4.4.00.0030.0437.38
4.3.110.0030.0207.38
4.3.100.0030.0307.38
4.3.90.0070.0177.38
4.3.80.0030.0307.38
4.3.70.0000.0277.38
4.3.60.0000.0237.38
4.3.50.0000.0277.38
4.3.40.0030.0307.38
4.3.30.0070.0177.38
4.3.20.0070.0177.38
4.3.10.0000.0237.38
4.3.00.0200.0176.25

preferences:
44.01 ms | 401 KiB | 5 Q