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) { 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.0120.00916.50
8.3.50.0110.00316.02
8.3.40.0120.00318.57
8.3.30.0040.01118.71
8.3.20.0000.00920.04
8.3.10.0050.00323.70
8.3.00.0040.00419.26
8.2.180.0150.00018.29
8.2.170.0150.00722.96
8.2.160.0100.00320.45
8.2.150.0000.00724.18
8.2.140.0050.00224.66
8.2.130.0000.01021.18
8.2.120.0040.00426.35
8.2.110.0000.00920.52
8.2.100.0080.00317.72
8.2.90.0080.00019.09
8.2.80.0030.00517.97
8.2.70.0030.00517.50
8.2.60.0000.00817.93
8.2.50.0060.00318.10
8.2.40.0040.00420.58
8.2.30.0040.00419.25
8.2.20.0040.00417.85
8.2.10.0000.00718.00
8.2.00.0000.00717.96
8.1.280.0120.00825.92
8.1.270.0000.00722.05
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0100.00018.89
8.1.230.0070.00417.58
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00316.98
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0050.00318.59
8.1.160.0040.00418.90
8.1.150.0040.00420.54
8.1.140.0050.00319.56
8.1.130.0070.00018.82
8.1.120.0000.00717.36
8.1.110.0000.00717.36
8.1.100.0030.00517.31
8.1.90.0030.00517.27
8.1.80.0080.00017.31
8.1.70.0000.00717.34
8.1.60.0050.00317.53
8.1.50.0050.00217.46
8.1.40.0000.00817.48
8.1.30.0000.00717.56
8.1.20.0060.00317.55
8.1.10.0040.00717.30
8.1.00.0040.00417.21
8.0.300.0040.00420.14
8.0.290.0040.00416.63
8.0.280.0030.00518.41
8.0.270.0030.00317.19
8.0.260.0000.00616.72
8.0.250.0030.00316.83
8.0.240.0050.00516.74
8.0.230.0030.00316.90
8.0.220.0020.00516.76
8.0.210.0000.00716.74
8.0.200.0060.00016.83
8.0.190.0040.00416.93
8.0.180.0050.00316.95
8.0.170.0050.00316.94
8.0.160.0050.00216.80
8.0.150.0000.00716.79
8.0.140.0030.00516.74
8.0.130.0000.00713.30
8.0.120.0000.00716.77
8.0.110.0050.00316.92
8.0.100.0070.00016.77
8.0.90.0050.00316.75
8.0.80.0090.00616.83
8.0.70.0040.00416.94
8.0.60.0040.00416.70
8.0.50.0040.00416.92
8.0.30.0170.00317.07
8.0.20.0120.00917.40
8.0.10.0000.00716.96
8.0.00.0100.00716.88
7.4.330.0050.00015.55
7.4.320.0000.00616.50
7.4.300.0060.00016.53
7.4.290.0030.00516.43
7.4.280.0000.00716.56
7.4.270.0070.00016.33
7.4.260.0000.00716.51
7.4.250.0030.00516.48
7.4.240.0040.00416.58
7.4.230.0000.00616.51
7.4.220.0050.01516.53
7.4.210.0050.01216.52
7.4.200.0000.00716.27
7.4.160.0090.00616.33
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0160.00316.43
7.4.120.0090.00916.41
7.4.110.0040.01516.34
7.4.100.0180.00616.42
7.4.90.0070.01016.63
7.4.80.0110.00719.39
7.4.70.0060.01216.28
7.4.60.0090.00616.51
7.4.50.0060.01016.64
7.4.40.0030.01316.50
7.4.30.0060.01016.43
7.4.00.0090.00614.67
7.3.330.0060.00013.09
7.3.320.0000.00513.06
7.3.310.0030.00316.13
7.3.300.0030.00316.23
7.3.290.0000.00716.23
7.3.280.0090.00916.20
7.3.270.0100.00717.40
7.3.260.0100.00716.26
7.3.250.0120.00716.32
7.3.240.0060.01116.38
7.3.230.0060.01216.20
7.3.210.0030.01416.46
7.3.200.0110.01116.31
7.3.190.0100.01016.20
7.3.180.0060.01016.18
7.3.170.0110.00516.34
7.3.160.0060.01716.38
7.3.10.0040.00816.41
7.3.00.0100.00016.34
7.2.330.0090.00916.41
7.2.320.0030.01616.27
7.2.310.0030.01316.22
7.2.300.0070.01016.55
7.2.290.0060.01016.41
7.2.130.0090.00616.55
7.2.120.0060.00616.53
7.2.110.0070.00716.46
7.2.100.0040.01216.37
7.2.90.0040.00816.55
7.2.80.0040.01116.38
7.2.70.0030.01116.59
7.2.60.0110.00216.52
7.2.50.0120.00616.66
7.2.40.0030.00916.65
7.2.30.0180.00516.75
7.2.20.0050.01316.32
7.2.10.0170.00316.38
7.2.00.0030.01017.91
7.1.250.0070.00415.46
7.1.200.0070.00715.57
7.1.100.0040.00817.68
7.1.70.0760.00415.32
7.1.60.0400.00033.23
7.1.50.0330.00732.80
7.1.40.0290.01032.47
7.1.30.0280.01032.46
7.1.20.0340.00432.79
7.1.10.0190.00614.63
7.1.00.0120.00914.67
7.0.200.0100.01314.82
7.0.190.0190.00614.80
7.0.180.0160.00614.37
7.0.170.0150.00814.24
7.0.160.0130.01014.24
7.0.150.0120.01214.20
7.0.140.0120.01214.53
7.0.130.0210.00414.51
7.0.120.0200.00314.75
7.0.110.0160.01014.48
7.0.100.0150.00914.40
7.0.90.0160.00914.27
7.0.80.0250.00014.59
7.0.70.0160.00814.27
7.0.60.0160.00614.27
7.0.50.0140.01114.52
7.0.40.0130.01014.52
7.0.30.0200.00414.61
7.0.20.0170.00714.46
7.0.10.0250.00614.42
7.0.00.0130.01614.75

preferences:
38.18 ms | 401 KiB | 5 Q