3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $test1; private $test2; } $access = function($propertyName) { $this->$propertyName; } $setter = function($propertyName, $newValue) { $this->$propertyName = $newValue; } $access = $access->bindTo($this,$this); $setter = $setter->bindTo($this,$this); $acccess('test1'); $setter('test1',10); $acccess('test1');

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)
5.4.310.0330.03718.84
5.4.300.0270.04019.09
5.4.290.0370.03019.31
5.4.280.0400.04318.99
5.4.270.0370.03019.06
5.4.260.0370.03019.00
5.4.250.0300.03719.23
5.4.240.0330.03718.94
5.4.230.0300.03719.12
5.4.220.0270.04019.22
5.4.210.0330.03319.23
5.4.200.0330.03318.94
5.4.190.0300.04319.13
5.4.180.0470.03718.98
5.4.170.0300.03719.30
5.4.160.0330.03319.15
5.4.150.0330.03319.21
5.4.140.0270.03716.48
5.4.130.0300.03716.37
5.4.120.0330.03316.37
5.4.110.0330.04716.50
5.4.100.0400.02716.63
5.4.90.0300.03316.59
5.4.80.0370.03316.43
5.4.70.0430.03316.62
5.4.60.0330.03016.16
5.4.50.0370.04016.44
5.4.40.0500.06016.43
5.4.30.0270.03716.18
5.4.20.0330.03016.53
5.4.10.0300.03716.38
5.4.00.0300.03315.77
5.3.280.0400.04014.57
5.3.270.0400.05314.52
5.3.260.0470.06014.68
5.3.250.0400.05714.61
5.3.240.0400.05314.57
5.3.230.0470.06714.71
5.3.220.0330.03714.54
5.3.210.0570.02314.54
5.3.200.0300.04714.71
5.3.190.0400.03714.54
5.3.180.0400.06314.54
5.3.170.0300.04014.54
5.3.160.0270.04014.65
5.3.150.0470.06714.57
5.3.140.0300.05314.67
5.3.130.0530.06014.55
5.3.120.0530.06314.52
5.3.110.0430.03314.60
5.3.100.0370.04713.95
5.3.90.0500.06313.88
5.3.80.0470.03713.94
5.3.70.0430.06014.09
5.3.60.0430.04314.23
5.3.50.0400.05714.10
5.3.40.0400.06313.95
5.3.30.0330.04313.98
5.3.20.0430.06013.81
5.3.10.0430.04013.58
5.3.00.0470.06013.79
5.2.170.0330.03313.52
5.2.160.0230.03313.52
5.2.150.0400.05313.52
5.2.140.0230.03313.52
5.2.130.0330.06013.52
5.2.120.0370.04713.52
5.2.110.0400.04313.52
5.2.100.0330.03313.52
5.2.90.0370.03313.52
5.2.80.0300.02713.52
5.2.70.0270.02713.52
5.2.60.0370.04013.52
5.2.50.0430.03713.52
5.2.40.0200.03013.52
5.2.30.0230.02713.52
5.2.20.0230.02313.52
5.2.10.0270.04713.52
5.2.00.0170.03013.52
5.1.60.0270.03713.52
5.1.50.0270.03313.52
5.1.40.0400.02313.52
5.1.30.0230.03713.52
5.1.20.0330.04013.52
5.1.10.0330.04713.52
5.1.00.0300.04013.52
5.0.50.0130.04013.52
5.0.40.0170.02013.52
5.0.30.0170.05713.52
5.0.20.0200.02013.52
5.0.10.0170.02313.52
5.0.00.0130.06313.52
4.4.90.0100.02013.52
4.4.80.0130.03013.52
4.4.70.0170.01713.52
4.4.60.0170.02013.52
4.4.50.0170.03313.52
4.4.40.0130.03713.52
4.4.30.0230.03013.52
4.4.20.0130.02013.52
4.4.10.0130.01713.52
4.4.00.0170.02013.52
4.3.110.0100.02313.52
4.3.100.0130.01313.52
4.3.90.0170.01713.52
4.3.80.0100.02713.52
4.3.70.0170.01713.52
4.3.60.0170.02013.52
4.3.50.0170.02313.52
4.3.40.0130.03313.52
4.3.30.0100.01713.52
4.3.20.0100.02713.52
4.3.10.0100.03313.52
4.3.00.0100.02313.52

preferences:
134.53 ms | 1398 KiB | 7 Q