3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace NSP { class A {} } namespace NSP1 { use NSP; use NSP\A as ALIAS; interface WithoutReturn { function a(); } interface WithReturn { function a(): NSP\A; } interface WithReturnAlias { function a(): ALIAS; } interface WithReturnCase { function a(): NSP\a; } class Valid { function a(): NSP\A { } } class Invalid { function a(): int { } } class WithoutReturnClass { function a() { } } class C extends Valid implements WithReturnAlias {} }

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.0110.00718.56
8.3.50.0090.00616.59
8.3.40.0080.00818.54
8.3.30.0040.01118.32
8.3.20.0080.00020.21
8.3.10.0080.00023.66
8.3.00.0070.00020.77
8.2.180.0090.00918.29
8.2.170.0100.00722.96
8.2.160.0070.00722.27
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00420.41
8.2.120.0070.00026.35
8.2.110.0040.00721.11
8.2.100.0070.00420.55
8.2.90.0030.00619.13
8.2.80.0080.00017.97
8.2.70.0050.00317.80
8.2.60.0000.00718.02
8.2.50.0080.00018.10
8.2.40.0040.00422.15
8.2.30.0040.00420.86
8.2.20.0040.00417.86
8.2.10.0040.00418.00
8.2.00.0040.00418.05
8.1.280.0230.00025.92
8.1.270.0040.00422.06
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0050.00322.27
8.1.230.0110.00019.14
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0000.00817.23
8.1.180.0050.00518.10
8.1.170.0050.00318.41
8.1.160.0030.00318.96
8.1.150.0080.00020.61
8.1.140.0030.00519.50
8.1.130.0030.00318.73
8.1.120.0070.00017.41
8.1.110.0060.00317.36
8.1.100.0050.00317.43
8.1.90.0050.00217.29
8.1.80.0030.00517.38
8.1.70.0040.00417.30
8.1.60.0090.00017.52
8.1.50.0020.00517.39
8.1.40.0080.00017.49
8.1.30.0050.00317.48
8.1.20.0060.00317.50
8.1.10.0050.00317.41
8.1.00.0050.00317.29
8.0.300.0040.00419.73
8.0.290.0000.00816.63
8.0.280.0070.00018.32
8.0.270.0030.00317.14
8.0.260.0030.00316.76
8.0.250.0000.00716.91
8.0.240.0040.00416.83
8.0.230.0030.00316.91
8.0.220.0000.00816.72
8.0.210.0040.00416.82
8.0.200.0040.00416.89
8.0.190.0000.00916.89
8.0.180.0040.00416.89
8.0.170.0000.00716.92
8.0.160.0000.00716.93
8.0.150.0020.00516.68
8.0.140.0070.00016.88
8.0.130.0060.00013.25
8.0.120.0000.00716.68
8.0.110.0070.00016.90
8.0.100.0040.00416.76
8.0.90.0000.00716.67
8.0.80.0120.00316.72
8.0.70.0000.00716.71
8.0.60.0000.00716.78
8.0.50.0000.00716.79
8.0.30.0140.00416.92
8.0.20.0130.00917.40
8.0.10.0000.00816.78
8.0.00.0090.01516.67
7.4.330.0050.00015.55
7.4.320.0030.00316.55
7.4.300.0070.00016.33
7.4.290.0070.00016.54
7.4.280.0040.00416.43
7.4.270.0070.00016.46
7.4.260.0070.00013.20
7.4.250.0030.00316.43
7.4.240.0040.00416.55
7.4.230.0000.00716.42
7.4.220.0130.01016.56
7.4.210.0090.00916.46
7.4.200.0060.00016.34
7.4.160.0060.00916.42
7.4.150.0070.01017.40
7.4.140.0090.01017.86
7.4.130.0120.00916.25
7.4.120.0130.01016.42
7.4.110.0060.01016.51
7.4.100.0130.01016.52
7.4.90.0040.01216.44
7.4.80.0030.01419.39
7.4.70.0100.00616.50
7.4.60.0060.01216.41
7.4.50.0040.01116.42
7.4.40.0080.00816.21
7.4.30.0040.01416.25
7.4.00.0000.01514.93
7.3.330.0000.00613.20
7.3.320.0050.00013.18
7.3.310.0040.00416.25
7.3.300.0000.00616.24
7.3.290.0080.00916.18
7.3.280.0060.01016.24
7.3.270.0030.01417.40
7.3.260.0090.00916.48
7.3.250.0110.01316.37
7.3.240.0140.00516.37
7.3.230.0100.01316.35
7.3.210.0120.00916.29
7.3.200.0030.01316.53
7.3.190.0060.00916.12
7.3.180.0140.01016.50
7.3.170.0080.00816.51
7.3.160.0070.01416.41
7.2.330.0060.01216.47
7.2.320.0100.01316.53
7.2.310.0060.00916.44
7.2.300.0130.00316.27
7.2.290.0080.01516.43
7.2.60.0070.00716.67
7.2.00.0030.01019.37
7.1.200.0000.00915.63
7.1.100.0030.00917.89
7.1.70.0060.00616.93
7.1.60.0400.01333.19
7.1.50.0430.01332.73
7.1.40.0370.01732.23
7.1.30.0330.02032.42
7.1.20.0430.01032.51
7.1.10.0270.01014.81
7.1.00.0330.00314.74
7.0.200.0230.01714.98
7.0.190.0330.00314.90
7.0.180.0330.00314.42
7.0.170.0230.01014.24
7.0.160.0230.01014.37
7.0.150.0300.00314.24
7.0.140.0070.01714.40
7.0.130.0270.01014.52
7.0.120.0270.00714.52
7.0.110.0230.01314.04
7.0.100.0030.01014.57
7.0.90.0270.00714.41
7.0.80.0300.00714.30
7.0.70.0300.00314.36
7.0.60.0230.01314.28
7.0.50.0230.01714.30
7.0.40.0230.01014.57
7.0.30.0330.00314.48
7.0.20.0300.00714.52
7.0.10.0270.01314.62
7.0.00.0270.01014.46

preferences:
31.3 ms | 401 KiB | 5 Q