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; } $x = test()->setX('test'); var_dump($x);

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.40.0000.01518.58
8.3.30.0110.00318.89
8.3.20.0000.00820.20
8.3.10.0040.00423.48
8.3.00.0050.00319.97
8.2.170.0070.00722.96
8.2.160.0120.00320.39
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0030.00620.93
8.2.120.0040.00426.35
8.2.110.0110.00021.83
8.2.100.0070.00717.80
8.2.90.0000.00819.09
8.2.80.0030.00517.97
8.2.70.0060.00317.36
8.2.60.0050.00218.04
8.2.50.0040.00418.07
8.2.40.0030.00722.12
8.2.30.0000.00720.51
8.2.20.0040.00417.61
8.2.10.0050.00217.88
8.2.00.0040.00417.91
8.1.270.0100.00723.99
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0040.00722.02
8.1.230.0080.00317.77
8.1.220.0030.00517.74
8.1.210.0030.00918.77
8.1.200.0060.00317.36
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0000.00818.66
8.1.160.0040.00420.59
8.1.150.0040.00418.84
8.1.140.0000.00819.43
8.1.130.0000.00817.57
8.1.120.0030.00317.45
8.1.110.0040.00417.36
8.1.100.0060.00317.46
8.1.90.0000.00717.36
8.1.80.0040.00417.40
8.1.70.0040.00417.26
8.1.60.0060.00317.50
8.1.50.0040.00417.41
8.1.40.0000.00817.45
8.1.30.0100.00317.64
8.1.20.0060.00317.62
8.1.10.0050.00317.55
8.1.00.0000.00717.44
8.0.300.0080.00018.77
8.0.290.0030.00516.63
8.0.280.0040.00418.44
8.0.270.0000.00717.12
8.0.260.0030.00317.21
8.0.250.0030.00316.86
8.0.240.0030.00316.82
8.0.230.0090.00016.89
8.0.220.0030.00316.84
8.0.210.0070.00016.80
8.0.200.0040.00416.81
8.0.190.0030.00716.89
8.0.180.0000.00716.83
8.0.170.0050.00316.76
8.0.160.0040.00416.91
8.0.150.0040.00316.65
8.0.140.0000.00716.79
8.0.130.0030.00313.28
8.0.120.0040.00416.69
8.0.110.0040.00416.68
8.0.100.0000.00716.74
8.0.90.0070.00016.73
8.0.80.0090.01016.80
8.0.70.0000.00716.85
8.0.60.0000.00716.79
8.0.50.0000.00816.74
8.0.30.0080.01017.05
8.0.20.0090.01417.40
8.0.10.0070.00017.00
8.0.00.0120.00716.72
7.4.330.0050.00016.89
7.4.320.0030.00316.37
7.4.300.0040.00416.62
7.4.290.0060.00316.60
7.4.280.0080.00016.51
7.4.270.0000.00716.52
7.4.260.0040.00316.59
7.4.250.0000.00716.48
7.4.240.0030.00416.52
7.4.230.0000.00716.71
7.4.220.0130.00416.65
7.4.210.0090.00616.68
7.4.200.0070.00016.70
7.4.160.0070.01016.40
7.4.150.0120.00617.40
7.4.140.0090.01217.86
7.4.130.0120.00616.42
7.4.120.0100.01016.51
7.4.110.0130.00316.30
7.4.100.0060.01216.44
7.4.90.0060.01016.32
7.4.80.0030.01419.39
7.4.70.0060.01016.47
7.4.60.0120.00916.27
7.4.50.0060.01016.37
7.4.40.0030.01316.41
7.4.30.0070.01516.56
7.4.00.0030.00914.90
7.3.330.0030.00313.16
7.3.320.0000.00613.29
7.3.310.0000.00816.14
7.3.300.0030.00316.34
7.3.290.0080.00716.32
7.3.280.0050.01216.28
7.3.270.0090.01517.40
7.3.260.0170.00616.31
7.3.250.0080.01116.45
7.3.240.0160.00116.41
7.3.230.0060.01216.39
7.3.210.0080.00816.64
7.3.200.0030.02016.36
7.3.190.0130.00316.23
7.3.180.0060.00916.29
7.3.170.0160.00316.38
7.3.160.0100.00716.59
7.3.10.0090.00616.47
7.3.00.0070.00316.45
7.2.330.0030.01416.51
7.2.320.0090.01216.29
7.2.310.0090.00616.34
7.2.300.0140.00416.47
7.2.290.0090.00916.47
7.2.130.0060.00616.81
7.2.120.0060.00616.72
7.2.110.0080.00016.85
7.2.100.0040.00716.48
7.2.90.0140.00016.69
7.2.80.0060.00316.90
7.2.70.0040.00816.91
7.2.60.0050.01016.90
7.2.50.0060.00616.74
7.2.40.0060.00616.80
7.2.30.0110.00316.66
7.2.20.0040.00416.84
7.2.10.0070.00416.80
7.2.00.0020.01018.09
7.1.250.0060.00315.79
7.1.200.0080.00415.88
7.1.100.0030.01418.36
7.1.70.0050.00217.32
7.1.60.0030.01919.13
7.1.50.0000.02116.96
7.1.00.0100.07022.40
7.0.200.1080.00414.60
7.0.60.0130.07319.94
7.0.50.0100.06317.82
7.0.40.0070.05320.20
7.0.30.0330.07720.23
7.0.20.0300.08020.08
7.0.10.0070.04720.20
7.0.00.0000.05320.30
5.6.280.0070.06321.03
5.6.210.0130.07720.70
5.6.200.0100.08018.13
5.6.190.0030.08720.58
5.6.180.0230.07720.46
5.6.170.0230.08020.47
5.6.160.0070.06020.62
5.6.150.0030.08718.14
5.6.140.0100.04018.28
5.6.130.0030.06318.17
5.6.120.0130.04321.20
5.6.110.0030.04721.00
5.6.100.0130.07321.02
5.6.90.0070.04020.96
5.6.80.0130.07320.41
5.5.350.0100.08320.45
5.5.340.0130.07317.99
5.5.330.0170.07720.13
5.5.320.0600.06720.28
5.5.310.0230.07720.43
5.5.300.0030.08017.96
5.5.290.0030.04318.08
5.5.280.0070.05720.97
5.5.270.0130.07020.89
5.5.260.0100.08020.77
5.5.250.0100.08020.78
5.5.240.0230.07020.16

preferences:
47.69 ms | 400 KiB | 5 Q