3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I {} function foo() { return new class { public static function foo() { return new class implements I {}; } }; } var_dump(get_class(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.00716.63
8.3.50.0110.00921.21
8.3.40.0120.00318.44
8.3.30.0070.00718.57
8.3.20.0100.00320.21
8.3.10.0000.00823.48
8.3.00.0040.00423.48
8.2.180.0070.01416.63
8.2.170.0150.00422.96
8.2.160.0130.00320.18
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00521.04
8.2.120.0040.00426.35
8.2.110.0070.00322.11
8.2.100.0110.00017.93
8.2.90.0000.00819.02
8.2.80.0030.00517.97
8.2.70.0050.00517.50
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0040.00422.32
8.2.30.0030.00320.72
8.2.20.0000.00717.62
8.2.10.0000.00817.92
8.2.00.0050.00217.99
8.1.280.0110.00425.92
8.1.270.0000.00922.07
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00322.44
8.1.230.0030.00718.96
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0030.00618.62
8.1.160.0000.00820.73
8.1.150.0040.00418.77
8.1.140.0060.00619.38
8.1.130.0000.00817.57
8.1.120.0030.00417.44
8.1.110.0000.00717.27
8.1.100.0040.00417.38
8.1.90.0040.00417.45
8.1.80.0070.00017.39
8.1.70.0000.00717.41
8.1.60.0030.00617.52
8.1.50.0040.00417.45
8.1.40.0030.00517.44
8.1.30.0040.00417.60
8.1.20.0000.00717.59
8.1.10.0070.00017.52
8.1.00.0040.00817.42
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.42
8.0.270.0040.00417.16
8.0.260.0070.00017.24
8.0.250.0000.00716.96
8.0.240.0000.00716.84
8.0.230.0000.00816.93
8.0.220.0030.00316.87
8.0.210.0000.00716.90
8.0.200.0000.00816.91
8.0.190.0080.00016.91
8.0.180.0060.00616.95
8.0.170.0030.00516.97
8.0.160.0070.00016.82
8.0.150.0000.00816.91
8.0.140.0040.00416.82
8.0.130.0060.00013.32
8.0.120.0060.00316.80
8.0.110.0040.00416.72
8.0.100.0040.00416.76
8.0.90.0040.00416.72
8.0.80.0060.00916.74
8.0.70.0030.00516.69
8.0.60.0070.00016.84
8.0.50.0090.00016.69
8.0.30.0070.01117.20
8.0.20.0110.01017.40
8.0.10.0050.00316.99
8.0.00.0090.01016.67
7.4.330.0050.00016.66
7.4.320.0040.00416.49
7.4.300.0060.00016.48
7.4.290.0000.00716.51
7.4.280.0060.00316.47
7.4.270.0040.00416.61
7.4.260.0040.00416.49
7.4.250.0040.00416.41
7.4.240.0020.00516.44
7.4.230.0080.00016.61
7.4.220.0030.01416.48
7.4.210.0030.01016.41
7.4.200.0000.00716.32
7.4.160.0030.01316.35
7.4.150.0130.00417.40
7.4.140.0100.00717.86
7.4.130.0120.00816.68
7.4.120.0060.01616.48
7.4.110.0130.01016.39
7.4.100.0160.00316.28
7.4.90.0040.01316.60
7.4.80.0090.00619.39
7.4.70.0110.01416.42
7.4.60.0000.01616.41
7.4.50.0130.00316.25
7.4.40.0090.01216.34
7.4.30.0060.01616.50
7.4.10.0100.01015.00
7.4.00.0040.01114.73
7.3.330.0060.00013.11
7.3.320.0030.00313.30
7.3.310.0030.00316.28
7.3.300.0030.00316.16
7.3.290.0050.01016.28
7.3.280.0110.00816.28
7.3.270.0170.01517.40
7.3.260.0090.00916.20
7.3.250.0120.00816.39
7.3.240.0090.00916.31
7.3.230.0170.00016.53
7.3.210.0040.01216.24
7.3.200.0090.00916.57
7.3.190.0150.00916.41
7.3.180.0120.00416.28
7.3.170.0060.01216.45
7.3.160.0040.01116.23
7.3.130.0030.01614.80
7.3.120.0080.00914.73
7.3.110.0050.00814.71
7.3.100.0060.00714.63
7.3.90.0060.01114.67
7.3.80.0050.00914.73
7.3.70.0080.00614.88
7.3.60.0040.00914.73
7.3.50.0060.00914.80
7.3.40.0090.00614.80
7.3.30.0080.00814.75
7.3.20.0050.00916.61
7.3.10.0020.01116.65
7.3.00.0090.00616.48
7.2.330.0060.01616.59
7.2.320.0060.01016.68
7.2.310.0080.00916.58
7.2.300.0090.00916.25
7.2.290.0060.01116.64
7.2.260.0030.01615.00
7.2.250.0080.00915.05
7.2.240.0090.00814.93
7.2.230.0050.00914.94
7.2.220.0060.01014.98
7.2.210.0070.00914.92
7.2.200.0050.01014.79
7.2.190.0080.00514.87
7.2.180.0070.00514.69
7.2.170.0050.01014.83
7.2.160.0080.00614.85
7.2.150.0050.00816.76
7.2.140.0060.00716.71
7.2.130.0130.00416.84
7.2.120.0080.00616.75
7.2.110.0060.00916.70
7.2.100.0080.00316.77
7.2.90.0040.01116.77
7.2.80.0070.00616.64
7.2.70.0070.00616.84
7.2.60.0070.00616.71
7.2.50.0020.01516.82
7.2.40.0110.00516.76
7.2.30.0050.00816.81
7.2.20.0020.01416.83
7.2.10.0080.00516.75
7.2.00.0040.00617.65
7.1.330.0030.00815.69
7.1.320.0040.00815.63
7.1.310.0010.01315.48
7.1.300.0060.00815.64
7.1.290.0070.00715.49
7.1.280.0060.00915.59
7.1.270.0050.00815.63
7.1.260.0040.00915.63
7.1.250.0020.01115.62
7.1.240.0070.00715.65
7.1.230.0090.00315.73
7.1.220.0030.01115.82
7.1.210.0070.00415.76
7.1.200.0070.00515.78
7.1.190.0110.00415.55
7.1.180.0060.00615.39
7.1.170.0070.01315.63
7.1.160.0000.01215.58
7.1.150.0040.00815.48
7.1.140.0090.00315.51
7.1.130.0070.00715.79
7.1.120.0130.00015.65
7.1.110.0100.00715.60
7.1.100.0020.01116.90
7.1.90.0070.00715.66
7.1.80.0040.01215.68
7.1.70.0010.00916.29
7.1.60.0050.01017.64
7.1.50.0040.00916.21
7.1.40.0080.00415.61
7.1.30.0000.01515.68
7.1.20.0080.00815.60
7.1.10.0060.00915.62
7.1.00.0060.04119.07
7.0.330.0060.00615.33
7.0.320.0070.00715.31
7.0.310.0060.00915.06
7.0.300.0110.00415.11
7.0.290.0120.00315.33
7.0.280.0120.00015.29
7.0.270.0030.00615.25
7.0.260.0000.01415.15
7.0.250.0090.00614.94
7.0.240.0000.01615.06
7.0.230.0000.01215.27
7.0.220.0040.01115.08
7.0.210.0060.00615.31
7.0.200.0030.01015.03
7.0.190.0000.01315.13
7.0.180.0160.00015.27
7.0.170.0040.01215.21
7.0.160.0030.00515.38
7.0.150.0040.01115.14
7.0.140.0120.00615.37
7.0.130.0070.01015.38
7.0.120.0000.01315.40
7.0.110.0040.00815.30
7.0.100.0130.00015.16
7.0.90.0090.00315.26
7.0.80.0030.01015.49
7.0.70.0090.00315.50
7.0.60.0100.02317.61
7.0.50.0090.04116.67
7.0.40.0050.05016.72
7.0.30.0200.02716.75
7.0.20.0140.04616.85
7.0.10.0070.04016.72
7.0.00.0070.04316.67
5.6.400.0070.00714.16
5.6.390.0030.00714.07
5.6.380.0040.01113.87
5.6.370.0040.01114.26
5.6.360.0130.00714.38
5.6.350.0090.00614.13
5.6.340.0070.00714.06
5.6.330.0030.00914.29
5.6.320.0030.01413.75
5.6.310.0130.00014.07
5.6.300.0030.01214.25
5.6.290.0090.00914.21
5.6.280.0030.03017.40
5.6.270.0000.01313.88
5.6.260.0090.00614.22
5.6.250.0170.00014.13
5.6.240.0000.01514.14
5.6.230.0000.01514.27
5.6.220.0030.00914.29
5.6.210.0090.04117.45
5.6.200.0070.02816.23
5.6.190.0110.03617.38
5.6.180.0150.02217.27
5.6.170.0100.04817.28
5.6.160.0050.02617.25
5.6.150.0080.03916.17
5.6.140.0070.02016.10
5.6.130.0100.03816.21
5.6.120.0050.02917.56
5.6.110.0130.03817.57
5.6.100.0100.02917.66
5.6.90.0060.04017.53
5.6.80.0100.04017.14
5.6.70.0080.00013.88
5.6.60.0040.01114.15
5.6.50.0030.00913.94
5.6.40.0040.00814.11
5.6.30.0030.00614.11
5.6.20.0090.00314.02
5.6.10.0030.00913.95
5.6.00.0030.00614.03
5.5.380.0110.00814.11
5.5.370.0060.01014.19
5.5.360.0040.00813.56
5.5.350.1590.02017.10
5.5.340.0030.04716.01
5.5.330.0070.04717.04
5.5.320.0130.02717.12
5.5.310.0260.03517.11
5.5.300.0100.04116.05
5.5.290.0040.03116.01
5.5.280.0070.02117.41
5.5.270.0020.03117.25
5.5.260.0050.04717.49
5.5.250.0060.04317.20
5.5.240.0120.02717.02
5.5.230.0060.00614.07
5.5.220.0030.01313.84
5.5.210.0070.01013.91
5.5.200.0040.00714.08
5.5.190.0090.00314.05
5.5.180.0070.00713.55
5.5.170.0030.00913.98
5.5.160.0000.00813.81
5.5.150.0030.01013.71
5.5.140.0030.00613.80
5.5.130.0040.01113.84
5.5.120.0090.00313.79
5.5.110.0070.01013.87
5.5.100.0050.00313.57
5.5.90.0000.00913.94
5.5.80.0000.00914.02
5.5.70.0030.00913.67
5.5.60.0070.00713.77
5.5.50.0030.01013.51
5.5.40.0080.00313.87
5.5.30.0100.00313.96
5.5.20.0070.01014.15
5.5.10.0140.00313.96
5.5.00.0030.00913.58

preferences:
58.84 ms | 401 KiB | 5 Q