3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bar; public function getBar() { return $this->bar; } public function setBar($bar) { $this->bar = $bar; } } function foo(Foo $foo) { if ($foo->getBar() === null) throw new IllegalArgumentException('Bar must not be null before foo\'ing'); } $foo = new Foo(); foo($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.0140.00016.61
8.3.50.0100.00921.13
8.3.40.0070.00718.84
8.3.30.0100.00719.04
8.3.20.0040.00420.29
8.3.10.0040.00423.61
8.3.00.0050.00319.26
8.2.180.0090.00618.19
8.2.170.0060.01222.96
8.2.160.0140.00020.42
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0090.00926.16
8.2.120.0040.00422.16
8.2.110.0090.00022.20
8.2.100.0060.00617.91
8.2.90.0050.00219.09
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0030.00719.88
8.2.30.0000.00919.68
8.2.20.0050.00217.71
8.2.10.0040.00417.98
8.2.00.0070.00317.77
8.1.280.0110.01125.92
8.1.270.0040.00423.96
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00023.88
8.1.230.0040.00819.09
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0050.00517.22
8.1.190.0000.00817.43
8.1.180.0060.00318.10
8.1.170.0000.00818.50
8.1.160.0040.00421.87
8.1.150.0100.00018.59
8.1.140.0000.00717.40
8.1.130.0000.00717.71
8.1.120.0030.00317.41
8.1.110.0000.00717.28
8.1.100.0030.00317.24
8.1.90.0030.00317.38
8.1.80.0000.00817.41
8.1.70.0060.00017.35
8.1.60.0000.00817.60
8.1.50.0040.00417.52
8.1.40.0030.00617.53
8.1.30.0000.00817.59
8.1.20.0000.00817.65
8.1.10.0000.00817.57
8.1.00.0040.00417.50
8.0.300.0070.00018.77
8.0.290.0050.00217.05
8.0.280.0040.00218.29
8.0.270.0070.00017.12
8.0.260.0050.00317.20
8.0.250.0000.00716.88
8.0.240.0030.00316.84
8.0.230.0000.00716.98
8.0.220.0070.00016.91
8.0.210.0030.00516.87
8.0.200.0070.00016.83
8.0.190.0040.00416.91
8.0.180.0040.00416.95
8.0.170.0040.00416.93
8.0.160.0040.00416.95
8.0.150.0030.00316.92
8.0.140.0040.00716.89
8.0.130.0000.00613.34
8.0.120.0080.00016.89
8.0.110.0040.00416.95
8.0.100.0030.00616.84
8.0.90.0000.00716.85
8.0.80.0060.00916.96
8.0.70.0040.00416.84
8.0.60.0030.00516.84
8.0.50.0000.00716.75
8.0.30.0120.00817.10
8.0.20.0090.01217.40
8.0.10.0000.00717.00
8.0.00.0070.01116.76
7.4.330.0050.00015.00
7.4.320.0030.00316.59
7.4.300.0000.00616.46
7.4.290.0000.00716.48
7.4.280.0040.00416.52
7.4.270.0070.00016.60
7.4.260.0000.00716.46
7.4.250.0040.00416.47
7.4.240.0070.00016.64
7.4.230.0030.00316.70
7.4.220.0070.01116.61
7.4.210.0140.00116.56
7.4.200.0000.00716.35
7.4.190.0070.00016.74
7.4.160.0040.01116.46
7.4.150.0160.00617.40
7.4.140.0110.00917.86
7.4.130.0110.00616.66
7.4.120.0080.00916.60
7.4.110.0100.00716.67
7.4.100.0160.00716.40
7.4.90.0060.01316.61
7.4.80.0090.00919.39
7.4.70.0060.00916.46
7.4.60.0060.00916.44
7.4.50.0050.00016.40
7.4.40.0110.00722.77
7.4.30.0120.00416.66
7.4.00.0060.00615.13
7.3.330.0050.00013.39
7.3.320.0000.00613.32
7.3.310.0040.00416.35
7.3.300.0030.00316.25
7.3.290.0140.00016.38
7.3.280.0120.00616.38
7.3.270.0170.00017.40
7.3.260.0140.01216.59
7.3.250.0090.01216.39
7.3.240.0090.01216.41
7.3.230.0070.01116.42
7.3.210.0190.00416.44
7.3.200.0120.01219.39
7.3.190.0140.00716.39
7.3.180.0060.01616.61
7.3.170.0070.01016.44
7.3.160.0060.00916.61
7.3.120.0080.00815.00
7.3.00.0030.01016.67
7.2.330.0060.01216.65
7.2.320.0070.01016.60
7.2.310.0090.01216.37
7.2.300.0140.00316.74
7.2.290.0170.00016.47
7.2.130.0040.00816.98
7.2.120.0060.00316.93
7.2.110.0030.01317.07
7.2.100.0030.01016.86
7.2.90.0030.01017.02
7.2.80.0110.00416.99
7.2.70.0050.00516.79
7.2.60.0100.00416.74
7.2.50.0030.01017.07
7.2.40.0110.00616.96
7.2.30.0070.00716.75
7.2.20.0130.00016.73
7.2.10.0070.00316.80
7.2.00.0050.00518.16
7.1.250.0060.00615.70
7.1.240.0100.00015.72
7.1.230.0000.01315.70
7.1.220.0100.00015.73
7.1.210.0000.01015.80
7.1.200.0090.00815.62
7.1.190.0000.01315.84
7.1.180.0030.01015.77
7.1.170.0100.00615.69
7.1.160.0000.01215.82
7.1.150.0030.00915.70
7.1.140.0090.00315.79
7.1.130.0030.01015.68
7.1.120.0060.00615.78
7.1.110.0080.00415.53
7.1.100.0020.00816.91
7.1.90.0030.01315.79
7.1.80.0090.00015.88
7.1.70.0040.00716.40
7.1.60.0070.00817.66
7.1.50.0040.01316.37
7.1.40.0030.00715.62
7.1.30.0110.00415.70
7.1.20.0080.00815.52
7.1.10.0100.00015.48
7.1.00.0020.04518.98
7.0.330.0060.00915.53
7.0.320.0040.01115.33
7.0.310.0060.00315.12
7.0.300.0090.00315.52
7.0.290.0040.00415.13
7.0.280.0060.00615.12
7.0.270.0070.00715.36
7.0.260.0040.00415.37
7.0.250.0040.00815.32
7.0.240.0060.00915.16
7.0.230.0080.00415.41
7.0.220.0030.01015.39
7.0.210.0120.00015.39
7.0.200.0040.00715.97
7.0.190.0060.00315.30
7.0.180.0000.01515.23
7.0.170.0000.01415.42
7.0.160.0030.00715.29
7.0.150.0100.00315.32
7.0.140.0020.04318.75
7.0.130.0060.00915.38
7.0.120.0090.00315.29
7.0.110.0090.00615.50
7.0.100.0040.00715.39
7.0.90.0100.00315.13
7.0.80.0000.01315.38
7.0.70.0050.00515.14
7.0.60.0120.04217.71
7.0.50.0110.04216.65
7.0.40.0040.02416.75
7.0.30.0350.03516.85
7.0.20.0080.03016.75
7.0.10.0200.04216.70
7.0.00.0030.02516.96
5.6.380.0120.00314.36
5.6.370.0080.00814.42
5.6.360.0030.00514.25
5.6.350.0040.01114.09
5.6.340.0070.01014.21
5.6.330.0060.00614.51
5.6.320.0130.00014.38
5.6.310.0060.00614.55
5.6.300.0030.00914.14
5.6.290.0030.00614.33
5.6.280.0020.04317.79
5.6.270.0070.01014.70
5.6.260.0070.00714.48
5.6.250.0100.00614.30
5.6.240.0000.01114.30
5.6.230.0040.00414.30
5.6.220.0030.00714.10
5.6.210.0130.04017.58
5.6.200.0070.04516.22
5.6.190.0030.05017.28
5.6.180.0190.04117.34
5.6.170.0130.03217.38
5.6.160.0110.03717.43
5.6.150.0060.02416.22
5.6.140.0050.03216.41
5.6.130.0070.04316.32
5.6.120.0030.04717.68
5.6.110.0080.03817.69
5.6.100.0060.02517.74
5.6.90.0080.04117.67
5.6.80.0150.02717.51
5.6.70.0030.01014.14
5.6.60.0060.00914.10
5.6.50.0000.00814.51
5.6.40.0040.00414.32
5.6.30.0070.00714.42
5.6.20.0030.00914.10
5.6.10.0070.00714.35
5.6.00.0150.00014.28
5.5.380.0060.00311.18
5.5.370.0060.00311.21
5.5.360.0030.00911.18
5.5.350.0100.03315.75
5.5.340.0000.04314.56
5.5.330.0070.04015.82
5.5.320.0120.02815.75
5.5.310.0130.03015.76
5.5.300.0070.04414.56
5.5.290.0050.04314.64
5.5.280.0030.02816.08
5.5.270.0050.05116.03
5.5.260.0050.03716.09
5.5.250.0030.04515.92
5.5.240.0120.03715.74
5.5.230.0030.00711.22
5.5.220.0070.00311.18
5.5.210.0030.00911.18
5.5.200.0030.00711.21
5.5.190.0060.00311.18
5.5.180.0030.00611.19
5.5.170.0030.00911.18
5.5.160.0030.00711.33
5.5.150.0030.00611.18
5.5.140.0090.00311.18
5.5.130.0060.00611.32
5.5.120.0030.00811.18
5.5.110.0000.00911.18
5.5.100.0000.01111.18
5.5.90.0060.00011.36
5.5.80.0030.00911.25
5.5.70.0030.00911.18
5.5.60.0040.00711.18
5.5.50.0100.00011.18
5.5.40.0000.01211.18
5.5.30.0030.00911.23
5.5.20.0060.00611.18
5.5.10.0060.00611.18
5.5.00.0080.00311.25
5.4.450.0300.03015.36
5.4.440.0480.03115.35
5.4.430.0470.02815.37
5.4.420.0320.03715.38
5.4.410.0440.03115.26
5.4.400.0430.03515.20
5.4.390.0370.03615.28
5.4.380.0240.03014.84
5.4.370.0140.03114.96
5.4.360.0120.03214.84
5.4.350.0240.02614.96
5.4.340.0180.03214.94
5.4.330.0000.01011.20
5.4.320.0050.02311.84
5.4.310.0080.02611.84
5.4.300.0050.02511.84
5.4.290.0050.02211.83
5.4.280.0040.02211.78
5.4.270.0050.02211.78
5.4.260.0040.02411.78
5.4.250.0080.02511.78
5.4.240.0070.01711.78
5.4.230.0050.02411.78
5.4.220.0090.04911.78
5.4.210.0050.02411.78
5.4.200.0040.02311.78
5.4.190.0050.02011.78
5.4.180.0040.02211.78
5.4.170.0060.02011.78
5.4.160.0050.02211.78
5.4.150.0040.03311.78
5.4.140.0060.02411.62
5.4.130.0070.01911.64
5.4.120.0070.02111.59
5.4.110.0040.02311.59
5.4.100.0040.02411.61
5.4.90.0040.02411.59
5.4.80.0050.03711.59
5.4.70.0070.02111.58
5.4.60.0040.02311.59
5.4.50.0100.01611.59
5.4.40.0080.02511.58
5.4.30.0090.02411.58
5.4.20.0050.02111.58
5.4.10.0060.02711.58
5.4.00.0040.02011.33
5.3.290.0050.02111.99
5.3.280.0080.02111.94
5.3.270.0070.02211.95
5.3.260.0090.02811.95
5.3.250.0070.04011.95
5.3.240.0060.02611.95
5.3.230.0090.02511.94
5.3.220.0070.02611.93
5.3.210.0060.02011.93
5.3.200.0070.02111.93
5.3.190.0020.02311.93
5.3.180.0070.02211.92
5.3.170.0040.02111.92
5.3.160.0040.02311.92
5.3.150.0040.02111.93
5.3.140.0080.02611.92
5.3.130.0050.02611.92
5.3.120.0070.02311.92
5.3.110.0040.02811.92
5.3.100.0030.02511.65
5.3.90.0030.02511.64
5.3.80.0050.02211.64
5.3.70.0030.02211.64
5.3.60.0060.02111.63
5.3.50.0040.02311.61
5.3.40.0060.02211.61
5.3.30.0060.02611.58
5.3.20.0050.02211.47
5.3.10.0080.01911.46
5.3.00.0020.02511.45
5.2.170.0060.01910.21
5.2.160.0080.01810.21
5.2.150.0120.04510.20
5.2.140.0120.03010.20
5.2.130.0080.02610.18
5.2.120.0060.01710.18
5.2.110.0020.02110.19
5.2.100.0090.04010.18
5.2.90.0050.01510.18
5.2.80.0050.01810.18
5.2.70.0030.02010.18
5.2.60.0020.02310.15
5.2.50.0050.02210.14
5.2.40.0090.03210.13
5.2.30.0090.02910.12
5.2.20.0060.01610.11
5.2.10.0060.01610.06
5.2.00.0020.02010.00
5.1.60.0040.0139.64
5.1.50.0040.0169.63
5.1.40.0030.0209.62
5.1.30.0040.0159.80
5.1.20.0040.0249.81
5.1.10.0030.0209.67
5.1.00.0090.0329.67
5.0.50.0050.0158.91
5.0.40.0030.0158.84
5.0.30.0030.0198.75
5.0.20.0030.0138.73
5.0.10.0050.0138.72
5.0.00.0040.0178.72
4.4.90.0010.0127.98
4.4.80.0020.0127.97
4.4.70.0090.0357.96
4.4.60.0020.0147.97
4.4.50.0030.0127.97
4.4.40.0050.0167.94
4.4.30.0020.0107.97
4.4.20.0030.0128.01
4.4.10.0040.0108.01
4.4.00.0050.0147.97
4.3.110.0040.0107.92
4.3.100.0040.0167.92
4.3.90.0070.0167.91
4.3.80.0030.0167.88
4.3.70.0020.0147.90
4.3.60.0030.0127.90
4.3.50.0040.0297.90
4.3.40.0030.0157.86
4.3.30.0040.0107.24
4.3.20.0040.0137.23
4.3.10.0030.0127.21
4.3.00.0190.01010.86

preferences:
42.05 ms | 401 KiB | 5 Q