3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function foo(\DateTime $date = null); } class Bar implements Foo { public function foo($date = null) { return '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.0180.00316.25
8.3.50.0120.00616.68
8.3.40.0110.00418.73
8.3.30.0040.01118.72
8.3.20.0090.00020.07
8.3.10.0070.00023.70
8.3.00.0080.00019.00
8.2.180.0140.00018.42
8.2.170.0160.00722.96
8.2.160.0100.00320.10
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0030.00621.12
8.2.120.0070.00026.35
8.2.110.0000.00921.00
8.2.100.0040.00717.84
8.2.90.0000.00819.09
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0000.00817.80
8.2.50.0080.00018.10
8.2.40.0040.00420.61
8.2.30.0000.00719.10
8.2.20.0000.00717.99
8.2.10.0050.00217.97
8.2.00.0000.00717.99
8.1.280.0130.00925.92
8.1.270.0040.00422.10
8.1.260.0030.00626.35
8.1.250.0050.00228.09
8.1.240.0080.00022.66
8.1.230.0000.01119.10
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0080.00017.10
8.1.190.0000.00917.10
8.1.180.0060.00318.10
8.1.170.0000.00818.43
8.1.160.0040.00418.99
8.1.150.0000.00720.61
8.1.140.0000.00719.50
8.1.130.0000.00718.73
8.1.120.0040.00417.36
8.1.110.0070.00017.43
8.1.100.0080.00017.39
8.1.90.0060.00317.38
8.1.80.0080.00017.27
8.1.70.0040.00417.41
8.1.60.0080.00017.40
8.1.50.0050.00317.45
8.1.40.0000.00817.38
8.1.30.0050.00317.62
8.1.20.0000.00817.48
8.1.10.0030.00617.27
8.1.00.0040.00417.32
8.0.300.0080.00020.04
8.0.290.0050.00216.63
8.0.280.0030.00318.37
8.0.270.0030.00317.19
8.0.260.0000.00616.86
8.0.250.0060.00016.89
8.0.240.0030.00616.85
8.0.230.0000.00716.84
8.0.220.0000.00716.79
8.0.210.0000.00716.75
8.0.200.0030.00316.82
8.0.190.0000.00816.76
8.0.180.0070.00016.78
8.0.170.0000.00816.87
8.0.160.0070.00016.86
8.0.150.0040.00416.78
8.0.140.0030.00516.80
8.0.130.0030.00313.26
8.0.120.0070.00016.76
8.0.110.0040.00416.69
8.0.100.0050.00216.71
8.0.90.0070.00016.80
8.0.80.0000.01516.79
8.0.70.0000.00716.77
8.0.60.0020.00516.72
8.0.50.0040.00416.63
8.0.30.0100.01017.00
8.0.20.0050.01317.40
8.0.10.0070.00016.85
8.0.00.0070.01116.55
7.4.330.0060.00015.55
7.4.320.0030.00316.56
7.4.300.0050.00216.57
7.4.290.0050.00516.43
7.4.280.0070.00016.34
7.4.270.0030.00416.42
7.4.260.0040.00416.52
7.4.250.0040.00416.38
7.4.240.0000.00716.43
7.4.230.0030.00316.42
7.4.220.0120.01516.40
7.4.210.0050.00916.49
7.4.200.0030.00316.41
7.4.160.0150.00516.51
7.4.150.0150.00417.40
7.4.140.0140.00617.86
7.4.130.0110.00716.32
7.4.120.0100.00816.44
7.4.110.0070.01016.34
7.4.100.0110.00716.45
7.4.90.0150.00916.49
7.4.80.0120.00619.39
7.4.70.0060.01116.39
7.4.60.0090.00616.38
7.4.50.0000.01516.22
7.4.40.0030.01316.52
7.4.30.0100.00716.23
7.4.00.0060.00914.97
7.3.330.0020.00213.16
7.3.320.0030.00312.99
7.3.310.0030.00316.04
7.3.300.0070.00016.18
7.3.290.0030.00316.09
7.3.280.0090.00916.14
7.3.270.0130.00417.40
7.3.260.0130.00616.32
7.3.250.0140.00616.23
7.3.240.0030.01516.35
7.3.230.0110.00716.29
7.3.210.0120.00616.42
7.3.200.0120.01116.12
7.3.190.0090.00616.53
7.3.180.0180.00416.24
7.3.170.0140.00316.27
7.3.160.0110.01016.37
7.3.10.0070.00716.55
7.3.00.0040.00916.47
7.2.330.0100.00716.41
7.2.320.0150.00716.47
7.2.310.0120.00416.43
7.2.300.0080.00816.35
7.2.290.0090.00616.54
7.2.130.0030.00916.65
7.2.120.0050.00716.59
7.2.110.0090.00516.87
7.2.100.0070.00416.79
7.2.90.0100.00516.82
7.2.80.0090.00316.90
7.2.70.0050.00616.69
7.2.60.0060.00716.65
7.2.50.0040.00716.73
7.2.40.0080.00616.80
7.2.30.0070.00416.87
7.2.20.0080.00616.66
7.2.10.0030.00816.71
7.2.00.0050.00917.60
7.1.250.0050.01015.47
7.1.200.0060.00615.58
7.1.100.0110.00818.05
7.1.70.0160.00615.19
7.1.60.0250.01333.14
7.1.50.0360.01132.80
7.1.40.0270.01232.23
7.1.30.0280.01032.30
7.1.20.0340.00432.66
7.1.10.0190.00614.73
7.1.00.0210.00414.70
7.0.200.0190.00914.91
7.0.190.0130.01614.79
7.0.180.0150.01214.20
7.0.170.0180.00714.31
7.0.160.0190.00614.37
7.0.150.0230.00314.34
7.0.140.0170.00714.54
7.0.130.0160.01014.50
7.0.120.0140.01114.53
7.0.110.0160.01314.41
7.0.100.0210.00414.34
7.0.90.0190.00614.60
7.0.80.0130.01014.52
7.0.70.0130.01014.32
7.0.60.0170.00814.33
7.0.50.0280.00714.39
7.0.40.0170.01014.68
7.0.30.0830.00314.77
7.0.20.0170.00714.43
7.0.10.0160.00914.48
7.0.00.0190.00414.44

preferences:
54.17 ms | 400 KiB | 5 Q