3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface A { public function a(): A; } class B implements A { public function a() { 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.0180.00416.88
8.3.50.0160.00521.11
8.3.40.0070.00718.71
8.3.30.0100.00718.58
8.3.20.0050.00320.39
8.3.10.0040.00421.77
8.3.00.0080.00023.66
8.2.180.0040.01118.04
8.2.170.0110.00422.96
8.2.160.0100.00719.38
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0060.00320.94
8.2.120.0040.00426.35
8.2.110.0070.00320.79
8.2.100.0040.00917.91
8.2.90.0000.00719.22
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0020.00517.91
8.2.50.0040.00418.09
8.2.40.0000.00722.12
8.2.30.0040.00419.41
8.2.20.0000.00717.52
8.2.10.0040.00417.98
8.2.00.0000.00717.89
8.1.280.0110.00725.92
8.1.270.0080.00022.14
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00322.34
8.1.230.0000.01118.97
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0040.00417.22
8.1.180.0080.00018.10
8.1.170.0000.00918.66
8.1.160.0040.00420.70
8.1.150.0000.00718.73
8.1.140.0050.00319.41
8.1.130.0000.00717.63
8.1.120.0080.00017.42
8.1.110.0000.00817.32
8.1.100.0070.00017.29
8.1.90.0050.00217.41
8.1.80.0070.00017.29
8.1.70.0000.00817.24
8.1.60.0040.00417.48
8.1.50.0000.00817.45
8.1.40.0070.00017.44
8.1.30.0080.00017.57
8.1.20.0000.00717.54
8.1.10.0030.00517.42
8.1.00.0040.00417.28
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.37
8.0.270.0030.00317.17
8.0.260.0030.00317.12
8.0.250.0070.00017.00
8.0.240.0030.00316.93
8.0.230.0030.00316.96
8.0.220.0000.00716.73
8.0.210.0000.00716.84
8.0.200.0070.00016.99
8.0.190.0060.00316.92
8.0.180.0000.00716.83
8.0.170.0050.00216.90
8.0.160.0040.00416.84
8.0.150.0030.00616.81
8.0.140.0040.00316.86
8.0.130.0030.00313.24
8.0.120.0040.00416.75
8.0.110.0040.00416.93
8.0.100.0040.00416.79
8.0.90.0000.00716.82
8.0.80.0040.01016.77
8.0.70.0000.00716.92
8.0.60.0070.00016.88
8.0.50.0030.00516.73
8.0.30.0060.01417.02
8.0.20.0120.00617.40
8.0.10.0030.00516.89
8.0.00.0130.00616.79
7.4.330.0000.00416.83
7.4.320.0030.00316.54
7.4.300.0000.00716.43
7.4.290.0000.00816.53
7.4.280.0000.00916.41
7.4.270.0030.00316.57
7.4.260.0030.00316.42
7.4.250.0000.00716.32
7.4.240.0080.00016.37
7.4.230.0070.00016.55
7.4.220.0170.00316.54
7.4.210.0040.01116.36
7.4.200.0040.00416.45
7.4.160.0140.00016.41
7.4.150.0090.00917.40
7.4.140.0130.01017.86
7.4.130.0120.00916.38
7.4.120.0130.00516.35
7.4.110.0080.00916.57
7.4.100.0090.00616.29
7.4.90.0070.01116.39
7.4.80.0070.01419.39
7.4.70.0030.01416.55
7.4.60.0060.00916.63
7.4.50.0090.00616.64
7.4.40.0070.01016.34
7.4.30.0030.01216.57
7.4.10.0090.00514.93
7.4.00.0060.00914.78
7.3.330.0000.00713.17
7.3.320.0030.00313.08
7.3.310.0030.00316.17
7.3.300.0050.00316.25
7.3.290.0100.00716.23
7.3.280.0070.00816.22
7.3.270.0060.01217.40
7.3.260.0060.01216.48
7.3.250.0080.00816.36
7.3.240.0070.00916.24
7.3.230.0060.01116.47
7.3.210.0040.01216.18
7.3.200.0150.00619.39
7.3.190.0030.01416.20
7.3.180.0100.01016.33
7.3.170.0160.00516.38
7.3.160.0040.01316.42
7.3.130.0100.00814.78
7.3.120.0030.01014.56
7.3.110.0110.00814.56
7.3.100.0050.00914.85
7.3.90.0100.00314.60
7.3.80.0050.00514.88
7.3.70.0090.00714.70
7.3.60.0080.00514.72
7.3.50.0020.00614.60
7.3.40.0090.00414.62
7.3.30.0070.00714.73
7.3.20.0030.01016.64
7.3.10.0050.01016.53
7.3.00.0040.00616.58
7.2.330.0030.01416.55
7.2.320.0070.01316.43
7.2.310.0200.00016.58
7.2.300.0060.01216.59
7.2.290.0090.00916.38
7.2.260.0060.01014.73
7.2.250.0020.01614.75
7.2.240.0030.01014.80
7.2.230.0100.00514.91
7.2.220.0040.01114.96
7.2.210.0050.00814.85
7.2.200.0040.01114.92
7.2.190.0050.00814.83
7.2.180.0040.00914.99
7.2.170.0100.00514.74
7.2.160.0050.00714.88
7.2.150.0030.01216.70
7.2.140.0090.00616.79
7.2.130.0020.01016.64
7.2.120.0080.00316.87
7.2.110.0090.00516.88
7.2.100.0030.01016.67
7.2.90.0070.00716.64
7.2.80.0050.01116.84
7.2.70.0030.01216.72
7.2.60.0060.00916.63
7.2.50.0020.01316.78
7.2.40.0080.01016.69
7.2.30.0080.00616.70
7.2.20.0060.00616.70
7.2.10.0070.00616.74
7.2.00.0000.01117.39
7.1.330.0040.00715.61
7.1.320.0080.00515.47
7.1.310.0110.00415.62
7.1.300.0040.00915.60
7.1.290.0030.00615.69
7.1.280.0040.01015.64
7.1.270.0030.00615.58
7.1.260.0020.00715.59
7.1.250.0070.00515.61
7.1.240.0020.01115.58
7.1.230.0030.01415.63
7.1.220.0000.01215.55
7.1.210.0040.01015.47
7.1.200.0060.01315.52
7.1.190.0060.01015.51
7.1.180.0090.00615.63
7.1.170.0030.01015.53
7.1.160.0050.01015.53
7.1.150.0050.00515.54
7.1.140.0030.00715.60
7.1.130.0110.00215.43
7.1.120.0060.01015.69
7.1.110.0050.00515.54
7.1.100.0020.01116.46
7.1.90.0060.00615.61
7.1.80.0050.00815.55
7.1.70.0030.00615.96
7.1.60.0060.01216.79
7.1.50.0110.00616.03
7.1.40.0040.00615.73
7.1.30.0050.00915.57
7.1.20.0040.00915.67
7.1.10.0110.00315.65
7.1.00.0080.02817.96
7.0.330.0060.00915.10
7.0.320.0060.00615.34
7.0.310.0070.00615.33
7.0.300.0100.00315.18
7.0.290.0070.00515.24
7.0.280.0080.00215.08
7.0.270.0080.00615.15
7.0.260.0040.00715.26
7.0.250.0050.00815.19
7.0.240.0060.00715.29
7.0.230.0000.01215.18
7.0.220.0030.00815.19
7.0.210.0050.01315.19
7.0.200.0040.00815.60
7.0.190.0030.00915.16
7.0.180.0050.00815.07
7.0.170.0070.00515.35
7.0.160.0060.00515.25
7.0.150.0040.00615.20
7.0.140.0020.01015.28
7.0.130.0030.01015.26
7.0.120.0050.00915.28
7.0.110.0040.00515.30
7.0.100.0070.00515.09
7.0.90.0010.01015.23
7.0.80.0060.00615.22
7.0.70.0020.01315.36
7.0.60.0070.03017.36
7.0.50.0050.01816.29
7.0.40.0080.02615.55
7.0.30.0100.02715.51
7.0.20.0060.02215.57
7.0.10.0060.03215.45
7.0.00.0050.02315.54
5.6.400.0060.00314.24
5.6.390.0080.00514.04
5.6.380.0050.00713.96
5.6.370.0080.00714.32
5.6.360.0070.00513.94
5.6.350.0050.00914.06
5.6.340.0050.00714.25
5.6.330.0080.00614.29
5.6.320.0020.01314.01
5.6.310.0030.01313.98
5.6.300.0060.00414.26
5.6.290.0030.00613.99
5.6.280.0060.01516.39
5.6.270.0050.00814.14
5.6.260.0030.00614.08
5.6.250.0030.00914.10
5.6.240.0030.00714.23
5.6.230.0020.01014.10
5.6.220.0080.00514.07
5.6.210.0050.02116.29
5.6.200.0070.03215.35
5.6.190.0100.02916.20
5.6.180.0140.02816.31
5.6.170.0160.02216.27
5.6.160.0100.03116.25
5.6.150.0060.02515.41
5.6.140.0030.02015.32
5.6.130.0020.02315.45
5.6.120.0020.03616.28
5.6.110.0060.02916.40
5.6.100.0060.02116.35
5.6.90.0100.02616.42
5.6.80.0060.03116.15
5.6.70.0020.01013.92
5.6.60.0030.01013.98
5.6.50.0060.00613.99
5.6.40.0080.00414.02
5.6.30.0030.01113.88
5.6.20.0030.01213.79
5.6.10.0070.00714.00
5.6.00.0050.00713.93
5.5.380.0050.00814.26
5.5.370.0070.00514.25
5.5.360.0050.00713.86
5.5.350.1450.01616.20
5.5.340.0060.02315.27
5.5.330.0050.03216.20
5.5.320.0200.03016.11
5.5.310.0120.01716.07
5.5.300.0050.03315.21
5.5.290.0060.01915.23
5.5.280.0070.01916.22
5.5.270.0040.03516.16
5.5.260.0090.02916.27
5.5.250.0050.02316.03
5.5.240.0120.02915.98
5.5.230.0060.00513.70
5.5.220.0030.01013.92
5.5.210.0050.00613.90
5.5.200.0100.00313.96
5.5.190.0080.00713.86
5.5.180.0010.01113.77
5.5.170.0120.00513.95
5.5.160.0070.00713.86
5.5.150.0090.00513.69
5.5.140.0040.01014.12
5.5.130.0070.00613.54
5.5.120.0090.00513.94
5.5.110.0030.01213.78
5.5.100.0070.00713.89
5.5.90.0060.01113.88
5.5.80.0000.01513.80
5.5.70.0060.00913.96
5.5.60.0060.00613.81
5.5.50.0040.00713.89
5.5.40.0050.00813.91
5.5.30.0050.00913.94
5.5.20.0020.01113.77
5.5.10.0030.00713.75
5.5.00.0050.00413.82

preferences:
66.96 ms | 401 KiB | 5 Q