3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface InterfaceWithMethod { function foo(); } trait SimpleTrait { function foo() { return __CLASS__; } } class ClassWithTraitAndInterface implements InterfaceWithMethod { use SimpleTrait; } echo ReflectionMethod::export(ClassWithTraitAndInterface::class, 'foo'); echo (new ReflectionMethod(ClassWithTraitAndInterface::class, 'foo'))->getPrototype();

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.00318.56
8.3.50.0140.00318.05
8.3.40.0100.00618.88
8.3.30.0110.00318.84
8.3.20.0060.00319.04
8.3.10.0030.00621.60
8.3.00.0080.00020.64
8.2.180.0130.01016.50
8.2.170.0070.01422.96
8.2.160.0030.01020.38
8.2.150.0080.00024.18
8.2.140.0110.00724.66
8.2.130.0070.00026.16
8.2.120.0070.00021.07
8.2.110.0030.00720.52
8.2.100.0000.01117.91
8.2.90.0000.00819.13
8.2.80.0060.00317.97
8.2.70.0000.00817.50
8.2.60.0050.00317.80
8.2.50.0040.00418.10
8.2.40.0060.00320.59
8.2.30.0030.00619.24
8.2.20.0000.00718.12
8.2.10.0000.00717.97
8.2.00.0040.00417.82
8.1.280.0040.01125.92
8.1.270.0040.00423.84
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0110.01123.77
8.1.230.0040.00923.83
8.1.220.0080.00017.74
8.1.210.0050.00518.77
8.1.200.0030.00617.35
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0000.00818.79
8.1.160.0040.00418.83
8.1.150.0050.00320.27
8.1.140.0000.00819.57
8.1.130.0000.00720.73
8.1.120.0000.00717.45
8.1.110.0030.00617.38
8.1.100.0000.00817.40
8.1.90.0050.00317.45
8.1.80.0000.00717.26
8.1.70.0000.00717.45
8.1.60.0050.00317.55
8.1.50.0050.00317.47
8.1.40.0060.00317.53
8.1.30.0000.00817.55
8.1.20.0040.00417.46
8.1.10.0000.00817.46
8.1.00.0040.00417.48
8.0.300.0000.00720.27
8.0.290.0000.00816.88
8.0.280.0030.00318.36
8.0.270.0040.00416.89
8.0.260.0000.00617.25
8.0.250.0040.00417.07
8.0.240.0000.00817.04
8.0.230.0080.00316.97
8.0.220.0000.00716.93
8.0.210.0000.00716.93
8.0.200.0040.00416.93
8.0.190.0000.00817.03
8.0.180.0000.00716.88
8.0.170.0000.00716.98
8.0.160.0000.00716.98
8.0.150.0040.00416.85
8.0.140.0040.00416.83
8.0.130.0030.00613.47
8.0.120.0050.00316.86
8.0.110.0040.00417.08
8.0.100.0000.00716.85
8.0.90.0000.00716.76
8.0.80.0100.00717.02
8.0.70.0000.00716.93
8.0.60.0040.00417.07
8.0.50.0040.00416.87
8.0.30.0100.00917.17
8.0.20.0140.00717.40
8.0.10.0030.00516.86
8.0.00.0100.00716.70
7.4.330.0050.00015.55
7.4.320.0060.00016.52
7.4.300.0000.00616.36
7.4.290.0000.00616.45
7.4.280.0040.00416.54
7.4.270.0000.00616.59
7.4.260.0100.00016.29
7.4.250.0030.00316.40
7.4.240.0070.00316.54
7.4.230.0080.00016.36
7.4.220.0100.00716.59
7.4.210.0030.01216.48
7.4.200.0070.00016.38
7.4.160.0130.00516.56
7.4.150.0000.01817.40
7.4.140.0100.00717.86
7.4.130.0080.01016.37
7.4.120.0110.01016.54
7.4.110.0070.01416.37
7.4.100.0090.00816.42
7.4.90.0100.00716.59
7.4.80.0130.01019.39
7.4.70.0030.01316.32
7.4.60.0040.01116.59
7.4.50.0070.00716.23
7.4.40.0070.00716.68
7.4.30.0080.00816.62
7.4.00.0100.00615.01
7.3.330.0030.00313.13
7.3.320.0030.00313.20
7.3.310.0000.00716.00
7.3.300.0050.00216.22
7.3.290.0090.00916.19
7.3.280.0080.01016.16
7.3.270.0090.00917.40
7.3.260.0100.01316.17
7.3.250.0130.00716.22
7.3.240.0110.00816.47
7.3.230.0120.00616.39
7.3.210.0100.00716.36
7.3.200.0140.00316.06
7.3.190.0060.01116.30
7.3.180.0090.00616.22
7.3.170.0130.00316.54
7.3.160.0130.00316.20
7.3.10.0000.01516.37
7.3.00.0100.00616.25
7.2.330.0100.01016.35
7.2.320.0090.01216.63
7.2.310.0060.01016.39
7.2.300.0100.00716.30
7.2.290.0070.01016.23
7.2.130.0080.00416.88
7.2.120.0070.00716.37
7.2.110.0040.01116.56
7.2.100.0000.01016.39
7.2.90.0060.00616.77
7.2.80.0090.00616.71
7.2.70.0070.00316.44
7.2.60.0100.00216.64
7.2.50.0070.00316.89
7.2.40.0080.00316.63
7.2.30.0030.00916.85
7.2.20.0070.00716.94
7.2.10.0000.00916.47
7.2.00.0080.00418.12
7.1.250.0030.01315.65
7.1.200.0060.00615.58
7.1.100.0030.01317.91
7.1.70.0030.00317.12
7.1.60.0050.00517.11
7.1.50.0000.01016.53
7.1.40.0000.01016.51
7.1.30.0030.01016.54
7.1.20.0040.00716.62
7.1.10.0000.00816.57
7.1.00.0040.00416.55
7.0.200.0000.00816.65
7.0.190.0030.00616.73
7.0.180.0000.00816.18
7.0.170.0000.00816.44
7.0.160.0000.00816.23
7.0.150.0080.00016.32
7.0.140.0030.00616.05
7.0.130.0000.00716.26
7.0.120.0030.00716.36
7.0.110.0000.00816.31
7.0.100.0020.00516.40
7.0.90.0070.00416.32
7.0.80.0000.00816.26
7.0.70.0000.00716.06
7.0.60.0040.00415.85
7.0.50.0000.01016.38
7.0.40.0050.00315.29
7.0.30.0000.01015.29
7.0.20.0050.00215.29
7.0.10.0000.00815.29
7.0.00.0020.00515.29
5.6.300.0030.04420.81
5.6.290.0040.04220.87
5.6.280.0000.04320.96
5.6.270.0030.04420.80
5.6.260.0070.03721.05
5.6.250.0000.04620.93
5.6.240.0030.04620.92
5.6.230.0030.04320.85
5.6.220.0030.04320.79
5.6.210.0030.03920.59
5.6.200.0030.06420.98
5.6.190.0100.03721.02
5.6.180.0270.03820.95
5.6.170.0030.06620.82
5.6.160.0030.04320.82
5.6.150.0070.04120.94
5.6.140.0130.03520.69
5.6.130.0060.03820.82
5.6.120.0000.04520.81
5.6.110.0140.03720.97
5.6.100.0030.04520.90
5.6.90.0090.03420.83
5.6.80.0040.03920.36
5.6.70.0030.04320.23
5.6.60.0030.03820.35
5.6.50.0030.04120.20
5.6.40.0030.03920.37
5.6.30.0130.03320.23
5.6.20.0000.04420.20
5.6.10.0030.05720.17
5.6.00.0030.04020.25
5.5.380.0000.04217.55
5.5.370.0070.03417.47
5.5.360.0070.06817.50
5.5.350.0060.03417.51
5.5.340.0040.04217.70
5.5.330.0000.04518.13
5.5.320.0030.05118.18
5.5.310.0030.04218.01
5.5.300.0030.04417.83
5.5.290.0030.04118.02
5.5.280.0070.03918.06
5.5.270.0000.04717.69
5.5.260.0030.04818.02
5.5.250.0030.04317.98
5.5.240.0000.05017.47
5.5.230.0030.05217.37
5.5.220.0030.04517.40
5.5.210.0000.04517.50
5.5.200.0030.03817.48
5.5.190.0100.03517.36
5.5.180.0230.03617.20
5.5.160.0070.03317.43
5.5.150.0000.04117.21
5.5.140.0030.03817.44
5.5.130.0030.04017.48
5.5.120.0000.04017.20
5.5.110.0000.04017.34
5.5.100.0030.03917.32
5.5.90.0030.04017.31
5.5.80.0030.05417.11
5.5.70.0000.05017.30
5.5.60.0000.05217.36
5.5.50.0030.03817.36
5.5.40.0030.03717.23
5.5.30.0000.04916.92
5.5.20.0030.04117.36
5.5.10.0060.04216.93
5.5.00.0030.04217.23
5.4.450.0000.05019.46
5.4.440.0040.03919.25
5.4.430.0000.04119.30
5.4.420.0000.04319.46
5.4.410.0000.04119.42
5.4.400.0000.04318.95
5.4.390.0030.04519.07
5.4.380.0000.04119.23
5.4.370.0030.03518.97
5.4.360.0000.04119.16
5.4.350.0030.03918.98
5.4.340.0070.03318.97
5.4.320.0030.03818.98
5.4.310.0070.03418.91
5.4.300.0030.05118.97
5.4.290.0070.03319.06
5.4.280.0000.04019.11
5.4.270.0000.03818.95
5.4.260.0100.05219.07
5.4.250.0040.03919.04
5.4.240.0000.03919.15
5.4.230.0030.04518.96
5.4.220.0060.04519.16
5.4.210.0030.03718.97
5.4.200.0030.04118.88
5.4.190.0000.04218.96
5.4.180.0070.03318.96
5.4.170.0030.03918.90
5.4.160.0060.03518.87
5.4.150.0070.03918.95
5.4.140.0030.04316.57
5.4.130.0060.03216.52
5.4.120.0000.04316.52
5.4.110.0000.04716.64
5.4.100.0030.03516.75
5.4.90.0070.03216.75
5.4.80.0000.04716.74
5.4.70.0370.03416.63
5.4.60.0030.04416.64
5.4.50.0000.04216.68
5.4.40.0000.04216.51
5.4.30.0000.04116.75
5.4.20.0030.03816.55
5.4.10.0000.04316.45
5.4.00.0060.03216.12
5.3.290.0030.03615.29
5.3.280.0170.03815.29
5.3.270.0060.03615.29
5.3.260.0060.03415.29
5.3.250.0000.04315.29
5.3.240.0070.04515.29
5.3.230.0070.03715.29
5.3.220.0030.04415.29
5.3.210.0100.03515.29
5.3.200.0030.04415.29
5.3.190.0000.04015.29
5.3.180.0060.03215.29
5.3.170.0030.04215.29
5.3.160.0030.03915.29
5.3.150.0030.04115.29
5.3.140.0000.04115.29
5.3.130.0000.04615.29
5.3.120.0030.04315.29
5.3.110.0030.04315.29
5.3.100.0090.03115.29
5.3.90.0000.04615.29
5.3.80.0070.03315.29
5.3.70.0070.03415.29
5.3.60.0000.04115.29
5.3.50.0140.03515.29
5.3.40.0060.03415.29
5.3.30.0000.03915.29
5.3.20.0030.03515.29
5.3.10.0030.03415.29
5.3.00.0060.03115.29
5.2.170.0030.03015.29
5.2.160.0030.02915.29
5.2.150.0030.03015.29
5.2.140.0030.03215.29
5.2.130.0030.03215.29
5.2.120.0030.03115.29
5.2.110.0030.02915.29
5.2.100.0030.02715.29
5.2.90.0070.02515.29
5.2.80.0000.03915.29
5.2.70.0060.03115.29
5.2.60.0000.03615.29
5.2.50.0000.04015.29
5.2.40.0090.02515.29
5.2.30.0000.03915.29
5.2.20.0000.03015.29
5.2.10.0040.02915.29
5.2.00.0030.02815.29
5.1.60.0000.02615.29
5.1.50.0030.02615.29
5.1.40.0030.02615.29
5.1.30.0040.02515.29
5.1.20.0000.03715.29
5.1.10.0000.02915.29
5.1.00.0030.03315.29
5.0.50.0030.02215.29
5.0.40.0030.01815.29
5.0.30.0030.02915.29
5.0.20.0040.02215.29
5.0.10.0060.01615.29
5.0.00.0030.03215.29
4.4.90.0000.01715.29
4.4.80.0000.01815.29
4.4.70.0040.01615.29
4.4.60.0030.01315.29
4.4.50.0000.02115.29
4.4.40.0000.02615.29
4.4.30.0000.01715.29
4.4.20.0060.01215.29
4.4.10.0030.01315.29
4.4.00.0000.02715.29
4.3.110.0060.01215.29
4.3.100.0060.00915.29
4.3.90.0000.01615.29
4.3.80.0000.02715.29
4.3.70.0000.01615.29
4.3.60.0030.01615.29
4.3.50.0000.01815.29
4.3.40.0140.03115.29
4.3.30.0000.01915.29
4.3.20.0070.01015.29
4.3.10.0030.01615.29
4.3.00.0040.01215.29

preferences:
59.67 ms | 400 KiB | 5 Q