3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface TestInterface { public function test($value = null); } class TestClass implements TestInterface { public function test($value = "test") { return $value; } } var_dump((new TestClass)->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.4.120.0110.00920.37
8.4.110.0110.01122.25
8.4.100.0150.00618.54
8.4.90.0090.01018.61
8.4.80.0120.00520.50
8.4.70.0090.00617.98
8.4.60.0130.00618.72
8.4.50.0140.00718.33
8.4.40.0100.01017.84
8.4.30.0090.00918.68
8.4.20.0160.00017.49
8.4.10.0040.00420.45
8.3.250.0100.00819.05
8.3.240.0130.00716.62
8.3.230.0050.00516.29
8.3.220.0100.00218.80
8.3.210.0030.00518.22
8.3.200.0040.00416.66
8.3.190.0070.01317.12
8.3.180.0100.00717.23
8.3.170.0070.01018.84
8.3.160.0180.00016.93
8.3.150.0120.00616.67
8.3.140.0110.00719.13
8.3.130.0060.00318.62
8.3.120.0030.00619.07
8.3.110.0000.01016.55
8.3.100.0080.01218.22
8.3.90.0110.00726.77
8.3.80.0030.00616.50
8.3.70.0160.00016.58
8.3.60.0070.00718.43
8.3.50.0090.01123.52
8.3.40.0110.00321.88
8.3.30.0040.01118.58
8.3.20.0070.00224.18
8.3.10.0000.00724.66
8.3.00.0040.00426.16
8.2.290.0090.00920.19
8.2.280.0160.00418.46
8.2.270.0120.00618.60
8.2.260.0110.00716.41
8.2.250.0000.00816.45
8.2.240.0040.01417.20
8.2.230.0000.00920.94
8.2.220.0090.00024.06
8.2.210.0140.00426.77
8.2.200.0090.00016.38
8.2.190.0040.01116.58
8.2.180.0120.00325.92
8.2.170.0090.00918.82
8.2.160.0100.01022.96
8.2.150.0090.00025.66
8.2.140.0050.00224.66
8.2.130.0000.00826.16
8.2.120.0000.00926.35
8.2.110.0060.00320.93
8.2.100.0000.01118.09
8.2.90.0000.00818.86
8.2.80.0000.00817.97
8.2.70.0050.00317.34
8.2.60.0050.00517.50
8.2.50.0040.00418.05
8.2.40.0040.00420.42
8.2.30.0040.00417.87
8.2.20.0040.00417.91
8.2.10.0000.00719.16
8.2.00.0040.00419.28
8.1.330.0110.00821.88
8.1.320.0110.01116.26
8.1.310.0030.00518.45
8.1.300.0000.00918.02
8.1.290.0090.00018.88
8.1.280.0040.01125.92
8.1.270.0080.00023.99
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0000.01019.44
8.1.230.0060.00620.89
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0050.00317.39
8.1.190.0000.00817.00
8.1.180.0050.00318.10
8.1.170.0000.00817.62
8.1.160.0020.00518.73
8.1.150.0040.00418.80
8.1.140.0000.00718.81
8.1.130.0030.00520.07
8.1.120.0000.00817.34
8.1.110.0050.00217.25
8.1.100.0050.00317.45
8.1.90.0060.00317.28
8.1.80.0000.00817.27
8.1.70.0030.00317.38
8.1.60.0060.00317.57
8.1.50.0000.00817.28
8.1.40.0000.00817.43
8.1.30.0040.00417.47
8.1.20.0040.00417.53
8.1.10.0000.00817.37
8.1.00.0040.00617.45
8.0.300.0070.00019.09
8.0.290.0000.00816.58
8.0.280.0000.00718.43
8.0.270.0030.00318.00
8.0.260.0060.00020.23
8.0.250.0030.00316.99
8.0.240.0040.00416.87
8.0.230.0070.00016.85
8.0.220.0040.00416.80
8.0.210.0000.00716.83
8.0.200.0040.00416.87
8.0.190.0000.00716.91
8.0.180.0000.00716.83
8.0.170.0030.00516.89
8.0.160.0000.00816.94
8.0.150.0040.00416.76
8.0.140.0070.00016.84
8.0.130.0000.00613.34
8.0.120.0040.00416.82
8.0.110.0000.00716.82
8.0.100.0070.00016.62
8.0.90.0000.00716.82
8.0.80.0090.00816.75
8.0.70.0040.00416.77
8.0.60.0000.00816.74
8.0.50.0000.00716.79
8.0.30.0100.00617.25
8.0.20.0140.00517.03
8.0.10.0040.00416.75
8.0.00.0160.00716.52
7.4.330.0020.00215.55
7.4.320.0030.00316.46
7.4.300.0070.00016.43
7.4.290.0030.00516.52
7.4.280.0040.00416.42
7.4.270.0000.00716.45
7.4.260.0060.00013.23
7.4.250.0000.00716.54
7.4.240.0040.00416.50
7.4.230.0000.00816.41
7.4.220.0050.00216.39
7.4.210.0040.01116.54
7.4.200.0000.00716.54
7.4.130.0100.00816.64
7.4.120.0060.01216.32
7.4.110.0110.00816.23
7.4.100.0120.00916.16
7.4.90.0070.01116.29
7.4.80.0070.01716.48
7.4.70.0080.01516.31
7.4.60.0060.01616.18
7.4.50.0160.00616.50
7.4.40.0120.00916.46
7.4.30.0130.01016.41
7.4.20.0070.01416.61
7.4.10.0150.00316.59
7.4.00.0090.01216.57
7.3.330.0040.00416.08
7.3.320.0000.00513.06
7.3.310.0040.00416.39
7.3.300.0060.00016.15
7.3.290.0070.00816.23
7.3.260.0130.00716.49
7.3.230.0090.00916.04
7.3.220.0090.00916.38
7.3.210.0120.00616.01
7.3.200.0150.00616.19
7.3.190.0130.00716.23
7.3.180.0110.01116.43
7.3.170.0100.01016.20
7.3.160.0100.01316.34
7.3.150.0090.01316.44
7.3.140.0100.01016.23
7.3.130.0070.01316.49
7.3.120.0090.00916.28
7.3.110.0110.00816.47
7.3.100.0110.00916.41
7.3.90.0060.01316.25
7.3.80.0180.00716.46
7.3.70.0100.01316.29
7.3.60.0070.01316.29
7.3.50.0070.01116.20
7.3.40.0130.01316.24
7.3.30.0100.01416.25
7.3.20.0090.01316.37
7.3.10.0120.01216.25
7.3.00.0130.00616.26
7.2.340.0120.01216.14
7.2.330.0140.00916.42
7.2.320.0070.01616.51
7.2.310.0130.01016.34
7.2.300.0040.01816.42
7.2.290.0200.00316.62
7.2.280.0100.01116.41
7.2.270.0150.00616.68
7.2.260.0160.00716.57
7.2.250.0060.01316.56
7.2.240.0090.01416.63
7.2.230.0110.01116.53
7.2.220.0160.01016.41
7.2.210.0120.00616.53
7.2.200.0060.01616.34
7.2.190.0030.01516.49
7.2.180.0060.01316.57
7.2.170.0060.01316.61
7.2.160.0110.00816.38
7.2.150.0100.01016.50
7.2.140.0240.00316.47
7.2.130.0160.00816.41
7.2.120.0110.00716.23
7.2.110.0060.01216.23
7.2.100.0120.00916.19
7.2.90.0250.00016.38
7.2.80.0110.01116.41
7.2.70.0160.00816.47
7.2.60.0110.00816.21
7.2.50.0210.00616.24
7.2.40.0150.01116.29
7.2.30.0130.01316.45
7.2.20.0080.01116.27
7.2.10.0510.00316.31
7.2.00.0150.00416.18

preferences:
27.8 ms | 403 KiB | 5 Q