3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test11 { public function test() { } } class Test12 extends Test11 { public function test($a = 1) { } } interface Test21 { public function test(); } class Test22 implements Test21 { public function test($a = 1) { } } interface Test31 { public function test(); } trait Test31Trait { public function test($a = 1) { } } class Test32 implements Test31 { use Test31Trait; } echo "WORKS!";

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.00718.43
8.3.50.0120.00321.27
8.3.40.0090.00918.85
8.3.30.0150.00019.04
8.3.20.0070.00020.09
8.3.10.0040.00422.09
8.3.00.0050.00322.38
8.2.180.0110.00316.32
8.2.170.0040.01122.96
8.2.160.0140.00019.04
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0030.01026.16
8.2.120.0090.00019.66
8.2.110.0060.00322.25
8.2.100.0000.01119.32
8.2.90.0000.00718.98
8.2.80.0050.00317.97
8.2.70.0030.00617.38
8.2.60.0030.00617.91
8.2.50.0050.00318.07
8.2.40.0000.00718.03
8.2.30.0000.00818.00
8.2.20.0040.00417.51
8.2.10.0040.00417.54
8.2.00.0030.00617.60
8.1.280.0190.00325.92
8.1.270.0040.00422.11
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00624.01
8.1.230.0080.00418.97
8.1.220.0030.00517.74
8.1.210.0090.00018.77
8.1.200.0000.00917.23
8.1.190.0040.00417.51
8.1.180.0040.00418.62
8.1.170.0090.00018.27
8.1.160.0000.00722.13
8.1.150.0060.00318.51
8.1.140.0040.00417.43
8.1.130.0000.00717.82
8.1.120.0070.00017.39
8.1.110.0000.00817.45
8.1.100.0070.00017.38
8.1.90.0000.00717.42
8.1.80.0030.00317.38
8.1.70.0050.00317.34
8.1.60.0000.00817.39
8.1.50.0000.00717.48
8.1.40.0030.00617.43
8.1.30.0040.00417.50
8.1.20.0030.00617.51
8.1.10.0000.00817.43
8.1.00.0000.00817.42
8.0.300.0100.00018.77
8.0.290.0000.00817.18
8.0.280.0000.00718.31
8.0.270.0030.00317.10
8.0.260.0000.00616.81
8.0.250.0040.00416.87
8.0.240.0050.00316.76
8.0.230.0000.00716.95
8.0.220.0040.00416.86
8.0.210.0030.00316.90
8.0.200.0030.00316.88
8.0.190.0030.00316.90
8.0.180.0040.00416.93
8.0.170.0040.00416.80
8.0.160.0070.00016.83
8.0.150.0000.00816.80
8.0.140.0040.00416.79
8.0.130.0050.00013.29
8.0.120.0070.00016.72
8.0.110.0040.00416.74
8.0.100.0050.00316.69
8.0.90.0070.00016.88
8.0.80.0150.00616.83
8.0.70.0040.00416.82
8.0.60.0080.00016.86
8.0.50.0040.00416.80
8.0.30.0090.00917.09
8.0.20.0120.00717.40
8.0.10.0040.00416.81
8.0.00.0110.00616.49
7.4.330.0000.00515.00
7.4.320.0000.00716.45
7.4.300.0030.00316.58
7.4.290.0000.00816.47
7.4.280.0070.00016.38
7.4.270.0040.00416.48
7.4.260.0000.00716.37
7.4.250.0050.00316.49
7.4.240.0030.00516.53
7.4.230.0000.00816.51
7.4.220.0140.00316.50
7.4.210.0020.01316.56
7.4.200.0000.00716.34
7.4.190.0000.00716.43
7.4.160.0110.00616.44
7.4.150.0120.00617.40
7.4.140.0070.01417.86
7.4.130.0130.00516.57
7.4.120.0120.00516.50
7.4.110.0200.00016.38
7.4.100.0070.01116.38
7.4.90.0030.01416.37
7.4.80.0070.01019.39
7.4.70.0060.01316.42
7.4.60.0200.00416.61
7.4.50.0030.00516.57
7.4.40.0110.00422.77
7.4.30.0090.00616.54
7.4.00.0110.00414.71
7.3.330.0050.00013.02
7.3.320.0050.00013.05
7.3.310.0000.00716.05
7.3.300.0000.00616.05
7.3.290.0110.00416.18
7.3.280.0100.00716.16
7.3.270.0060.01117.40
7.3.260.0120.00616.05
7.3.250.0120.00516.34
7.3.240.0060.01016.32
7.3.230.0030.01416.45
7.3.210.0080.00816.15
7.3.200.0060.01316.30
7.3.190.0100.01316.58
7.3.180.0100.00616.56
7.3.170.0100.00716.41
7.3.160.0090.01216.29
7.3.120.0090.00315.07
7.3.10.0060.00916.27
7.3.00.0040.01116.54
7.2.330.0130.00916.56
7.2.320.0030.01416.56
7.2.310.0040.01216.64
7.2.300.0080.00816.59
7.2.290.0070.01416.65
7.2.130.0040.00816.59
7.2.120.0100.00716.69
7.2.110.0120.00316.38
7.2.100.0070.01016.59
7.2.90.0060.00916.31
7.2.80.0130.01016.43
7.2.70.0180.01016.68
7.2.60.0170.00816.59
7.2.50.0160.00316.25
7.2.40.0070.01116.44
7.2.30.0130.00316.56
7.2.20.0160.00316.72
7.2.10.0140.00316.54
7.2.00.0080.00818.00
7.1.250.0120.00615.24
7.1.100.0040.00417.91
7.1.70.0040.00416.72
7.1.60.0000.01016.87
7.1.50.0100.00616.92
7.1.00.0030.03322.45
7.0.200.0100.01316.64
7.0.140.0100.06321.93
7.0.60.0000.08719.91
7.0.50.0100.06317.87
7.0.40.0070.07320.04
7.0.30.0270.06320.30
7.0.20.0130.04720.23
7.0.10.0230.08020.30
7.0.00.0030.05720.07
5.6.280.0070.07020.92
5.6.210.0100.07720.47
5.6.200.0030.04718.25
5.6.190.0000.04720.33
5.6.180.4230.03320.55
5.6.170.0230.08320.55
5.6.160.0070.04720.54
5.6.150.0030.05718.15
5.6.140.0070.08318.18
5.6.130.0100.04018.24
5.6.120.0000.05721.06
5.6.110.0170.07721.00
5.6.100.0100.08321.09
5.6.90.0200.07320.96
5.6.80.0100.03720.54
5.6.70.0230.06720.38
5.5.350.0070.07320.33
5.5.340.0000.04018.04
5.5.330.0070.06720.32
5.5.320.0300.07320.19
5.5.310.0330.07320.36
5.5.300.0000.06017.95
5.5.290.0130.03018.04
5.5.280.0100.07720.79
5.5.270.0130.03720.77
5.5.260.0100.05320.97
5.5.250.0070.08020.70
5.5.240.0170.06320.17
5.4.450.0530.04019.61
5.4.440.0700.05719.58
5.4.430.0170.05319.63
5.4.420.0170.07319.33
5.4.410.0170.04719.18
5.4.400.1330.04318.87
5.4.390.1070.05718.58
5.4.380.0170.06018.47
5.4.370.0300.04718.61
5.4.360.0270.05018.70
5.4.350.0270.05718.52
5.4.340.0270.05018.78
5.4.320.0050.04012.52
5.4.310.0050.04012.51
5.4.300.0070.04312.52
5.4.290.0090.04612.51
5.4.280.0080.03412.40
5.4.270.0060.04212.41
5.4.260.0000.08318.79
5.4.250.0100.07318.86
5.4.240.0100.06018.88
5.4.230.0030.05719.02
5.4.220.0030.06019.08
5.4.210.0070.05318.91
5.4.200.0170.06718.63
5.4.190.0130.05318.82
5.4.180.0100.05318.70
5.4.170.0070.05718.71
5.4.160.0100.06318.90
5.4.150.0100.05018.88
5.4.140.0100.04716.43
5.4.130.0130.07716.42
5.4.120.0030.05016.57
5.4.110.0030.05316.41
5.4.100.0100.04716.69
5.4.90.0070.05716.56
5.4.80.0100.05016.49
5.4.70.0030.05316.33
5.4.60.0070.05016.30
5.4.50.0170.05016.33
5.4.40.0070.05316.55
5.4.30.0200.03716.41
5.4.20.0170.04316.29
5.4.10.0130.07016.42
5.4.00.0070.05715.76
5.3.290.0100.04012.80
5.3.280.0070.05314.68
5.3.270.0000.06014.70
5.3.260.0070.05314.59
5.3.250.0100.04714.70
5.3.240.0030.05314.44
5.3.230.0070.07714.59
5.3.220.0070.07714.58
5.3.210.0170.05014.54
5.3.200.0130.06314.66
5.3.190.0130.05014.73
5.3.180.0100.05014.65
5.3.170.0130.06714.55
5.3.160.0030.05714.71
5.3.150.0170.06014.74
5.3.140.0070.05314.63
5.3.130.0100.05314.56
5.3.120.0170.04714.64
5.3.110.0170.05314.64
5.3.100.0100.07014.07
5.3.90.0100.07314.01
5.3.80.0100.04714.21
5.3.70.0100.06714.01
5.3.60.0070.05313.84
5.3.50.0070.04714.12
5.3.40.0200.04713.79
5.3.30.0070.05013.93
5.3.20.0100.04713.66
5.3.10.0030.05013.85
5.3.00.0070.05013.55
5.2.170.0100.05711.21
5.2.160.0000.04711.24
5.2.150.0170.04711.25
5.2.140.0000.05011.05
5.2.130.0030.05711.11
5.2.120.0030.04311.19
5.2.110.0000.04311.30
5.2.100.0070.04010.93
5.2.90.0130.04311.27
5.2.80.0030.06310.93
5.2.70.0030.04311.08
5.2.60.0130.05310.97
5.2.50.0070.04011.20
5.2.40.0100.03311.08
5.2.30.0100.04711.14
5.2.20.0230.04310.96
5.2.10.0070.04010.85
5.2.00.0030.04010.80
5.1.60.0100.0409.93
5.1.50.0070.03310.07
5.1.40.0000.04010.18
5.1.30.0070.03710.41
5.1.20.0070.03710.32
5.1.10.0070.03310.12
5.1.00.0100.03010.13
5.0.50.0100.0338.79
5.0.40.0030.0308.49
5.0.30.0070.0508.22
5.0.20.0030.0308.15
5.0.10.0070.0278.42
5.0.00.0100.0378.25
4.4.90.0070.0207.39
4.4.80.0070.0177.39
4.4.70.0070.0277.39
4.4.60.0070.0207.39
4.4.50.0030.0207.39
4.4.40.0070.0307.39
4.4.30.0070.0277.46
4.4.20.0030.0237.46
4.4.10.0000.0237.46
4.4.00.0000.0377.46
4.3.110.0000.0237.46
4.3.100.0100.0207.46
4.3.90.0000.0237.46
4.3.80.0000.0377.46
4.3.70.0130.0107.46
4.3.60.0030.0207.46
4.3.50.0070.0177.46
4.3.40.0070.0307.46
4.3.30.0000.0277.46
4.3.20.0000.0307.46
4.3.10.0030.0207.46
4.3.00.0000.0237.09

preferences:
42.71 ms | 401 KiB | 5 Q