3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Lol { const TEST = 'Lol'; } class Foo { const TEST = 'Foo'; } class Bar {} var_dump((new Foo())::TEST); var_dump((new Bar())::TEST);

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.01018.30
8.3.50.0120.00316.26
8.3.40.0040.01418.71
8.3.30.0120.00318.73
8.3.20.0040.00420.21
8.3.10.0000.00821.65
8.3.00.0040.00420.95
8.2.180.0150.00418.54
8.2.170.0000.01522.96
8.2.160.0100.00322.08
8.2.150.0040.01224.18
8.2.140.0080.00024.66
8.2.130.0000.00722.26
8.2.120.0000.00726.35
8.2.110.0040.00420.52
8.2.100.0040.00817.91
8.2.90.0080.00019.23
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0050.00317.80
8.2.50.0030.00518.10
8.2.40.0000.00720.42
8.2.30.0040.00420.91
8.2.20.0000.01017.92
8.2.10.0040.00417.93
8.2.00.0070.00018.00
8.1.280.0150.00325.92
8.1.270.0040.00422.14
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.12
8.1.230.0030.00719.21
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.01117.35
8.1.190.0000.00917.35
8.1.180.0000.00818.10
8.1.170.0080.00018.61
8.1.160.0050.00218.86
8.1.150.0030.00520.71
8.1.140.0080.00019.50
8.1.130.0000.00718.71
8.1.120.0050.00517.39
8.1.110.0000.00717.37
8.1.100.0040.00417.45
8.1.90.0000.00717.41
8.1.80.0030.00317.43
8.1.70.0000.00717.33
8.1.60.0040.00417.45
8.1.50.0040.00417.49
8.1.40.0030.00517.48
8.1.30.0040.00417.59
8.1.20.0040.00417.50
8.1.10.0000.00717.37
8.1.00.0030.00617.45
8.0.300.0080.00019.75
8.0.290.0030.00616.75
8.0.280.0030.00318.42
8.0.270.0030.00317.33
8.0.260.0030.00316.86
8.0.250.0030.00317.05
8.0.240.0040.00416.73
8.0.230.0030.00617.01
8.0.220.0030.00316.91
8.0.210.0040.00416.83
8.0.200.0000.00716.91
8.0.190.0090.00016.89
8.0.180.0110.00016.98
8.0.170.0040.00416.96
8.0.160.0090.00016.97
8.0.150.0040.00416.88
8.0.140.0000.00816.89
8.0.130.0080.00013.29
8.0.120.0060.00316.86
8.0.110.0040.00416.87
8.0.100.0040.00416.97
8.0.90.0000.00716.90
8.0.80.0040.01216.92
8.0.70.0040.00416.94
8.0.60.0000.00716.93
8.0.50.0070.00017.00
8.0.30.0110.01117.01
8.0.20.0120.00817.40
8.0.10.0000.00717.04
8.0.00.0060.01116.52
7.4.330.0050.00015.55
7.4.320.0000.00616.54
7.4.300.0000.00716.53
7.4.290.0060.00316.41
7.4.280.0030.00516.43
7.4.270.0050.00216.52
7.4.260.0050.00516.41
7.4.250.0030.00316.40
7.4.240.0070.00016.55
7.4.230.0000.00716.32
7.4.220.0140.01016.38
7.4.210.0070.01316.59
7.4.200.0030.00616.41
7.4.160.0140.00516.64
7.4.150.0130.00717.40
7.4.140.0090.00917.86
7.4.130.0090.01216.58
7.4.120.0100.00816.42
7.4.110.0180.00716.39
7.4.100.0140.00916.51
7.4.90.0070.01016.51
7.4.80.0090.00919.39
7.4.70.0050.01116.70
7.4.60.0070.01016.46
7.4.50.0060.00916.56
7.4.40.0120.00616.23
7.4.30.0100.00616.56
7.4.00.0150.00015.11
7.3.330.0000.00513.22
7.3.320.0060.00013.37
7.3.310.0000.00716.22
7.3.300.0030.00316.21
7.3.290.0100.00816.30
7.3.280.0070.01016.30
7.3.270.0200.00317.40
7.3.260.0110.00616.51
7.3.250.0100.00816.38
7.3.240.0090.01116.54
7.3.230.0110.00616.43
7.3.210.0110.00716.42
7.3.200.0090.00616.43
7.3.190.0160.00016.64
7.3.180.0130.01016.34
7.3.170.0060.00916.34
7.3.160.0100.01016.37
7.2.330.0100.00716.31
7.2.320.0090.00916.43
7.2.310.0070.01116.44
7.2.300.0060.01516.65
7.2.290.0030.01316.35
7.2.60.0070.01416.57
7.2.00.0000.01719.27
7.1.200.0070.00715.56
7.1.100.0050.00517.59
7.1.70.0040.00416.76
7.1.60.0500.01732.99
7.1.50.0300.01732.92
7.1.40.0700.01332.21
7.1.30.0500.02332.31
7.1.20.0430.01332.77
7.1.10.0070.00714.70
7.1.00.0330.01314.75
7.0.200.0530.01714.93
7.0.190.0530.01714.52
7.0.180.0500.01314.41
7.0.170.0070.00714.24
7.0.160.0300.01014.38
7.0.150.0070.01014.29
7.0.140.0300.01314.43
7.0.130.0400.00314.55
7.0.120.0430.01014.64
7.0.110.0370.00714.28
7.0.100.0430.00714.46
7.0.90.0330.01314.46
7.0.80.0370.00714.48
7.0.70.0430.00314.55
7.0.60.0570.00714.24
7.0.50.0270.01314.30
7.0.40.0330.01014.45
7.0.30.0430.00014.58
7.0.20.0330.01314.39
7.0.10.0370.01014.40
7.0.00.0400.01014.60

preferences:
34.34 ms | 400 KiB | 5 Q