3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait FooTrait { public function foo() { var_dump('qwer'); } } class Foo { use FooTrait; public function foo() { var_dump('asdf'); } } $foo = new Foo(); $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.0100.01018.30
8.3.50.0110.00416.61
8.3.40.0000.01418.76
8.3.30.0140.00320.34
8.3.20.0000.00720.20
8.3.10.0040.00422.09
8.3.00.0080.00022.43
8.2.180.0110.00716.50
8.2.170.0070.01422.96
8.2.160.0070.01020.35
8.2.150.0060.00325.66
8.2.140.0150.00324.66
8.2.130.0120.00326.16
8.2.120.0070.00019.54
8.2.110.0070.00421.07
8.2.100.0040.00817.78
8.2.90.0040.00417.75
8.2.80.0040.00417.97
8.2.70.0000.00817.93
8.2.60.0000.00719.44
8.2.50.0040.00418.10
8.2.40.0000.00718.34
8.2.30.0040.00417.96
8.2.20.0000.00717.54
8.2.10.0040.00417.54
8.2.00.0060.00319.53
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0040.00422.14
8.1.230.0040.00717.76
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.11
8.1.190.0060.00319.01
8.1.180.0000.00818.10
8.1.170.0050.00318.50
8.1.160.0080.00022.18
8.1.150.0040.00418.64
8.1.140.0050.00317.41
8.1.130.0030.00619.68
8.1.120.0000.00717.47
8.1.110.0000.00717.50
8.1.100.0060.00317.39
8.1.90.0000.00717.46
8.1.80.0000.00717.49
8.1.70.0000.00817.45
8.1.60.0050.00517.49
8.1.50.0080.00017.57
8.1.40.0050.00217.57
8.1.30.0040.00417.52
8.1.20.0030.00617.58
8.1.10.0030.00517.49
8.1.00.0050.00317.42
8.0.300.0000.00719.09
8.0.290.0070.00016.63
8.0.280.0030.00318.45
8.0.270.0030.00317.26
8.0.260.0030.00316.87
8.0.250.0070.00016.93
8.0.240.0040.00416.90
8.0.230.0000.00616.82
8.0.220.0000.00716.85
8.0.210.0000.00716.86
8.0.200.0000.00616.99
8.0.190.0000.00716.86
8.0.180.0070.00016.97
8.0.170.0040.00416.92
8.0.160.0000.00716.95
8.0.150.0000.00816.87
8.0.140.0000.00816.69
8.0.130.0000.00613.30
8.0.120.0030.00516.90
8.0.110.0000.00716.86
8.0.100.0050.00216.80
8.0.90.0070.00016.71
8.0.80.0090.00616.84
8.0.70.0040.00416.69
8.0.60.0040.00416.68
8.0.50.0040.00416.83
8.0.30.0150.01117.09
8.0.20.0100.01417.40
8.0.10.0000.00717.13
8.0.00.0100.00816.79
7.4.330.0050.00015.00
7.4.320.0060.00016.55
7.4.300.0070.00016.41
7.4.290.0070.00016.61
7.4.280.0030.00316.54
7.4.270.0030.00316.53
7.4.260.0040.00416.63
7.4.250.0000.00716.39
7.4.240.0030.00516.48
7.4.230.0050.00216.36
7.4.220.0080.00816.47
7.4.210.0050.00916.55
7.4.200.0080.00016.50
7.4.190.0000.00716.76
7.4.160.0120.00616.38
7.4.150.0150.00317.40
7.4.140.0120.00917.86
7.4.130.0100.00716.46
7.4.120.0090.00916.51
7.4.110.0030.01516.41
7.4.100.0100.01016.25
7.4.90.0130.00316.57
7.4.80.0120.00819.39
7.4.70.0150.00416.64
7.4.60.0130.00316.48
7.4.50.0080.00016.34
7.4.40.0090.00922.77
7.4.30.0140.00416.41
7.4.00.0110.00714.94
7.3.330.0020.00213.28
7.3.320.0000.00513.32
7.3.310.0000.00816.13
7.3.300.0030.00316.30
7.3.290.0030.01016.30
7.3.280.0080.01016.29
7.3.270.0180.00017.40
7.3.260.0120.00916.34
7.3.250.0070.01016.48
7.3.240.0090.00916.30
7.3.230.0060.01016.39
7.3.210.0110.01416.30
7.3.200.0060.01019.39
7.3.190.0110.00816.28
7.3.180.0030.01316.11
7.3.170.0060.01216.38
7.3.160.0090.00916.38
7.3.120.0070.01114.84
7.2.330.0130.00316.21
7.2.320.0100.00616.49
7.2.310.0090.00916.72
7.2.300.0100.00616.64
7.2.290.0100.00616.45
7.2.60.0060.00316.89
7.2.00.0060.00919.20
7.1.200.0000.00615.65
7.1.100.0050.00517.75
7.1.70.0040.00417.18
7.1.60.0110.01119.21
7.1.50.0070.01334.47
7.1.00.0030.03322.28
7.0.200.0070.00714.38
7.0.140.0000.07322.01
7.0.60.0030.09019.91
7.0.50.0100.05017.84
7.0.40.0130.08720.21
7.0.30.0400.04720.16
7.0.20.0200.08020.33
7.0.10.0000.06720.19
7.0.00.0100.04020.20
5.6.280.0030.07020.82
5.6.210.0130.07720.67
5.6.200.0100.08318.12
5.6.190.0030.06720.61
5.6.180.0330.06320.49
5.6.170.0400.07320.56
5.6.160.0070.04720.50
5.6.150.0000.04318.22
5.6.140.0030.04718.12
5.6.130.0130.04318.16
5.6.120.0070.08021.15
5.6.110.0070.09021.03
5.6.100.0070.08320.95
5.6.90.0170.07321.00
5.6.80.0030.06720.44
5.5.350.0070.08320.44
5.5.340.0130.07317.99
5.5.330.0070.04320.07
5.5.320.0370.07320.27
5.5.310.0430.06720.27
5.5.300.0130.07317.92
5.5.290.0100.07717.98
5.5.280.0100.08020.78
5.5.270.0130.03720.86
5.5.260.0130.06720.80
5.5.250.0070.07020.55
5.5.240.0300.07020.29
5.4.450.0770.08019.34
5.4.440.0570.05719.46
5.4.430.0130.05319.46
5.4.420.0670.06319.68
5.4.410.0930.06719.34
5.4.400.0770.05319.30
5.4.390.0730.05019.29
5.4.380.0200.05018.62
5.4.370.0100.04318.73
5.4.360.0370.05318.78
5.4.350.0060.05012.02
5.4.340.0110.04312.02
5.4.320.0060.05112.51
5.4.310.0060.03712.50
5.4.300.0080.04412.50
5.4.290.0070.05212.50
5.4.280.0070.03712.40
5.4.270.0040.04212.39
5.4.260.0060.04412.39
5.4.250.0030.05718.73
5.4.240.0070.05719.01
5.4.230.0100.05318.79
5.4.220.0100.06018.97
5.4.210.0030.05718.79
5.4.200.0000.06018.78
5.4.190.0030.06018.95
5.4.180.0030.06718.95
5.4.170.0030.05718.93
5.4.160.0170.06318.93
5.4.150.0100.07718.98
5.4.140.0100.04716.40
5.4.130.0100.04316.54
5.4.120.0100.05016.55
5.4.110.0130.04316.44
5.4.100.0170.04016.34
5.4.90.0070.05016.51
5.4.80.0100.04716.61
5.4.70.0030.05016.27
5.4.60.0170.04016.47
5.4.50.0070.04716.31
5.4.40.0170.03716.57
5.4.30.0200.05016.38
5.4.20.0100.04316.46
5.4.10.0070.05316.59
5.4.00.0030.05015.80
5.3.290.0050.04312.80
5.3.280.0130.06714.60
5.3.270.0100.05314.38
5.3.260.0070.06014.60
5.3.250.0070.05314.63
5.3.240.0030.05714.49
5.3.230.0170.04014.75
5.3.220.0130.04314.73
5.3.210.0100.04714.46
5.3.200.0130.04314.45
5.3.190.0030.05314.41
5.3.180.0100.04714.66
5.3.170.0170.04014.59
5.3.160.0100.04714.56
5.3.150.0030.05314.57
5.3.140.0070.04714.55
5.3.130.0030.05714.57
5.3.120.0130.04714.57
5.3.110.0030.05314.40
5.3.100.0000.05714.05
5.3.90.0070.05013.94
5.3.80.0130.04314.04
5.3.70.0070.04714.03
5.3.60.0030.05013.88
5.3.50.0000.06313.78
5.3.40.0130.04713.86
5.3.30.0030.05013.80
5.3.20.0000.06313.75
5.3.10.0130.04313.80
5.3.00.0100.06713.35
5.2.170.0030.04311.25
5.2.160.0030.04311.23
5.2.150.0000.05011.16
5.2.140.0070.04011.29
5.2.130.0100.04010.93
5.2.120.0070.04711.20
5.2.110.0070.04011.09
5.2.100.0070.04711.03
5.2.90.0130.05011.11
5.2.80.0070.04011.20
5.2.70.0030.04010.97
5.2.60.0070.04010.96
5.2.50.0200.03011.13
5.2.40.0070.05310.88
5.2.30.0100.03310.98
5.2.20.0100.04710.97
5.2.10.0000.04311.03
5.2.00.0030.06010.93
5.1.60.0030.0339.90
5.1.50.0130.0379.88
5.1.40.0070.0309.93
5.1.30.0170.02710.41
5.1.20.0030.03710.29
5.1.10.0030.0379.97
5.1.00.0070.0309.97
5.0.50.0030.0408.80
5.0.40.0000.0308.46
5.0.30.0070.0378.07
5.0.20.0000.0308.34
5.0.10.0000.0438.39
5.0.00.0100.0338.30
4.4.90.0030.0207.38
4.4.80.0000.0237.38
4.4.70.0030.0207.38
4.4.60.0070.0207.38
4.4.50.0030.0237.38
4.4.40.0030.0337.38
4.4.30.0030.0207.38
4.4.20.0070.0177.38
4.4.10.0000.0337.38
4.4.00.0030.0337.38
4.3.110.0030.0207.38
4.3.100.0000.0237.38
4.3.90.0030.0237.38
4.3.80.0000.0377.38
4.3.70.0000.0277.38
4.3.60.0000.0237.38
4.3.50.0030.0207.38
4.3.40.0000.0337.38
4.3.30.0070.0177.38
4.3.20.0000.0237.38
4.3.10.0000.0237.38
4.3.00.0130.0177.44

preferences:
67.25 ms | 400 KiB | 5 Q