3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $foo; private $bar; public function __set($name, $value) { $this->$name = $value; return $this; } public function setBar($value) { $this->bar = $value; return $this; } public function sendVar($name) { echo $this->$name; return $this; } } $thing = new Test(); $thing->__set('foo', 'Test1')->setBar('Test2')->sendVar('foo')->sendVar('bar');

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.4.120.0140.00620.46
8.4.110.0160.00617.86
8.4.100.0120.00917.57
8.4.90.0130.00718.45
8.4.80.0100.00817.81
8.4.70.0130.00917.86
8.4.60.0080.00720.86
8.4.50.0090.01220.45
8.4.40.0080.00317.74
8.4.30.0070.01317.43
8.4.20.0100.01019.18
8.4.10.0030.00619.47
8.3.250.0120.00518.96
8.3.240.0090.00917.18
8.3.230.0130.00616.63
8.3.220.0060.00517.04
8.3.210.0080.00318.50
8.3.200.0050.00416.69
8.3.190.0120.00717.36
8.3.180.0100.00816.77
8.3.170.0040.01420.61
8.3.160.0070.01117.43
8.3.150.0040.00416.92
8.3.140.0090.00916.95
8.3.130.0080.00018.57
8.3.120.0130.01020.63
8.3.110.0040.00420.94
8.3.100.0060.00316.79
8.3.90.0040.00426.77
8.3.80.0090.00017.97
8.3.70.0110.00416.63
8.3.60.0110.01118.30
8.3.50.0090.01117.51
8.3.40.0110.00418.59
8.3.30.0110.00418.87
8.3.20.0040.00420.30
8.3.10.0040.00421.86
8.3.00.0070.00021.57
8.2.290.0130.00620.26
8.2.280.0120.00618.14
8.2.270.0130.00617.06
8.2.260.0040.01116.57
8.2.250.0120.00316.67
8.2.240.0120.00416.82
8.2.230.0070.00022.58
8.2.220.0070.00424.06
8.2.210.0040.00426.77
8.2.200.0000.00816.75
8.2.190.0130.00716.58
8.2.180.0000.01418.16
8.2.170.0140.00722.96
8.2.160.0100.00322.04
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00421.08
8.2.120.0050.00326.35
8.2.110.0100.00020.47
8.2.100.0120.00017.91
8.2.90.0060.00319.01
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0030.00517.92
8.2.50.0000.00818.10
8.2.40.0020.00520.65
8.2.30.0080.00020.91
8.2.20.0050.00218.16
8.2.10.0080.00018.02
8.2.00.0090.00017.90
8.1.330.0100.00821.95
8.1.320.0090.01016.05
8.1.310.0040.00418.21
8.1.300.0080.00018.00
8.1.290.0040.00430.84
8.1.280.0150.00325.92
8.1.270.0080.00020.41
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.21
8.1.230.0080.00317.70
8.1.220.0000.00817.77
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0070.00417.35
8.1.180.0000.00718.10
8.1.170.0040.00418.59
8.1.160.0000.00718.78
8.1.150.0000.00820.04
8.1.140.0050.00217.62
8.1.130.0030.00319.01
8.1.120.0000.00717.49
8.1.110.0000.00917.33
8.1.100.0000.00817.34
8.1.90.0000.00717.53
8.1.80.0040.00417.35
8.1.70.0080.00017.50
8.1.60.0040.00417.55
8.1.50.0040.00417.41
8.1.40.0040.00417.45
8.1.30.0000.00917.72
8.1.20.0070.00017.62
8.1.10.0050.00217.57
8.1.00.0080.00017.47
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0030.00318.43
8.0.270.0000.00716.82
8.0.260.0030.00318.48
8.0.250.0040.00416.93
8.0.240.0080.00016.96
8.0.230.0030.00316.84
8.0.220.0030.00316.93
8.0.210.0000.00816.85
8.0.200.0030.00316.96
8.0.190.0030.00516.92
8.0.180.0070.00016.84
8.0.170.0000.00716.90
8.0.160.0000.00916.80
8.0.150.0030.00316.85
8.0.140.0000.00716.87
8.0.130.0070.00013.36
8.0.120.0050.00316.88
8.0.110.0070.00016.91
8.0.100.0070.00016.71
8.0.90.0000.00716.76
8.0.80.0040.01216.91
8.0.70.0000.00716.84
8.0.60.0040.00416.71
8.0.50.0070.00016.84
8.0.30.0100.00817.15
8.0.20.0160.01117.40
8.0.10.0080.00016.91
8.0.00.0110.01416.75
7.4.330.0030.00315.55
7.4.320.0000.00616.47
7.4.300.0030.00316.49
7.4.290.0030.00316.63
7.4.280.0000.00816.48
7.4.270.0080.00016.52
7.4.260.0060.00316.40
7.4.250.0000.00716.59
7.4.240.0070.00016.36
7.4.230.0070.00016.40
7.4.220.0130.00616.52
7.4.210.0060.01216.58
7.4.200.0030.00316.68
7.4.160.0120.00716.38
7.4.150.0040.01417.40
7.4.140.0110.00917.86
7.4.130.0120.00616.37
7.4.120.0090.00916.55
7.4.110.0070.01016.45
7.4.100.0080.00816.45
7.4.90.0080.00916.52
7.4.80.0040.01219.39
7.4.70.0070.01616.54
7.4.60.0170.00316.27
7.4.50.0100.00716.57
7.4.40.0130.00416.54
7.4.30.0100.00616.48
7.4.00.0070.01214.84
7.3.330.0030.00313.25
7.3.320.0030.00513.16
7.3.310.0030.00316.20
7.3.300.0000.00616.17
7.3.290.0090.00716.30
7.3.280.0080.00816.30
7.3.270.0100.00717.40
7.3.260.0100.00616.38
7.3.250.0080.00916.35
7.3.240.0080.00816.43
7.3.230.0100.00716.30
7.3.210.0030.01616.32
7.3.200.0100.01016.68
7.3.190.0090.00616.39
7.3.180.0120.00416.39
7.3.170.0130.00316.52
7.3.160.0030.01316.30
7.3.120.0120.00614.96
7.3.110.0070.01114.85
7.3.100.0110.00414.83
7.3.90.0110.00414.71
7.3.80.0090.00614.63
7.3.70.0060.00714.96
7.3.60.0060.00714.91
7.3.50.0060.00914.63
7.3.40.0000.01014.83
7.3.30.0000.01614.80
7.3.20.0000.00916.85
7.3.10.0080.00516.75
7.3.00.0030.01016.80
7.2.330.0070.01016.51
7.2.320.0030.01716.64
7.2.310.0070.01716.47
7.2.300.0060.01016.30
7.2.290.0120.00416.44
7.2.250.0000.01514.66
7.2.240.0040.00814.91
7.2.230.0130.00315.27
7.2.220.0040.00815.05
7.2.210.0120.00614.93
7.2.200.0000.01314.95
7.2.190.0030.01015.03
7.2.180.0040.01115.16
7.2.170.0130.00315.02
7.2.60.0090.00317.03
7.1.330.0070.00715.68
7.1.320.0030.00915.82
7.1.310.0070.01015.86
7.1.300.0000.01116.00
7.1.290.0000.01715.78
7.1.280.0030.01315.78
7.1.270.0000.01015.73
7.1.260.0000.01216.02
7.1.200.0030.00615.77
7.1.100.0040.00818.03
7.1.90.0090.00318.05
7.1.80.0080.00417.79
7.1.70.0080.00417.31
7.1.60.0120.01235.21
7.1.50.0110.01534.50
7.1.40.0170.01034.43
7.1.30.0200.00734.61
7.1.20.0040.02234.54
7.1.10.0070.00716.46
7.1.00.0060.00616.54
7.0.240.0040.00917.97
7.0.230.0000.01117.54
7.0.220.0070.00717.29
7.0.210.0060.00616.75
7.0.200.0040.00816.79
7.0.190.0000.01116.71
7.0.180.0040.00816.13
7.0.170.0120.00016.40
7.0.160.0030.01016.40
7.0.150.0040.00816.29
7.0.140.0030.01116.20
7.0.130.0080.00416.42
7.0.120.0060.00616.60
7.0.110.0030.00916.28
7.0.100.0040.00816.28
7.0.90.0080.00416.39
7.0.80.0040.00816.41
7.0.70.0030.01016.38
7.0.60.0040.00716.32
7.0.50.0030.01216.45
7.0.40.0000.01116.40
7.0.30.0030.00916.31
7.0.20.0000.01716.33
7.0.10.0100.00316.48
7.0.00.0000.01116.59

preferences:
38.04 ms | 403 KiB | 5 Q