3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @property int $id * @property string $text */ class Foo { protected $id; protected $text; public function __get($name) { $methodName = 'get' . ucfirst($name); return method_exists($this, $methodName) ? $this->{$methodName}() : $this->{$name}; } public function __set($name, $value) { $methodName = 'set' . ucfirst($name); return method_exists($this, $methodName) ? $this->{$methodName}($value) : $this->{$name} = $value; } public function __isset($name) { return property_exists($this, $name); } public function setText($text) { $this->text = $text . ' World!'; } }

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.0150.00018.55
8.3.50.0090.00821.21
8.3.40.0120.00318.59
8.3.30.0120.00618.65
8.3.20.0030.00618.60
8.3.10.0080.00020.83
8.3.00.0030.00619.66
8.2.180.0090.00916.63
8.2.170.0070.00722.96
8.2.160.0060.00920.38
8.2.150.0090.00924.18
8.2.140.0090.00024.66
8.2.130.0090.00026.16
8.2.120.0080.00021.18
8.2.110.0040.00420.31
8.2.100.0080.00417.79
8.2.90.0000.00818.03
8.2.80.0030.00619.31
8.2.70.0000.00917.63
8.2.60.0030.00617.80
8.2.50.0030.00618.07
8.2.40.0000.00818.09
8.2.30.0030.00521.16
8.2.20.0030.00517.54
8.2.10.0040.00417.57
8.2.00.0070.00317.55
8.1.280.0070.01025.92
8.1.270.0040.00423.99
8.1.260.0100.00726.35
8.1.250.0050.00328.09
8.1.240.0000.00922.14
8.1.230.0060.00622.63
8.1.220.0050.00317.74
8.1.210.0030.00718.91
8.1.200.0040.00417.23
8.1.190.0040.00417.36
8.1.180.0030.00518.10
8.1.170.0060.00318.52
8.1.160.0040.00418.80
8.1.150.0000.00718.43
8.1.140.0000.00817.27
8.1.130.0000.00717.78
8.1.120.0040.00417.38
8.1.110.0000.00817.24
8.1.100.0040.00417.27
8.1.90.0000.00717.34
8.1.80.0060.00317.38
8.1.70.0000.00717.36
8.1.60.0060.00317.39
8.1.50.0000.00817.24
8.1.40.0000.00917.38
8.1.30.0000.00817.59
8.1.20.0040.00417.54
8.1.10.0080.00017.41
8.1.00.0000.00817.38
8.0.300.0040.00420.07
8.0.290.0040.00417.05
8.0.280.0000.00718.24
8.0.270.0000.00817.16
8.0.260.0030.00616.71
8.0.250.0080.00016.85
8.0.240.0000.00816.74
8.0.230.0030.00516.72
8.0.220.0040.00416.67
8.0.210.0000.00716.67
8.0.200.0070.00016.78
8.0.190.0030.00516.85
8.0.180.0040.00416.83
8.0.170.0040.00416.77
8.0.160.0050.00316.79
8.0.150.0070.00016.74
8.0.140.0000.00816.63
8.0.130.0030.00313.25
8.0.120.0000.00816.77
8.0.110.0000.00716.65
8.0.100.0040.00416.81
8.0.90.0040.00416.74
8.0.80.0060.00916.68
8.0.70.0030.00516.84
8.0.60.0040.00416.67
8.0.50.0000.00916.86
8.0.30.0070.01116.88
8.0.20.0110.00717.40
8.0.10.0040.00416.97
8.0.00.0100.01016.63
7.4.330.0000.00516.89
7.4.320.0040.00416.50
7.4.300.0000.00716.48
7.4.290.0050.00216.43
7.4.280.0000.00816.29
7.4.270.0050.00316.34
7.4.260.0000.00613.19
7.4.250.0000.00716.42
7.4.240.0000.00716.34
7.4.230.0000.00716.23
7.4.220.0240.01716.28
7.4.210.0050.00916.33
7.4.200.0070.00016.37
7.4.190.0000.00716.55
7.4.160.0060.01116.44
7.4.150.0040.01217.40
7.4.140.0140.00517.86
7.4.130.0060.01316.38
7.4.120.0080.00916.34
7.4.110.0180.00316.37
7.4.100.0040.01316.59
7.4.90.0170.00016.28
7.4.80.0120.00919.39
7.4.70.0060.01016.32
7.4.60.0100.00716.34
7.4.50.0000.00816.35
7.4.40.0110.00322.77
7.4.30.0070.01016.38
7.4.00.0100.00714.90
7.3.330.0030.00313.13
7.3.320.0060.00013.16
7.3.310.0080.00016.04
7.3.300.0070.00016.18
7.3.290.0060.00916.21
7.3.280.0040.01216.12
7.3.270.0130.00317.40
7.3.260.0090.00818.24
7.3.250.0150.00516.43
7.3.240.0160.00016.40
7.3.230.0080.00816.53
7.3.210.0070.01016.17
7.3.200.0110.01119.39
7.3.190.0130.00716.18
7.3.180.0070.01016.43
7.3.170.0070.01016.27
7.3.160.0150.00416.20
7.3.120.0040.01414.64
7.3.110.0070.01014.58
7.3.100.0060.00914.62
7.3.90.0040.00714.73
7.3.80.0060.00914.85
7.3.70.0000.01114.55
7.3.60.0000.01114.55
7.3.50.0080.00414.52
7.3.40.0060.00314.28
7.3.30.0000.01514.57
7.3.20.0030.01016.58
7.3.10.0090.00616.53
7.3.00.0070.00716.34
7.2.330.0040.01316.34
7.2.320.0080.01216.27
7.2.310.0130.00416.35
7.2.300.0090.00916.33
7.2.290.0110.00616.37
7.2.250.0030.01314.77
7.2.240.0070.00714.63
7.2.230.0030.01014.54
7.2.220.0120.00015.08
7.2.210.0110.00614.73
7.2.200.0080.00414.73
7.2.190.0030.00614.68
7.2.180.0090.00314.55
7.2.170.0000.00914.94
7.2.00.0130.01019.31
7.1.330.0070.00715.60
7.1.320.0030.00915.78
7.1.310.0050.00515.48
7.1.300.0000.01315.67
7.1.290.0090.00615.69
7.1.280.0060.00615.43
7.1.270.0030.01015.49
7.1.260.0060.00315.59
7.1.100.0000.01017.76
7.1.70.0030.00517.04
7.1.60.0030.00817.20
7.1.50.0030.00717.04
7.1.40.0040.01117.04
7.1.30.0000.01217.04
7.1.20.0110.00017.04
7.1.10.0000.00817.04
7.1.00.0000.00717.04
7.0.200.0000.00717.04
7.0.190.0040.00417.04
7.0.180.0040.00817.04
7.0.170.0000.00817.04
7.0.160.0030.01017.04
7.0.150.0000.00817.04
7.0.140.0100.00017.04
7.0.130.0080.00317.04
7.0.120.0030.00717.04
7.0.110.0000.00817.04
7.0.100.0070.00317.04
7.0.90.0060.00317.04
7.0.80.0050.00317.04
7.0.70.0000.00817.04
7.0.60.0040.00417.04
7.0.50.0060.00317.04
7.0.40.0030.00517.04
7.0.30.0000.01517.04
7.0.20.0000.00717.04
7.0.10.0000.00717.04
7.0.00.0000.00717.04
5.6.300.0130.03320.88
5.6.290.0030.04920.90
5.6.280.0100.06121.08
5.6.270.0000.04521.11
5.6.260.0030.07620.99
5.6.250.0070.04120.82
5.6.240.0070.05620.91
5.6.230.0100.03620.87
5.6.220.0070.03920.91
5.6.210.0130.03021.02
5.6.200.0000.07120.88
5.6.190.0030.04420.96
5.6.180.0030.04121.04
5.6.170.0030.04120.88
5.6.160.0030.04520.87
5.6.150.0030.04121.00
5.6.140.0030.05320.82
5.6.130.0070.08020.93
5.6.120.0060.03920.96
5.6.110.0030.04020.94
5.6.100.0000.04521.02
5.6.90.0070.04220.98
5.6.80.0070.04620.16
5.6.70.0000.04320.33
5.6.60.0200.03320.21
5.6.50.0120.03120.42
5.6.40.0070.03720.22
5.6.30.0030.04120.21
5.6.20.0030.04320.38
5.6.10.0030.04420.29
5.6.00.0030.04120.30
5.5.380.0160.02917.63
5.5.370.0000.04417.65
5.5.360.0100.03617.40
5.5.350.0100.04617.61
5.5.340.0040.04218.01
5.5.330.0000.04418.13
5.5.320.0000.04718.09
5.5.310.0030.04417.84
5.5.300.0190.03617.70
5.5.290.0030.04117.86
5.5.280.0030.04117.71
5.5.270.0040.04118.07
5.5.260.0030.04517.86
5.5.250.0090.03717.84
5.5.240.0030.03617.09
5.5.230.0060.03917.44
5.5.220.0070.04117.21
5.5.210.0000.04417.24
5.5.200.0200.03317.35
5.5.190.0030.04817.44
5.5.180.0000.04117.41
5.5.160.0030.03817.44
5.5.150.0030.04617.52
5.5.140.0030.03617.38
5.5.130.0030.06917.48
5.5.120.0030.03717.38
5.5.110.0030.04717.47
5.5.100.0000.04817.39
5.5.90.0000.04217.25
5.5.80.0000.04317.29
5.5.70.0030.03817.29
5.5.60.0000.04517.34
5.5.50.0030.05717.37
5.5.40.0030.05817.33
5.5.30.0000.04017.41
5.5.20.0030.07917.37
5.5.10.0070.06217.36
5.5.00.0030.03817.36
5.4.450.0100.04019.21
5.4.440.0040.04019.41
5.4.430.0070.03619.34
5.4.420.0070.04219.34
5.4.410.0070.03919.30
5.4.400.0030.04019.12
5.4.390.0060.03919.11
5.4.380.0000.04419.04
5.4.370.0000.04619.11
5.4.360.0090.03418.95
5.4.350.0030.03619.16
5.4.340.0130.03219.19
5.4.320.0030.04119.08
5.4.310.0070.06619.17
5.4.300.0000.03919.12
5.4.290.0100.04818.90
5.4.280.0030.03919.16
5.4.270.0100.04518.95
5.4.260.0170.03819.16
5.4.250.0070.03419.07
5.4.240.0040.03519.18
5.4.230.0070.04619.02
5.4.220.0000.06619.12
5.4.210.0060.05518.88
5.4.200.0030.04318.98
5.4.190.0030.07218.97
5.4.180.0070.07319.18
5.4.170.0070.03718.95
5.4.160.0000.07218.94
5.4.150.0070.03619.18
5.4.140.0030.03517.04
5.4.130.0070.05417.04
5.4.120.0000.03817.04
5.4.110.0070.05917.04
5.4.100.0030.03517.04
5.4.90.0060.03217.04
5.4.80.0030.03417.04
5.4.70.0100.02617.04
5.4.60.0000.03717.04
5.4.50.0000.03817.04
5.4.40.0030.03417.04
5.4.30.0060.05517.04
5.4.20.0030.03417.04
5.4.10.0030.03817.04
5.4.00.0000.04217.04
5.3.290.0070.03317.04
5.3.280.0100.04017.04
5.3.270.0100.06417.04
5.3.260.0030.04017.04
5.3.250.0030.03617.04
5.3.240.0060.03217.04
5.3.230.0070.03917.04
5.3.220.0000.04217.04
5.3.210.0070.03317.04
5.3.200.0070.03317.04
5.3.190.0000.03917.04
5.3.180.0030.03617.04
5.3.170.0060.03217.04
5.3.160.0070.03417.04
5.3.150.0030.04217.04
5.3.140.0060.03217.04
5.3.130.0030.03617.04
5.3.120.0000.04417.04
5.3.110.0000.04017.04
5.3.100.0090.03117.04
5.3.90.0100.03217.04
5.3.80.0030.03417.04
5.3.70.0060.03417.04
5.3.60.0000.03917.04
5.3.50.0030.03517.04
5.3.40.0000.04217.04
5.3.30.0000.03817.04
5.3.20.0000.03717.04
5.3.10.0000.04317.04
5.3.00.0030.03517.04
5.2.170.0030.03117.04
5.2.160.0060.02517.04
5.2.150.0040.03017.04
5.2.140.0030.03117.04
5.2.130.0040.02917.04
5.2.120.0030.03017.04
5.2.110.0070.02717.04
5.2.100.0030.02717.04
5.2.90.0030.02717.04
5.2.80.0200.02417.04
5.2.70.0000.03417.04
5.2.60.0000.03117.04
5.2.50.0000.03517.04
5.2.40.0030.03417.04
5.2.30.0030.03117.04
5.2.20.0060.02617.04
5.2.10.0100.03017.04
5.2.00.0030.03017.04
5.1.60.0040.03217.04
5.1.50.0030.02617.04
5.1.40.0000.02617.04
5.1.30.0040.02517.04
5.1.20.0000.03417.04
5.1.10.0000.02717.04
5.1.00.0000.02717.04
5.0.50.0000.02217.04
5.0.40.0030.01917.04
5.0.30.0000.03517.04
5.0.20.0000.02617.04
5.0.10.0030.02017.04
5.0.00.0000.03317.04
4.4.90.0000.01717.04
4.4.80.0030.01517.04
4.4.70.0000.01717.04
4.4.60.0030.01317.04
4.4.50.0000.01617.04
4.4.40.0030.02317.04
4.4.30.0000.01717.04
4.4.20.0030.01417.04
4.4.10.0000.01617.04
4.4.00.0000.03217.04
4.3.110.0030.01317.04
4.3.100.0100.01017.04
4.3.90.0060.01217.04
4.3.80.0000.02817.04
4.3.70.0040.01417.04
4.3.60.0030.01417.04
4.3.50.0000.01817.04
4.3.40.0000.02917.04
4.3.30.0030.01517.04
4.3.20.0000.02017.04
4.3.10.0000.01917.04
4.3.00.0060.01217.04

preferences:
45.24 ms | 401 KiB | 5 Q