3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @property int $id * @property string $text */ class Foo { var $id; var $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.0090.01218.18
8.3.50.0120.00521.20
8.3.40.0070.00718.71
8.3.30.0120.00318.43
8.3.20.0050.00318.28
8.3.10.0050.00320.79
8.3.00.0030.00719.56
8.2.180.0060.01516.50
8.2.170.0110.00422.96
8.2.160.0120.00320.23
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0070.00020.95
8.2.110.0030.00620.39
8.2.100.0070.00417.66
8.2.90.0040.00419.09
8.2.80.0040.00419.00
8.2.70.0000.00817.35
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0050.00218.03
8.2.30.0000.00821.10
8.2.20.0000.00717.55
8.2.10.0060.00317.48
8.2.00.0050.00317.57
8.1.280.0000.01425.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.39
8.1.230.0080.00421.00
8.1.220.0040.00418.77
8.1.210.0040.00418.89
8.1.200.0060.00317.23
8.1.190.0000.00717.40
8.1.180.0000.00818.10
8.1.170.0070.00318.33
8.1.160.0070.00018.67
8.1.150.0000.00718.50
8.1.140.0040.00417.21
8.1.130.0070.00017.74
8.1.120.0000.00717.32
8.1.110.0030.00517.37
8.1.100.0030.00317.41
8.1.90.0040.00417.29
8.1.80.0040.00417.33
8.1.70.0040.00417.24
8.1.60.0030.00617.41
8.1.50.0040.00417.28
8.1.40.0040.00417.32
8.1.30.0040.00417.50
8.1.20.0040.00417.47
8.1.10.0000.00717.30
8.1.00.0000.00817.21
8.0.300.0070.00019.91
8.0.290.0070.00017.04
8.0.280.0000.00718.39
8.0.270.0000.00717.15
8.0.260.0050.00316.63
8.0.250.0000.00816.85
8.0.240.0040.00416.91
8.0.230.0030.00316.77
8.0.220.0040.00416.64
8.0.210.0040.00416.61
8.0.200.0030.00316.83
8.0.190.0040.00416.73
8.0.180.0030.00316.79
8.0.170.0030.00516.68
8.0.160.0030.00616.75
8.0.150.0050.00216.74
8.0.140.0050.00216.76
8.0.130.0000.00713.21
8.0.120.0000.00816.85
8.0.110.0040.00416.68
8.0.100.0070.00016.84
8.0.90.0000.00716.77
8.0.80.0100.01016.82
8.0.70.0000.00816.65
8.0.60.0080.00016.61
8.0.50.0030.00516.61
8.0.30.0100.01017.00
8.0.20.0150.00517.40
8.0.10.0050.00316.70
8.0.00.0140.00816.69
7.4.330.0000.00516.74
7.4.320.0060.00016.31
7.4.300.0030.00316.49
7.4.290.0070.00016.40
7.4.280.0030.00316.48
7.4.270.0000.00616.54
7.4.260.0030.00313.16
7.4.250.0040.00416.35
7.4.240.0000.00716.29
7.4.230.0070.00016.49
7.4.220.0000.02016.42
7.4.210.0080.00616.44
7.4.200.0000.00716.42
7.4.190.0030.00316.31
7.4.160.0090.00616.46
7.4.150.0120.00617.40
7.4.140.0090.00817.86
7.4.130.0140.00816.41
7.4.120.0100.00716.33
7.4.110.0110.00716.40
7.4.100.0070.01016.37
7.4.90.0060.01216.32
7.4.80.0120.00619.39
7.4.70.0100.00716.48
7.4.60.0000.01616.32
7.4.50.0040.00416.25
7.4.40.0080.00622.77
7.4.30.0120.00916.33
7.4.00.0030.01014.70
7.3.330.0050.00013.22
7.3.320.0000.00613.22
7.3.310.0030.00316.06
7.3.300.0060.00016.01
7.3.290.0140.00716.20
7.3.280.0060.01016.19
7.3.270.0090.00917.40
7.3.260.0140.00518.24
7.3.250.0110.00516.32
7.3.240.0080.00816.46
7.3.230.0070.01016.39
7.3.210.0030.01316.28
7.3.200.0060.01019.39
7.3.190.0200.00316.20
7.3.180.0090.00616.27
7.3.170.0060.00916.27
7.3.160.0140.00016.30
7.3.120.0080.00814.64
7.3.10.0060.01616.27
7.3.00.0100.01416.21
7.2.330.0030.01416.38
7.2.320.0080.01716.60
7.2.310.0100.00616.54
7.2.300.0140.00316.34
7.2.290.0070.01016.27
7.2.130.0080.01216.46
7.2.120.0100.01016.12
7.2.110.0100.01716.30
7.2.100.0070.01516.31
7.2.90.0210.00916.64
7.2.80.0090.00416.26
7.2.70.0230.00716.76
7.2.60.0090.00916.37
7.2.50.0200.01016.30
7.2.40.0100.01416.00
7.2.30.0140.00316.07
7.2.20.0070.01016.20
7.2.10.0070.01016.33
7.2.00.0130.00717.86
7.1.250.0160.00815.36
7.1.200.0030.01015.71
7.1.100.0030.00618.09
7.1.70.0030.00917.02
7.1.60.0000.01416.95
7.1.50.0030.00716.83
7.1.40.0060.00616.43
7.1.30.0000.01116.43
7.1.20.0040.00816.88
7.1.10.0030.00616.23
7.1.00.0050.00316.48
7.0.200.0000.01016.79
7.0.190.0000.00716.25
7.0.180.0040.00416.11
7.0.170.0000.00716.01
7.0.160.0040.00416.05
7.0.150.0000.00716.15
7.0.140.0000.00816.17
7.0.130.0000.00816.64
7.0.120.0000.00816.53
7.0.110.0000.00816.29
7.0.100.0060.00316.14
7.0.90.0030.00716.04
7.0.80.0030.00716.18
7.0.70.0000.01316.21
7.0.60.0080.00416.09
7.0.50.0060.00616.44
7.0.40.0040.00414.70
7.0.30.0030.00714.70
7.0.20.0080.00014.70
7.0.10.0050.00314.70
7.0.00.0000.00814.70
5.6.300.0070.03620.68
5.6.290.0030.04520.80
5.6.280.0000.04820.89
5.6.270.0090.03820.91
5.6.260.0070.03920.83
5.6.250.0060.03921.00
5.6.240.0030.04220.88
5.6.230.0030.04521.07
5.6.220.0260.05220.83
5.6.210.0030.04621.02
5.6.200.0000.04820.98
5.6.190.0030.04120.84
5.6.180.0060.04420.96
5.6.170.0100.03920.81
5.6.160.0030.04120.83
5.6.150.0000.04721.00
5.6.140.0100.04920.94
5.6.130.0000.04420.81
5.6.120.0100.03521.02
5.6.110.0030.04620.77
5.6.100.0000.05521.02
5.6.90.0000.04420.95
5.6.80.0030.03820.26
5.6.70.0070.03620.35
5.6.60.0030.04520.09
5.6.50.0030.04420.21
5.6.40.0070.03720.36
5.6.30.0060.03820.39
5.6.20.0070.05120.23
5.6.10.0030.04020.17
5.6.00.0060.03820.30
5.5.380.0030.04417.54
5.5.370.0030.04817.69
5.5.360.0070.03617.47
5.5.350.0040.04217.62
5.5.340.0060.03818.18
5.5.330.0100.03918.09
5.5.320.0230.04317.84
5.5.310.0000.04318.18
5.5.300.0000.04718.08
5.5.290.0070.04017.71
5.5.280.0000.05017.74
5.5.270.0000.04318.07
5.5.260.0210.04318.00
5.5.250.0030.04217.84
5.5.240.0030.03817.09
5.5.230.0030.03817.47
5.5.220.0030.03717.46
5.5.210.0000.04517.46
5.5.200.0000.04217.36
5.5.190.0000.04817.44
5.5.180.0240.04917.09
5.5.160.0200.04317.44
5.5.150.0100.04917.44
5.5.140.0290.02917.38
5.5.130.0030.04417.21
5.5.120.0100.03217.38
5.5.110.0030.04617.18
5.5.100.0000.04617.37
5.5.90.0030.03717.25
5.5.80.0000.04217.33
5.5.70.0030.06317.33
5.5.60.0040.03617.08
5.5.50.0030.04416.97
5.5.40.0030.04017.35
5.5.30.0030.04217.07
5.5.20.0100.03317.34
5.5.10.0000.04617.24
5.5.00.0030.04116.98
5.4.450.0100.04119.20
5.4.440.0070.04319.34
5.4.430.0030.04119.21
5.4.420.0070.04019.52
5.4.410.0000.04419.12
5.4.400.0000.04518.93
5.4.390.0000.04518.84
5.4.380.0070.03718.93
5.4.370.0000.04218.84
5.4.360.0000.04919.11
5.4.350.0070.03419.16
5.4.340.0120.03419.02
5.4.320.0070.06319.11
5.4.310.0070.06519.11
5.4.300.0160.05418.94
5.4.290.0070.03719.11
5.4.280.0040.03918.86
5.4.270.0030.04519.08
5.4.260.0090.03518.86
5.4.250.0000.04119.02
5.4.240.0030.04518.92
5.4.230.0000.04618.85
5.4.220.0030.04119.08
5.4.210.0030.05419.18
5.4.200.0070.04119.01
5.4.190.0030.06718.92
5.4.180.0030.04118.86
5.4.170.0030.04319.02
5.4.160.0000.05418.91
5.4.150.0030.05719.16
5.4.140.0000.04316.63
5.4.130.0040.03616.62
5.4.120.0030.04316.62
5.4.110.0000.03916.54
5.4.100.0030.03816.57
5.4.90.0070.03016.60
5.4.80.0070.03316.39
5.4.70.0070.03816.64
5.4.60.0040.03916.63
5.4.50.0030.03816.33
5.4.40.0030.03716.47
5.4.30.0060.03116.69
5.4.20.0000.04516.67
5.4.10.0000.04616.65
5.4.00.0070.03416.17
5.3.290.0030.03914.97
5.3.280.0060.03514.88
5.3.270.0100.03514.79
5.3.260.0130.03814.70
5.3.250.0040.03614.89
5.3.240.0000.04014.70
5.3.230.0030.04014.80
5.3.220.0030.03514.70
5.3.210.0070.03314.86
5.3.200.0030.03614.84
5.3.190.0090.03114.84
5.3.180.0000.04014.70
5.3.170.0000.04114.85
5.3.160.0030.04414.76
5.3.150.0060.04314.70
5.3.140.0030.04014.85
5.3.130.0000.04114.92
5.3.120.0130.04214.70
5.3.110.0000.04914.85
5.3.100.0300.03314.70
5.3.90.0000.04414.70
5.3.80.0000.04014.70
5.3.70.0000.03714.70
5.3.60.0030.03514.70
5.3.50.0030.04514.70
5.3.40.0070.03414.70
5.3.30.0000.04414.70
5.3.20.0060.03214.70
5.3.10.0060.03314.70
5.3.00.0000.04014.70
5.2.170.0040.03214.70
5.2.160.0030.02814.70
5.2.150.0000.03514.70
5.2.140.0070.02614.70
5.2.130.0040.02914.70
5.2.120.0060.03214.70
5.2.110.0030.03314.70
5.2.100.0060.02714.70
5.2.90.0030.03014.70
5.2.80.0040.02914.70
5.2.70.0070.02614.70
5.2.60.0060.02814.70
5.2.50.0030.02814.70
5.2.40.0000.03514.70
5.2.30.0000.03114.70
5.2.20.0030.02814.70
5.2.10.0070.02914.70
5.2.00.0040.02814.70
5.1.60.0000.02614.70
5.1.50.0000.03514.70
5.1.40.0030.02414.70
5.1.30.0000.03314.70
5.1.20.0000.02814.70
5.1.10.0000.03014.70
5.1.00.0030.02714.70
5.0.50.0000.02414.70
5.0.40.0040.01814.70
5.0.30.0030.03014.70
5.0.20.0000.02314.70
5.0.10.0000.02214.70
5.0.00.0070.02714.70
4.4.90.0030.01314.70
4.4.80.0030.01314.70
4.4.70.0030.01714.70
4.4.60.0000.01814.70
4.4.50.0080.01014.70
4.4.40.0040.02214.70
4.4.30.0000.01714.70
4.4.20.0030.01314.70
4.4.10.0110.01814.70
4.4.00.0030.02314.70
4.3.110.0000.01714.70
4.3.100.0000.01714.70
4.3.90.0000.01814.70
4.3.80.0060.02014.70
4.3.70.0030.01314.70
4.3.60.0030.01414.70
4.3.50.0060.01414.70
4.3.40.0030.02314.70
4.3.30.0060.01214.70
4.3.20.0060.01714.70
4.3.10.0060.01214.70
4.3.00.0000.01614.70

preferences:
53.51 ms | 401 KiB | 5 Q