3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function setFoo(Bar $aFoo); } class Bar implements Foo { private $foo; public function setFoo(Bar $aFoo) // fatal error { $this->foo = $aFoo; } }

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.0070.00718.29
8.3.50.0090.00821.21
8.3.40.0050.01018.45
8.3.30.0070.00719.09
8.3.20.0080.00020.29
8.3.10.0030.00522.14
8.3.00.0050.00320.49
8.2.180.0070.00718.43
8.2.170.0040.01122.96
8.2.160.0060.00919.24
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0110.00726.16
8.2.120.0050.00319.54
8.2.110.0040.00420.47
8.2.100.0040.00819.25
8.2.90.0000.00719.05
8.2.80.0040.00417.97
8.2.70.0030.00617.36
8.2.60.0000.00817.93
8.2.50.0090.00018.07
8.2.40.0040.00418.09
8.2.30.0000.00717.87
8.2.20.0040.00417.44
8.2.10.0040.00417.55
8.2.00.0080.00017.48
8.1.280.0140.00425.92
8.1.270.0040.00420.28
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.70
8.1.230.0080.00419.10
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0060.00317.16
8.1.180.0040.00418.66
8.1.170.0040.00418.71
8.1.160.0000.00822.14
8.1.150.0000.00718.57
8.1.140.0030.00617.42
8.1.130.0000.00717.75
8.1.120.0000.00817.39
8.1.110.0000.00817.36
8.1.100.0040.00417.32
8.1.90.0000.00717.40
8.1.80.0040.00417.38
8.1.70.0030.00317.33
8.1.60.0040.00417.45
8.1.50.0040.00417.52
8.1.40.0000.00817.32
8.1.30.0040.00417.58
8.1.20.0040.00417.63
8.1.10.0000.00717.36
8.1.00.0050.00217.23
8.0.300.0040.00418.77
8.0.290.0080.00017.05
8.0.280.0030.00318.26
8.0.270.0070.00017.14
8.0.260.0060.00016.68
8.0.250.0030.00316.75
8.0.240.0060.00316.80
8.0.230.0070.00016.77
8.0.220.0040.00416.73
8.0.210.0030.00316.80
8.0.200.0030.00316.78
8.0.190.0000.00716.77
8.0.180.0000.00816.87
8.0.170.0000.00716.75
8.0.160.0030.00616.83
8.0.150.0040.00416.77
8.0.140.0040.00416.81
8.0.130.0000.00513.21
8.0.120.0000.00816.73
8.0.110.0070.00016.77
8.0.100.0040.00416.89
8.0.90.0050.00216.64
8.0.80.0030.01216.80
8.0.70.0020.00516.82
8.0.60.0040.00416.89
8.0.50.0040.00416.76
8.0.30.0070.01116.86
8.0.20.0090.01217.40
8.0.10.0000.00816.98
8.0.00.0020.01516.56
7.4.330.0000.00515.04
7.4.320.0000.00616.54
7.4.300.0000.00616.36
7.4.290.0070.00016.57
7.4.280.0000.00716.43
7.4.270.0000.00716.46
7.4.260.0030.00616.41
7.4.250.0050.00216.38
7.4.240.0050.00216.55
7.4.230.0000.00716.54
7.4.220.0090.00616.39
7.4.210.0080.00716.54
7.4.200.0000.00816.52
7.4.190.0000.00716.61
7.4.160.0090.01316.41
7.4.150.0120.00617.40
7.4.140.0160.01817.86
7.4.130.0150.00416.47
7.4.120.0180.00316.40
7.4.110.0100.00716.48
7.4.100.0090.00916.31
7.4.90.0080.00816.48
7.4.80.0120.00919.39
7.4.70.0140.00916.43
7.4.60.0030.01616.21
7.4.50.0000.00416.29
7.4.40.0130.00322.77
7.4.30.0070.01016.52
7.4.00.0000.01314.41
7.3.330.0050.00013.01
7.3.320.0060.00013.18
7.3.310.0030.00316.21
7.3.300.0070.00016.21
7.3.290.0100.00316.16
7.3.280.0100.00416.18
7.3.270.0040.01217.40
7.3.260.0120.01216.08
7.3.250.0060.01416.35
7.3.240.0130.01216.37
7.3.230.0030.01516.49
7.3.210.0130.00316.45
7.3.200.0040.01519.39
7.3.190.0090.01316.19
7.3.180.0100.00716.25
7.3.170.0170.00016.27
7.3.160.0040.01116.34
7.3.120.0090.00614.84
7.2.330.0070.01116.63
7.2.320.0100.00716.57
7.2.310.0100.00716.54
7.2.300.0140.00316.64
7.2.290.0090.00916.20
7.2.00.0080.00819.22
7.1.100.0040.00717.76
7.1.70.0000.01016.90
7.1.60.0070.00716.85
7.1.50.0030.00816.81
7.1.40.0110.00016.29
7.1.30.0030.00716.75
7.1.20.0060.00616.52
7.1.10.0000.00816.36
7.1.00.0000.00816.69
7.0.200.0000.00716.68
7.0.190.0040.00416.34
7.0.180.0040.00416.20
7.0.170.0030.00616.02
7.0.160.0040.00416.38
7.0.150.0040.00416.09
7.0.140.0030.00516.32
7.0.130.0000.00716.47
7.0.120.0070.00316.55
7.0.110.0030.00616.08
7.0.100.0000.00916.21
7.0.90.0070.00016.38
7.0.80.0040.00416.16
7.0.70.0040.00416.46
7.0.60.0040.00416.16
7.0.50.0000.00716.23
7.0.40.0070.00715.41
7.0.30.0030.00315.41
7.0.20.0030.00515.41
7.0.10.0050.00315.41
7.0.00.0070.00315.41
5.6.300.0000.04520.92
5.6.290.0070.04020.91
5.6.280.0040.04220.86
5.6.270.0040.04620.78
5.6.260.0040.03920.88
5.6.250.0070.04021.02
5.6.240.0070.04721.02
5.6.230.0030.04020.95
5.6.220.0000.04221.03
5.6.210.0000.04420.82
5.6.200.0030.04420.82
5.6.190.0090.03520.91
5.6.180.0060.03620.81
5.6.170.0100.04020.86
5.6.160.0040.04920.82
5.6.150.0030.04420.76
5.6.140.0070.04120.98
5.6.130.0030.04420.72
5.6.120.0070.04020.80
5.6.110.0200.05321.04
5.6.100.0000.04620.71
5.6.90.0030.05921.02
5.6.80.0000.04820.39
5.6.70.0040.04320.11
5.6.60.0040.04420.43
5.6.50.0070.03420.19
5.6.40.0060.04020.23
5.6.30.0000.04920.39
5.6.20.0000.04820.41
5.6.10.0030.04020.38
5.6.00.0030.04220.27
5.5.380.0090.03717.39
5.5.370.0030.04217.53
5.5.360.0030.05517.52
5.5.350.0070.04317.54
5.5.340.0100.05218.11
5.5.330.0030.04118.00
5.5.320.0040.06418.07
5.5.310.0070.04417.84
5.5.300.0000.04817.70
5.5.290.0030.04518.06
5.5.280.0070.03917.74
5.5.270.0060.04517.98
5.5.260.0090.03717.81
5.5.250.0000.04217.80
5.5.240.0030.04117.13
5.5.230.0070.04717.41
5.5.220.0090.03717.35
5.5.210.0070.04117.24
5.5.200.0060.03817.44
5.5.190.0030.04217.22
5.5.180.0090.03417.38
5.5.160.0090.03417.42
5.5.150.0000.04317.43
5.5.140.0000.04517.35
5.5.130.0040.04217.18
5.5.120.0060.03917.36
5.5.110.0000.04317.09
5.5.100.0000.04117.09
5.5.90.0120.02817.29
5.5.80.0030.03817.28
5.5.70.0030.03817.33
5.5.60.0030.04117.24
5.5.50.0030.03717.32
5.5.40.0060.03717.01
5.5.30.0030.04617.37
5.5.20.0030.06317.09
5.5.10.0060.03817.42
5.5.00.0030.04217.09
5.4.450.0030.04419.36
5.4.440.0060.04119.52
5.4.430.0270.03319.42
5.4.420.0260.03219.43
5.4.410.0040.03919.25
5.4.400.0000.04219.11
5.4.390.0100.03719.12
5.4.380.0000.04219.20
5.4.370.0040.03919.07
5.4.360.0060.04219.21
5.4.350.0120.03418.98
5.4.340.0070.03718.94
5.4.320.0000.04419.08
5.4.310.0040.03918.98
5.4.300.0070.03419.13
5.4.290.0090.03519.20
5.4.280.0060.03819.15
5.4.270.0030.04018.89
5.4.260.0070.03619.15
5.4.250.0040.03919.06
5.4.240.0040.04019.16
5.4.230.0040.03619.20
5.4.220.0000.04218.97
5.4.210.0030.03719.06
5.4.200.0070.07618.98
5.4.190.0070.03319.07
5.4.180.0060.04119.03
5.4.170.0060.03518.97
5.4.160.0030.04218.96
5.4.150.0100.03419.19
5.4.140.0000.04116.63
5.4.130.0060.04216.77
5.4.120.0000.03816.59
5.4.110.0070.03416.41
5.4.100.0030.03716.75
5.4.90.0060.03716.61
5.4.80.0000.03916.47
5.4.70.0000.04616.76
5.4.60.0000.03716.35
5.4.50.0030.04116.69
5.4.40.0070.03416.51
5.4.30.0070.03416.71
5.4.20.0070.03616.60
5.4.10.0000.04616.38
5.4.00.0070.03315.96
5.3.290.0090.03615.41
5.3.280.0030.03615.41
5.3.270.0000.04815.41
5.3.260.0000.04215.41
5.3.250.0030.04215.41
5.3.240.0040.03715.41
5.3.230.0030.04115.41
5.3.220.0070.04715.41
5.3.210.0060.03615.41
5.3.200.0000.04215.41
5.3.190.0130.04315.41
5.3.180.0120.02715.41
5.3.170.0030.04115.41
5.3.160.0030.05515.41
5.3.150.0040.03915.41
5.3.140.0100.03815.41
5.3.130.0100.04815.41
5.3.120.0000.04115.41
5.3.110.0000.04415.41
5.3.100.0030.03715.41
5.3.90.0060.07415.41
5.3.80.0040.04015.41
5.3.70.0070.03615.41
5.3.60.0000.03815.41
5.3.50.0060.05015.41
5.3.40.0030.03815.41
5.3.30.0030.04015.41
5.3.20.0060.03115.41
5.3.10.0030.03715.41
5.3.00.0000.04515.41
5.2.170.0030.03015.41
5.2.160.0090.05815.41
5.2.150.0030.03215.41
5.2.140.0030.03415.41
5.2.130.0030.02715.41
5.2.120.0030.03015.41
5.2.110.0070.02615.41
5.2.100.0090.02215.41
5.2.90.0060.02815.41
5.2.80.0030.03215.41
5.2.70.0000.03315.41
5.2.60.0000.03315.41
5.2.50.0070.02615.41
5.2.40.0030.02715.41
5.2.30.0000.03315.41
5.2.20.0060.02515.41
5.2.10.0000.03315.41
5.2.00.0040.02915.41
5.1.60.0040.03215.41
5.1.50.0060.02715.41
5.1.40.0060.02015.41
5.1.30.0090.02515.41
5.1.20.0000.02915.41
5.1.10.0000.02915.41
5.1.00.0000.04015.41
5.0.50.0000.02415.41
5.0.40.0060.01715.41
5.0.30.0000.04315.41
5.0.20.0000.03215.41
5.0.10.0040.04215.41
5.0.00.0060.02715.41
4.4.90.0030.01615.41
4.4.80.0040.01415.41
4.4.70.0000.02215.41
4.4.60.0060.01215.41
4.4.50.0040.02115.41
4.4.40.0000.02615.41
4.4.30.0100.01315.41
4.4.20.0000.02015.41
4.4.10.0000.01715.41
4.4.00.0000.02615.41
4.3.110.0000.01915.41
4.3.100.0060.01315.41
4.3.90.0000.01815.41
4.3.80.0000.02615.41
4.3.70.0130.02515.41
4.3.60.0000.02815.41
4.3.50.0000.02215.41
4.3.40.0000.02615.41
4.3.30.0030.01715.41
4.3.20.0030.01415.41
4.3.10.0000.02115.41
4.3.00.0030.01415.41

preferences:
40.59 ms | 401 KiB | 5 Q