3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface A { public function a() : self; } class B implements A { public function a() : self { return $this; } } $b = new B();

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.0080.00818.41
8.3.50.0150.00016.35
8.3.40.0090.00618.51
8.3.30.0120.00318.59
8.3.20.0040.00420.34
8.3.10.0000.00923.70
8.3.00.0030.00623.48
8.2.180.0090.00918.41
8.2.170.0090.00622.96
8.2.160.0060.00920.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00321.18
8.2.120.0040.00426.35
8.2.110.0060.00321.05
8.2.100.0040.00817.93
8.2.90.0030.00519.21
8.2.80.0050.00317.97
8.2.70.0030.00617.50
8.2.60.0000.00817.93
8.2.50.0040.00418.09
8.2.40.0030.00622.13
8.2.30.0000.00719.49
8.2.20.0030.00517.61
8.2.10.0040.00417.92
8.2.00.0000.00718.01
8.1.280.0070.01125.92
8.1.270.0030.00622.04
8.1.260.0050.00328.09
8.1.250.0040.00428.09
8.1.240.0030.00722.40
8.1.230.0120.00019.16
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0030.00618.50
8.1.160.0050.00220.69
8.1.150.0030.00620.66
8.1.140.0050.00319.60
8.1.130.0040.00417.69
8.1.120.0000.00717.46
8.1.110.0000.00717.41
8.1.100.0000.00717.45
8.1.90.0040.00417.38
8.1.80.0000.00717.36
8.1.70.0040.00417.38
8.1.60.0040.00417.58
8.1.50.0050.00317.50
8.1.40.0000.00817.39
8.1.30.0030.00517.47
8.1.20.0040.00417.69
8.1.10.0040.00417.54
8.1.00.0050.00317.33
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0000.00818.47
8.0.270.0050.00217.23
8.0.260.0070.00017.23
8.0.250.0050.00316.81
8.0.240.0070.00016.92
8.0.230.0030.00316.92
8.0.220.0050.00216.89
8.0.210.0000.00716.75
8.0.200.0040.00416.85
8.0.190.0040.00416.95
8.0.180.0040.00416.93
8.0.170.0040.00416.96
8.0.160.0050.00316.80
8.0.150.0040.00416.72
8.0.140.0000.00716.78
8.0.130.0090.00013.23
8.0.120.0000.00816.73
8.0.110.0040.00416.87
8.0.100.0040.00416.74
8.0.90.0040.00416.94
8.0.80.0000.01716.88
8.0.70.0080.00016.90
8.0.60.0050.00316.95
8.0.50.0040.00416.99
8.0.30.0100.00717.02
8.0.20.0100.00917.40
8.0.10.0000.00716.96
8.0.00.0100.00816.83
7.4.330.0020.00216.63
7.4.320.0030.00316.49
7.4.300.0080.00016.54
7.4.290.0040.00416.56
7.4.280.0000.00816.39
7.4.270.0070.00016.49
7.4.260.0040.00416.57
7.4.250.0060.00616.60
7.4.240.0040.00416.64
7.4.230.0000.00716.39
7.4.220.0120.00916.69
7.4.210.0100.01016.59
7.4.200.0040.00416.52
7.4.160.0100.00716.60
7.4.150.0130.00317.40
7.4.140.0110.01117.86
7.4.130.0170.00616.54
7.4.120.0080.01016.52
7.4.110.0100.00716.36
7.4.100.0080.01216.20
7.4.90.0160.00616.36
7.4.80.0150.00619.39
7.4.70.0030.01416.36
7.4.60.0070.01016.50
7.4.50.0030.01016.29
7.4.40.0060.00916.44
7.4.30.0060.01216.55
7.4.10.0060.01314.90
7.4.00.0060.01114.91
7.3.330.0050.00313.03
7.3.320.0030.00313.16
7.3.310.0050.00216.14
7.3.300.0030.00316.25
7.3.290.0090.00716.23
7.3.280.0090.00616.28
7.3.270.0050.01717.40
7.3.260.0120.00916.38
7.3.240.0130.00716.37
7.3.230.0150.00316.39
7.3.210.0140.00316.55
7.3.200.0070.01019.39
7.3.190.0150.00616.46
7.3.180.0070.01316.29
7.3.170.0140.00516.36
7.3.160.0150.00616.24
7.3.130.0060.00614.72
7.3.120.0120.00314.81
7.3.110.0070.01114.70
7.3.100.0030.01014.63
7.3.90.0030.01014.94
7.3.80.0100.00314.86
7.3.70.0080.00314.77
7.3.60.0110.00314.77
7.3.50.0040.00414.75
7.3.40.0120.00614.56
7.3.30.0030.00914.80
7.3.20.0100.00316.66
7.3.10.0060.00416.55
7.3.00.0030.01016.47
7.2.330.0140.00316.39
7.2.320.0170.00316.31
7.2.310.0070.01016.47
7.2.300.0070.01016.68
7.2.290.0030.01816.66
7.2.260.0060.01314.65
7.2.250.0080.01115.11
7.2.240.0070.00714.82
7.2.230.0030.01014.85
7.2.220.0060.00314.97
7.2.210.0080.00814.58
7.2.200.0070.01014.88
7.2.190.0000.01514.77
7.2.180.0140.00315.01
7.2.170.0100.00714.77
7.2.160.0100.00314.46
7.2.150.0000.01316.83
7.2.140.0040.01116.76
7.2.130.0050.00816.67
7.2.120.0080.00816.65
7.2.110.0100.00316.70
7.2.100.0050.01116.67
7.2.90.0030.01316.73
7.2.80.0060.00616.77
7.2.70.0060.00716.80
7.2.60.0050.01016.56
7.2.50.0060.00816.72
7.2.40.0030.01116.46
7.2.30.0070.00816.84
7.2.20.0050.00616.89
7.2.10.0090.00816.72
7.2.00.0090.00617.65
7.1.330.0030.01015.83
7.1.320.0040.00915.68
7.1.310.0030.00615.54
7.1.300.0120.00315.46
7.1.290.0090.00915.47
7.1.280.0030.01015.74
7.1.270.0090.00615.64
7.1.260.0090.00015.61
7.1.250.0030.01115.64
7.1.240.0000.00915.60
7.1.230.0090.00315.51
7.1.220.0000.01315.67
7.1.210.0040.00815.75
7.1.200.0040.00915.53
7.1.190.0070.01015.42
7.1.180.0100.00315.82
7.1.170.0030.01015.56
7.1.160.0060.00915.80
7.1.150.0080.00415.36
7.1.140.0040.00715.59
7.1.130.0050.00515.50
7.1.120.0030.00915.50
7.1.110.0000.01015.70
7.1.100.0050.00816.82
7.1.90.0000.01515.78
7.1.80.0100.00315.30
7.1.70.0030.00716.22
7.1.60.0030.01617.47
7.1.50.0030.00916.11
7.1.40.0000.01115.82
7.1.30.0120.00315.42
7.1.20.0000.00915.79
7.1.10.0030.01115.64
7.1.00.0090.03718.98
7.0.330.0070.00715.45
7.0.320.0100.00315.16
7.0.310.0030.01315.02
7.0.300.0030.00715.25
7.0.290.0030.01415.32
7.0.280.0030.01015.00
7.0.270.0000.01015.16
7.0.260.0000.00815.00
7.0.250.0050.00515.28
7.0.240.0100.00315.29
7.0.230.0090.00315.21
7.0.220.0060.00615.22
7.0.210.0060.00615.36
7.0.200.0040.00516.00
7.0.190.0070.00315.49
7.0.180.0000.01115.22
7.0.170.0060.00615.31
7.0.160.0070.01015.20
7.0.150.0030.00615.29
7.0.140.0110.00415.29
7.0.130.0040.00815.17
7.0.120.0030.01015.43
7.0.110.0100.00715.23
7.0.100.0040.01215.32
7.0.90.0000.01214.91
7.0.80.0030.00915.25
7.0.70.0040.01115.48
7.0.60.0020.05218.54
7.0.50.0080.03716.46
7.0.40.0050.03016.85
7.0.30.0120.04716.75
7.0.20.0180.03616.72
7.0.10.0080.03016.77
7.0.00.0050.03916.73
5.6.400.0040.01114.15
5.6.390.0060.00614.10
5.6.380.0030.01413.97
5.6.370.0070.01013.96
5.6.360.0030.01114.40
5.6.350.0090.00314.06
5.6.340.0070.01014.34
5.6.330.0000.01514.35
5.6.320.0050.00314.06
5.6.310.0070.00713.96
5.6.300.0120.00314.16
5.6.290.0130.00013.94
5.6.280.0010.02117.51
5.6.270.0060.00914.25
5.6.260.0030.01214.27
5.6.250.0090.00914.16
5.6.240.0040.00414.37
5.6.230.0000.01414.36
5.6.220.0080.00814.10
5.6.210.0080.04517.28
5.6.200.0110.03516.10
5.6.190.0050.03217.31
5.6.180.0130.02717.25
5.6.170.0110.02317.27
5.6.160.0080.04817.26
5.6.150.0060.03916.10
5.6.140.0070.02616.17
5.6.130.0030.04916.18
5.6.120.0070.02217.60
5.6.110.0020.04317.62
5.6.100.0070.04717.54
5.6.90.0050.03917.66
5.6.80.0030.02717.12
5.6.70.0070.01013.77
5.6.60.0060.00813.85
5.6.50.0100.00313.86
5.6.40.0110.00414.14
5.6.30.0120.00314.20
5.6.20.0150.00014.01
5.6.10.0040.01113.98
5.6.00.0060.00613.82
5.5.380.0080.00513.93
5.5.370.0040.00413.98
5.5.360.0060.00913.85
5.5.350.1580.02217.26
5.5.340.0050.02515.98
5.5.330.0050.03117.39
5.5.320.0340.03217.10
5.5.310.0260.03717.21
5.5.300.0030.02715.95
5.5.290.0020.03015.93
5.5.280.0020.03817.43
5.5.270.0050.02817.22
5.5.260.0050.02717.44
5.5.250.0070.03017.38
5.5.240.0180.03917.04
5.5.230.0030.01313.82
5.5.220.0030.01313.93
5.5.210.0090.00314.14
5.5.200.0130.00314.00
5.5.190.0070.01013.74
5.5.180.0160.00513.98
5.5.170.0090.00614.11
5.5.160.0070.01013.79
5.5.150.0120.00814.18
5.5.140.0090.01214.02
5.5.130.0100.01014.02
5.5.120.0110.00813.95
5.5.110.0000.01513.96
5.5.100.0070.01114.25
5.5.90.0060.00613.86
5.5.80.0030.01013.90
5.5.70.0060.00314.07
5.5.60.0090.00313.74
5.5.50.0030.01013.76
5.5.40.0000.01213.85
5.5.30.0000.01413.95
5.5.20.0030.00914.21
5.5.10.0090.00614.03
5.5.00.0060.00613.59

preferences:
98.87 ms | 400 KiB | 5 Q