3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function getAddress() : Address { return $this->address; } } class Address {} $test = new Test(); $test->getAddress();

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.70.0110.00816.50
8.3.60.0070.01118.56
8.3.50.0110.01022.09
8.3.40.0110.01118.64
8.3.30.0140.00018.70
8.3.20.0000.00720.16
8.3.10.0080.00020.66
8.3.00.0040.00420.30
8.2.190.0110.00416.58
8.2.180.0090.00916.88
8.2.170.0160.00022.96
8.2.160.0100.00322.11
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0020.00526.16
8.2.120.0070.00021.06
8.2.110.0060.00322.23
8.2.100.0040.00719.51
8.2.90.0060.00317.75
8.2.80.0000.00818.79
8.2.70.0030.00517.63
8.2.60.0060.00317.93
8.2.50.0000.00818.07
8.2.40.0040.00418.07
8.2.30.0060.00317.87
8.2.20.0030.00517.55
8.2.10.0040.00417.87
8.2.00.0000.00717.86
8.1.280.0060.01225.92
8.1.270.0080.00023.85
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0050.00523.88
8.1.230.0040.00720.88
8.1.220.0050.00317.78
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0000.01017.23
8.1.180.0060.00318.10
8.1.170.0060.00318.76
8.1.160.0000.00818.93
8.1.150.0070.00018.69
8.1.140.0040.00419.49
8.1.130.0030.00317.67
8.1.120.0000.00717.39
8.1.110.0040.00417.42
8.1.100.0030.00417.40
8.1.90.0040.00417.42
8.1.80.0040.00417.33
8.1.70.0020.00517.31
8.1.60.0060.00317.54
8.1.50.0040.00417.48
8.1.40.0000.00817.48
8.1.30.0080.00017.69
8.1.20.0070.00017.67
8.1.10.0050.00217.60
8.1.00.0040.00417.54
8.0.300.0030.00618.77
8.0.290.0030.00616.61
8.0.280.0070.00318.38
8.0.270.0040.00416.80
8.0.260.0000.00617.25
8.0.250.0030.00316.93
8.0.240.0030.00316.91
8.0.230.0000.00716.82
8.0.220.0040.00416.86
8.0.210.0030.00716.86
8.0.200.0040.00416.96
8.0.190.0000.00716.93
8.0.180.0060.00316.92
8.0.170.0000.00816.89
8.0.160.0030.00316.85
8.0.150.0050.00316.79
8.0.140.0030.00316.76
8.0.130.0030.00313.30
8.0.120.0030.00516.79
8.0.110.0040.00416.86
8.0.100.0080.00016.98
8.0.90.0040.00416.82
8.0.80.0060.01316.81
8.0.70.0070.00016.85
8.0.60.0040.00416.92
8.0.50.0040.00416.79
8.0.30.0080.00716.86
8.0.20.0090.00917.40
8.0.10.0040.00417.01
8.0.00.0120.00616.87
7.4.330.0000.00616.81
7.4.320.0000.00716.52
7.4.300.0040.00416.61
7.4.290.0030.00316.50
7.4.280.0040.00416.60
7.4.270.0070.00016.35
7.4.260.0080.00016.50
7.4.250.0050.00316.35
7.4.240.0070.00016.57
7.4.230.0030.00316.35
7.4.220.0110.00816.66
7.4.210.0070.01016.60
7.4.200.0030.00316.59
7.4.160.0060.01016.50
7.4.150.0110.00817.40
7.4.140.0050.01417.86
7.4.130.0130.00516.44
7.4.120.0110.00616.50
7.4.110.0120.01216.63
7.4.100.0070.01116.38
7.4.90.0120.00616.58
7.4.80.0030.01719.39
7.4.70.0090.00616.67
7.4.60.0060.01316.49
7.4.50.0080.00816.40
7.4.40.0110.01116.40
7.4.30.0060.00916.63
7.4.10.0000.01914.71
7.4.00.0060.01014.88
7.3.330.0040.00413.36
7.3.320.0000.00613.38
7.3.310.0000.00716.23
7.3.300.0030.00316.41
7.3.290.0000.00616.24
7.3.280.0080.00716.35
7.3.270.0090.01217.40
7.3.260.0040.01516.48
7.3.250.0100.00716.39
7.3.240.0120.00616.44
7.3.230.0070.01016.50
7.3.210.0070.01016.46
7.3.200.0170.00619.39
7.3.190.0120.00416.24
7.3.180.0090.00616.52
7.3.170.0090.01316.53
7.3.160.0060.00916.56
7.3.130.0070.01014.53
7.3.120.0090.00914.57
7.3.110.0100.00714.14
7.3.100.0120.00014.60
7.3.90.0000.01614.86
7.3.80.0070.00714.41
7.3.70.0150.00014.34
7.3.60.0030.01014.50
7.3.50.0030.00614.69
7.3.40.0070.00314.49
7.3.30.0070.00314.57
7.3.20.0030.01116.45
7.3.10.0110.00016.46
7.3.00.0030.01216.14
7.2.330.0130.00616.73
7.2.320.0130.00716.58
7.2.310.0030.01516.70
7.2.300.0060.01516.57
7.2.290.0060.00916.38
7.2.260.0100.01014.69
7.2.250.0070.01114.85
7.2.240.0040.01214.88
7.2.230.0030.00914.66
7.2.220.0070.00414.97
7.2.210.0030.00814.79
7.2.200.0040.00714.94
7.2.190.0040.01114.52
7.2.180.0120.00015.06
7.2.170.0000.00914.84
7.2.160.0090.00614.49
7.2.150.0030.00616.58
7.2.140.0030.00616.69
7.2.130.0080.00816.23
7.2.120.0090.00416.53
7.2.110.0110.00416.88
7.2.100.0070.01016.71
7.2.90.0070.00316.55
7.2.80.0040.00816.44
7.2.70.0030.00916.73
7.2.60.0070.01116.75
7.2.50.0030.01016.68
7.2.40.0030.01316.57
7.2.30.0030.01416.74
7.2.20.0030.01216.91
7.2.10.0140.00316.45
7.2.00.0050.01118.00
7.1.330.0080.00815.68
7.1.320.0030.01015.33
7.1.310.0050.00515.81
7.1.300.0030.00615.22
7.1.290.0040.00815.58
7.1.280.0030.01315.67
7.1.270.0030.01015.51
7.1.260.0030.00915.66
7.1.250.0060.00915.53
7.1.240.0100.00315.36
7.1.230.0090.00015.36
7.1.220.0120.00415.65
7.1.210.0090.00015.27
7.1.200.0050.00615.61
7.1.190.0040.00815.52
7.1.180.0130.00715.51
7.1.170.0000.01415.51
7.1.160.0090.00615.55
7.1.150.0090.00615.68
7.1.140.0030.01415.60
7.1.130.0060.00915.71
7.1.120.0030.01015.61
7.1.110.0120.00315.51
7.1.100.0070.00716.69
7.1.90.0040.01115.32
7.1.80.0030.00615.53
7.1.70.0050.00716.24
7.1.60.0100.00917.43
7.1.50.0070.01016.17
7.1.40.0040.01115.40
7.1.30.0030.01215.45
7.1.20.0070.00715.51
7.1.10.0060.00615.71
7.1.00.0020.04618.68
7.0.330.0100.00715.27
7.0.320.0030.00915.24
7.0.310.0030.01015.36
7.0.300.0040.00715.43
7.0.290.0090.00915.34
7.0.280.0040.00415.00
7.0.270.0030.00615.21
7.0.260.0000.00915.22
7.0.250.0060.00615.09
7.0.240.0080.00415.24
7.0.230.0060.00314.98
7.0.220.0110.00415.11
7.0.210.0030.01315.22
7.0.200.0160.00614.88
7.0.190.0050.00515.36
7.0.180.0040.01115.48
7.0.170.0070.00715.09
7.0.160.0040.01114.98
7.0.150.0000.01315.20
7.0.140.0000.00915.07
7.0.130.0110.00315.25
7.0.120.0000.01215.39
7.0.110.0070.01015.05
7.0.100.0080.00815.15
7.0.90.0090.00915.33
7.0.80.0070.00715.27
7.0.70.0000.01115.30
7.0.60.0070.02218.38
7.0.50.0070.03016.48
7.0.40.0090.04216.71
7.0.30.0110.02316.66
7.0.20.0160.02016.86
7.0.10.0060.04516.68
7.0.00.0060.04916.65
5.6.400.0070.00714.09
5.6.390.0060.01013.87
5.6.380.0030.01014.35
5.6.370.0130.00013.88
5.6.360.0000.01114.19
5.6.350.0040.01514.42
5.6.340.0030.01013.66
5.6.330.0030.00914.28
5.6.320.0030.00914.07
5.6.310.0060.00613.96
5.6.300.0030.01013.99
5.6.290.0040.00814.26
5.6.280.0050.03817.62
5.6.270.0040.01414.00
5.6.260.0000.01714.14
5.6.250.0000.01614.26
5.6.240.0030.01014.19
5.6.230.0060.00714.15
5.6.220.0030.00914.02
5.6.210.0050.02617.44
5.6.200.0060.02315.94
5.6.190.0020.02917.31
5.6.180.0150.02817.17
5.6.170.0180.04217.39
5.6.160.0080.04217.16
5.6.150.0080.03016.27
5.6.140.0050.02216.00
5.6.130.0060.04416.05
5.6.120.0050.04717.66
5.6.110.0080.04517.53
5.6.100.0070.04317.64
5.6.90.0080.04017.58
5.6.80.0080.04317.10
5.6.70.0000.00914.00
5.6.60.0030.01013.93
5.6.50.0110.00414.15
5.6.40.0100.00614.11
5.6.30.0040.01113.94
5.6.20.0060.01014.11
5.6.10.0060.00614.02
5.6.00.0060.00613.77
5.5.380.0100.01013.93
5.5.370.0120.00413.88
5.5.360.0040.00814.14
5.5.350.0030.02517.31
5.5.340.0050.02616.13
5.5.330.0080.04117.25
5.5.320.0150.02717.17
5.5.310.0210.03817.12
5.5.300.0100.02715.80
5.5.290.0100.04215.97
5.5.280.0070.04617.26
5.5.270.0120.04017.55
5.5.260.0070.02717.49
5.5.250.0110.04217.29
5.5.240.0140.03817.23
5.5.230.0090.00613.71
5.5.220.0120.00313.63
5.5.210.0070.01013.73
5.5.200.0000.01713.84
5.5.190.0000.01713.96
5.5.180.0060.00613.89
5.5.170.0060.00314.17
5.5.160.0090.00313.76
5.5.150.0030.01014.10
5.5.140.0110.00313.82
5.5.130.0090.00614.15
5.5.120.0000.00813.96
5.5.110.0070.00713.77
5.5.100.0070.01014.02
5.5.90.0080.00413.66
5.5.80.0030.00913.64
5.5.70.0030.00713.79
5.5.60.0030.01013.59
5.5.50.0030.01014.02
5.5.40.0110.00413.91
5.5.30.0030.00713.75
5.5.20.0060.00313.94
5.5.10.0040.01213.79
5.5.00.0100.00313.45

preferences:
33.33 ms | 401 KiB | 5 Q