3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $a; private $b; public function __construct() { unset($this->a, $this->b); } public function __get(string $name) { $this->a = 123; $this->b = 'abc'; return $this->$name; } public function saySomething() : string { return $this->a . $this->b; } } echo (new Foo())->saySomething();

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.0110.00418.43
8.3.50.0040.01118.27
8.3.40.0110.00418.68
8.3.30.0000.01418.84
8.3.20.0030.00620.82
8.3.10.0040.00423.61
8.3.00.0040.00422.34
8.2.180.0110.00418.41
8.2.170.0140.00022.96
8.2.160.0070.01022.17
8.2.150.0080.00024.18
8.2.140.0100.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00220.87
8.2.110.0030.00622.07
8.2.100.0080.00417.78
8.2.90.0000.00817.63
8.2.80.0000.00917.97
8.2.70.0000.00818.04
8.2.60.0030.00618.34
8.2.50.0040.00418.10
8.2.40.0080.00019.34
8.2.30.0000.00819.36
8.2.20.0000.00717.95
8.2.10.0040.00419.24
8.2.00.0040.00418.05
8.1.280.0110.00425.92
8.1.270.0000.00923.76
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.95
8.1.230.0090.00319.15
8.1.220.0000.00817.76
8.1.210.0000.00818.77
8.1.200.0060.00317.36
8.1.190.0050.00317.10
8.1.180.0000.00818.10
8.1.170.0080.00018.64
8.1.160.0030.00618.91
8.1.150.0000.00818.85
8.1.140.0060.00320.26
8.1.130.0040.00417.45
8.1.120.0000.00817.36
8.1.110.0030.00517.38
8.1.100.0040.00417.45
8.1.90.0000.00717.36
8.1.80.0040.00417.43
8.1.70.0000.00717.29
8.1.60.0000.00717.48
8.1.50.0050.00317.45
8.1.40.0000.00917.56
8.1.30.0030.00517.66
8.1.20.0040.00717.74
8.1.10.0040.00417.54
8.1.00.0080.00017.54
8.0.300.0040.00419.66
8.0.290.0030.00616.63
8.0.280.0040.00418.46
8.0.270.0000.00717.14
8.0.260.0030.00316.82
8.0.250.0000.00716.99
8.0.240.0040.00416.88
8.0.230.0030.00716.83
8.0.220.0030.00316.92
8.0.210.0070.00016.89
8.0.200.0060.00016.96
8.0.190.0000.00816.85
8.0.180.0040.00416.91
8.0.170.0030.00516.82
8.0.160.0000.00816.89
8.0.150.0000.00716.81
8.0.140.0040.00416.73
8.0.130.0000.00513.37
8.0.120.0000.00916.84
8.0.110.0000.00716.92
8.0.100.0040.00416.77
8.0.90.0040.00416.85
8.0.80.0040.01216.90
8.0.70.0000.00816.93
8.0.60.0050.00316.82
8.0.50.0050.00316.77
8.0.30.0130.00617.14
8.0.20.0090.01317.11
8.0.10.0040.00416.95
8.0.00.0050.01316.82
7.4.330.0060.00015.55
7.4.320.0030.00516.57
7.4.300.0030.00316.48
7.4.290.0000.00616.50
7.4.280.0000.00816.34
7.4.270.0050.00316.46
7.4.260.0030.00316.39
7.4.250.0070.00016.33
7.4.240.0050.00216.40
7.4.230.0030.00316.27
7.4.220.0050.00316.63
7.4.210.0070.01016.49
7.4.200.0040.00416.41
7.4.160.0110.00516.60
7.4.140.0080.01017.86
7.4.130.0030.01616.58
7.4.120.0080.01216.46
7.4.110.0060.01016.74
7.4.100.0060.01516.54
7.4.90.0140.00316.63
7.4.80.0060.01219.39
7.4.70.0100.00616.51
7.4.60.0150.00916.64
7.4.50.0080.00816.66
7.4.40.0100.00616.32
7.4.20.0110.01216.25
7.4.10.0140.00816.50
7.4.00.0070.00915.55
7.3.330.0050.00013.32
7.3.320.0000.00613.23
7.3.310.0050.00216.47
7.3.300.0000.00716.33
7.3.290.0030.00316.24
7.3.280.0060.01116.36
7.3.260.0100.00916.56
7.3.240.0100.00716.47
7.3.230.0100.00616.60
7.3.210.0040.01116.45
7.3.200.0110.01116.59
7.3.190.0060.01616.41
7.3.180.0140.00316.43
7.3.170.0190.00416.53
7.3.160.0060.01016.32
7.3.140.0160.00616.45
7.3.130.0090.01216.50
7.3.120.0050.01415.65
7.3.110.0120.00815.66
7.3.100.0060.00915.74
7.3.90.0080.00715.67
7.3.80.0090.00815.57
7.3.70.0030.01215.63
7.3.60.0080.00915.36
7.3.50.0110.01015.64
7.3.40.0120.00615.59
7.3.30.0100.00914.91
7.3.20.2550.00815.08
7.3.10.2020.00815.19
7.3.00.0760.00915.12
7.2.330.0060.01216.43
7.2.320.0120.00616.64
7.2.310.0100.00616.52
7.2.300.0070.01416.73
7.2.290.0080.00816.74
7.2.270.0050.01416.78
7.2.260.0110.01116.71
7.2.250.0100.00915.72
7.2.240.0060.01215.75
7.2.230.0050.01015.99
7.2.220.0080.00915.70
7.2.210.0050.01215.70
7.2.200.0060.00915.76
7.2.190.0070.00815.77
7.2.180.0050.01515.88
7.2.170.0120.00415.63
7.2.160.0100.00815.07
7.2.150.2260.01215.10
7.2.140.1580.00715.20
7.2.130.2150.00915.17
7.2.120.0970.00815.08
7.2.110.0510.01015.16
7.2.100.0690.00815.10
7.2.90.0890.00815.21
7.2.80.0620.00715.05
7.2.70.0780.00715.08
7.2.60.0770.00515.09
7.2.50.0710.00715.11
7.2.40.0690.00715.08
7.2.30.0960.00615.17
7.2.20.0950.01015.02
7.2.10.0870.00515.16
7.2.00.0740.00515.15
7.1.330.0090.00715.50
7.1.320.0070.01115.62
7.1.310.0130.00715.66
7.1.300.0020.01315.57
7.1.290.0210.00815.54
7.1.280.0050.01115.55
7.1.270.3340.00814.19
7.1.260.0770.00714.22
7.1.250.2070.00713.96
7.1.240.0100.01015.39
7.1.230.0160.00415.33
7.1.220.0110.01815.35
7.1.210.0070.01515.25
7.1.200.0130.01315.25
7.1.190.0030.01315.45
7.1.180.0210.00615.30
7.1.170.0000.02215.49
7.1.160.0110.00715.33
7.1.150.0070.01315.54
7.1.140.0220.00715.40
7.1.130.0150.00815.31
7.1.120.0080.01215.20
7.1.110.0130.01015.29
7.1.100.0030.02015.25
7.1.90.0100.01415.35
7.1.80.0110.01115.27
7.1.70.0150.00815.14
7.1.60.0130.01015.36
7.1.50.0120.00915.37
7.1.40.0090.01315.29
7.1.30.0170.00815.39
7.1.20.0140.00915.39
7.1.10.0100.00815.59
7.1.00.0100.00715.36

preferences:
61.33 ms | 400 KiB | 5 Q