3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Foo { private $x; public function setX($x) { $this->x = $x; } public function getX() { return $this->x; } } function test() : Foo { return new Foo; } var_dump(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.3.60.0140.00716.75
8.3.50.0120.00917.99
8.3.40.0120.00318.65
8.3.30.0120.00318.72
8.3.20.0040.00420.34
8.3.10.0080.00023.64
8.3.00.0000.00819.66
8.2.180.0110.01116.50
8.2.170.0080.00622.96
8.2.160.0070.00720.37
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00621.05
8.2.120.0050.00326.35
8.2.110.0060.00320.26
8.2.100.0200.00017.65
8.2.90.0040.00418.97
8.2.80.0030.00517.97
8.2.70.0080.00017.63
8.2.60.0040.00417.90
8.2.50.0000.00818.07
8.2.40.0000.00922.06
8.2.30.0040.00420.52
8.2.20.0000.00717.49
8.2.10.0000.00717.98
8.2.00.0090.00017.98
8.1.280.0130.00725.92
8.1.270.0090.00623.99
8.1.260.0080.00028.09
8.1.250.0080.00028.09
8.1.240.0040.00722.08
8.1.230.0070.00417.70
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0030.00617.22
8.1.190.0040.00417.00
8.1.180.0000.00818.10
8.1.170.0060.00318.52
8.1.160.0040.00420.63
8.1.150.0000.00718.86
8.1.140.0000.00819.45
8.1.130.0040.00417.45
8.1.120.0030.00617.23
8.1.110.0000.00717.35
8.1.100.0040.00417.32
8.1.90.0000.00717.33
8.1.80.0000.00717.32
8.1.70.0030.00317.23
8.1.60.0000.00817.42
8.1.50.0000.00817.37
8.1.40.0040.00417.48
8.1.30.0110.00517.59
8.1.20.0000.00717.48
8.1.10.0050.00217.39
8.1.00.0000.00817.38
8.0.300.0000.00918.77
8.0.290.0030.00516.58
8.0.280.0040.00418.37
8.0.270.0070.00017.23
8.0.260.0060.00017.13
8.0.250.0030.00316.82
8.0.240.0000.00616.83
8.0.230.0100.00016.91
8.0.220.0040.00416.84
8.0.210.0000.00716.75
8.0.200.0030.00316.79
8.0.190.0070.00316.79
8.0.180.0070.00016.90
8.0.170.0040.00416.80
8.0.160.0030.00516.89
8.0.150.0080.00016.75
8.0.140.0040.00416.71
8.0.130.0060.00013.21
8.0.120.0040.00416.83
8.0.110.0080.00016.84
8.0.100.0040.00316.62
8.0.90.0000.00716.71
8.0.80.0100.00616.84
8.0.70.0000.00716.63
8.0.60.0000.00716.89
8.0.50.0000.00716.83
8.0.30.0120.00716.99
8.0.20.0130.01017.40
8.0.10.0040.00417.06
8.0.00.0100.00716.70
7.4.330.0050.00016.67
7.4.320.0040.00416.48
7.4.300.0030.00316.52
7.4.290.0110.00016.45
7.4.280.0070.00016.42
7.4.270.0000.00716.52
7.4.260.0000.00716.45
7.4.250.0040.00416.41
7.4.240.0040.00316.47
7.4.230.0030.00316.44
7.4.220.0000.01816.57
7.4.210.0060.01016.37
7.4.200.0070.00016.32
7.4.160.0070.01416.44
7.4.150.0120.00917.40
7.4.140.0100.01517.86
7.4.130.0130.00716.44
7.4.120.0110.00616.41
7.4.110.0060.01116.48
7.4.100.0040.01416.54
7.4.90.0140.00316.28
7.4.80.0060.01119.39
7.4.70.0140.00416.24
7.4.60.0070.01016.39
7.4.50.0070.00716.29
7.4.40.0030.01316.46
7.4.30.0120.01216.54
7.4.10.0070.01015.06
7.4.00.0130.00314.95
7.3.330.0000.00713.18
7.3.320.0000.00513.18
7.3.310.0000.00716.29
7.3.300.0000.00716.35
7.3.290.0070.01116.27
7.3.280.0070.00816.31
7.3.270.0130.00817.40
7.3.260.0140.00916.30
7.3.250.0110.00716.33
7.3.240.0110.00616.36
7.3.230.0060.01116.39
7.3.210.0100.00616.22
7.3.200.0070.01416.25
7.3.190.0100.00716.32
7.3.180.0090.00916.52
7.3.170.0120.00916.57
7.3.160.0140.00316.35
7.3.130.0060.00914.80
7.3.120.0040.01114.77
7.3.110.0060.01214.79
7.3.100.0130.00314.94
7.3.90.0030.01014.73
7.3.80.0070.00714.88
7.3.70.0040.01114.71
7.3.60.0100.00314.68
7.3.50.0030.00614.78
7.3.40.0030.00714.77
7.3.30.0100.00614.47
7.3.20.0070.00716.70
7.3.10.0030.00616.62
7.3.00.0030.00916.39
7.2.330.0070.01116.45
7.2.320.0030.01416.21
7.2.310.0060.00916.42
7.2.300.0180.00016.55
7.2.290.0110.01116.18
7.2.260.0040.01515.05
7.2.250.0100.00714.60
7.2.240.0070.00714.99
7.2.230.0040.01114.99
7.2.220.0050.01114.61
7.2.210.0030.00614.77
7.2.200.0000.01514.82
7.2.190.0060.01014.94
7.2.180.0000.00914.61
7.2.170.0120.00314.93
7.2.160.0030.00914.75
7.2.150.0040.01116.71
7.2.140.0070.00716.85
7.2.130.0030.01016.36
7.2.120.0000.01216.57
7.2.110.0000.01116.53
7.2.100.0070.00716.87
7.2.90.0040.00816.85
7.2.80.0050.00516.96
7.2.70.0070.01016.81
7.2.60.0070.00516.78
7.2.50.0030.01216.61
7.2.40.0060.01216.86
7.2.30.0030.01316.59
7.2.20.0090.00616.45
7.2.10.0030.01316.75
7.2.00.0050.01017.97
7.1.330.0060.01015.48
7.1.320.0000.01215.95
7.1.310.0030.01015.84
7.1.300.0040.00815.83
7.1.290.0040.00815.70
7.1.280.0030.01015.88
7.1.270.0040.01215.77
7.1.260.0040.00415.83
7.1.250.0080.00815.77
7.1.240.0070.00715.61
7.1.230.0040.00815.66
7.1.220.0090.00615.46
7.1.210.0080.00415.61
7.1.200.0030.00815.65
7.1.190.0040.01215.66
7.1.180.0080.00615.68
7.1.170.0030.00715.82
7.1.160.0070.00715.67
7.1.150.0150.00015.32
7.1.140.0090.00315.78
7.1.130.0070.00415.76
7.1.120.0060.00915.72
7.1.110.0030.00615.78
7.1.100.0030.00917.00
7.1.90.0130.00015.61
7.1.80.0040.01115.36
7.1.70.0000.01116.20
7.1.60.0070.01017.41
7.1.50.0080.00516.38
7.1.40.0070.00315.79
7.1.30.0090.00315.76
7.1.20.0000.01415.73
7.1.10.0030.01415.79
7.1.00.0070.03819.07
7.0.330.0060.00915.27
7.0.320.0120.00415.27
7.0.310.0040.00715.07
7.0.300.0030.00615.35
7.0.290.0060.00915.14
7.0.280.0080.00315.27
7.0.270.0030.01015.35
7.0.260.0040.01115.27
7.0.250.0000.00915.32
7.0.240.0030.01315.30
7.0.230.0000.00915.46
7.0.220.0050.00515.43
7.0.210.0000.01315.48
7.0.200.0390.00515.13
7.0.190.0040.01015.46
7.0.180.0030.00715.10
7.0.170.0040.00415.45
7.0.160.0060.00815.53
7.0.150.0000.00915.13
7.0.140.0030.01215.53
7.0.130.0040.00815.23
7.0.120.0090.00615.41
7.0.110.0040.01615.46
7.0.100.0070.00715.46
7.0.90.0040.00815.41
7.0.80.0030.01415.38
7.0.70.0050.00315.31
7.0.60.0080.04117.55
7.0.50.0050.03216.61
7.0.40.0040.02616.72
7.0.30.0110.02816.83
7.0.20.0150.04216.83
7.0.10.0040.03816.76
7.0.00.0100.02516.78
5.6.400.0140.00014.25
5.6.390.0060.00614.14
5.6.380.0000.01413.99
5.6.370.0040.00914.21
5.6.360.0030.00714.17
5.6.350.0090.00614.23
5.6.340.0040.00714.10
5.6.330.0060.00914.06
5.6.320.0030.00914.18
5.6.310.0030.01313.89
5.6.300.0080.00614.29
5.6.290.0040.00414.41
5.6.280.0030.04017.54
5.6.270.0070.00714.17
5.6.260.0130.00614.32
5.6.250.0100.00714.32
5.6.240.0060.00814.11
5.6.230.0060.00713.98
5.6.220.0000.01014.15
5.6.210.0050.02317.39
5.6.200.0050.02916.33
5.6.190.0040.02517.33
5.6.180.0190.03017.30
5.6.170.0180.04117.34
5.6.160.0050.02517.38
5.6.150.0070.03016.22
5.6.140.0030.02816.18
5.6.130.0100.03716.14
5.6.120.0050.03117.65
5.6.110.0080.04217.67
5.6.100.0000.04317.49
5.6.90.0020.03017.52
5.6.80.0100.04017.15
5.6.70.0090.00913.93
5.6.60.0080.01114.13
5.6.50.0060.00614.05
5.6.40.0100.00714.03
5.6.30.0040.01114.12
5.6.20.0040.01313.94
5.6.10.0110.00714.14
5.6.00.0000.01614.20
5.5.380.0030.01313.93
5.5.370.0030.01214.02
5.5.360.0070.01014.41
5.5.350.0100.04217.11
5.5.340.0070.04016.07
5.5.330.0020.03017.14
5.5.320.0270.02217.21
5.5.310.0080.02717.22
5.5.300.0080.03016.17
5.5.290.0060.02816.19
5.5.280.0040.04217.37
5.5.270.0030.02617.65
5.5.260.0030.04017.24
5.5.250.0120.04017.17
5.5.240.0130.04517.13
5.5.230.0080.01113.85
5.5.220.0030.01413.90
5.5.210.0000.01013.93
5.5.200.0030.00913.91
5.5.190.0150.00013.97
5.5.180.0040.00713.97
5.5.170.0070.01013.73
5.5.160.0000.01513.96
5.5.150.0040.01114.09
5.5.140.0100.00313.90
5.5.130.0030.00913.58
5.5.120.0120.00313.57
5.5.110.0080.00814.27
5.5.100.0040.01214.09
5.5.90.0040.01113.91
5.5.80.0090.00614.23
5.5.70.0040.01113.83
5.5.60.0090.00613.99
5.5.50.0040.01114.15
5.5.40.0090.00314.07
5.5.30.0030.00714.18
5.5.20.0040.00813.82
5.5.10.0100.00714.05
5.5.00.0030.01013.99

preferences:
37.39 ms | 400 KiB | 5 Q