3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @property string $value */ class Example { private $value; public function __construct() { $this->value = "test"; } public function __get($key) { if (property_exists($this, $key)) { return $this->{$key}; } else { return null; // or throw an exception } } public function __set($key, $value) { return; // or throw an exception } } $example = new Example(); var_dump($example->value); $example->value = "invalid"; var_dump($example->value);

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.00718.30
8.3.50.0050.01018.32
8.3.40.0110.00318.70
8.3.30.0000.01418.89
8.3.20.0040.00419.35
8.3.10.0040.00421.62
8.3.00.0040.00420.41
8.2.180.0190.00318.41
8.2.170.0070.00722.96
8.2.160.0170.00020.81
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0050.00326.16
8.2.120.0070.00019.95
8.2.110.0060.00321.18
8.2.100.0040.00817.91
8.2.90.0050.00319.41
8.2.80.0030.00617.97
8.2.70.0040.00417.93
8.2.60.0040.00418.09
8.2.50.0060.00318.10
8.2.40.0030.00519.33
8.2.30.0000.00719.31
8.2.20.0090.00018.05
8.2.10.0030.00518.07
8.2.00.0070.00317.53
8.1.280.0100.01025.92
8.1.270.0060.00318.82
8.1.260.0140.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.46
8.1.230.0110.00020.98
8.1.220.0000.00817.74
8.1.210.0090.00019.10
8.1.200.0040.00417.35
8.1.190.0060.00317.35
8.1.180.0000.00718.10
8.1.170.0000.00918.59
8.1.160.0040.00418.80
8.1.150.0060.00318.93
8.1.140.0000.00722.10
8.1.130.0030.00317.51
8.1.120.0000.00717.42
8.1.110.0030.00517.50
8.1.100.0040.00417.36
8.1.90.0000.01017.36
8.1.80.0000.00717.47
8.1.70.0030.00317.46
8.1.60.0000.00817.61
8.1.50.0040.00417.55
8.1.40.0030.00517.41
8.1.30.0040.00417.61
8.1.20.0040.00417.53
8.1.10.0050.00317.51
8.1.00.0000.00817.55
8.0.300.0030.00520.07
8.0.290.0090.00016.63
8.0.280.0000.00718.46
8.0.270.0030.00517.32
8.0.260.0030.00316.69
8.0.250.0030.00316.89
8.0.240.0040.00416.82
8.0.230.0030.00316.91
8.0.220.0030.00616.91
8.0.210.0040.00416.86
8.0.200.0070.00016.94
8.0.190.0030.00616.99
8.0.180.0050.00216.94
8.0.170.0090.00016.83
8.0.160.0070.00016.85
8.0.150.0000.00816.93
8.0.140.0070.00016.82
8.0.130.0000.00813.25
8.0.120.0000.00716.87
8.0.110.0080.00016.82
8.0.100.0070.00016.88
8.0.90.0000.00716.76
8.0.80.0080.00916.89
8.0.70.0040.00416.95
8.0.60.0040.00416.86
8.0.50.0040.00416.74
8.0.30.0060.01317.14
8.0.20.0130.00617.40
8.0.10.0030.00417.05
8.0.00.0130.00716.88
7.4.330.0000.00515.55
7.4.320.0000.00716.44
7.4.300.0060.00016.52
7.4.290.0030.00316.50
7.4.280.0090.00016.58
7.4.270.0030.00316.41
7.4.260.0030.00316.60
7.4.250.0000.00716.44
7.4.240.0030.00316.61
7.4.230.0040.00416.71
7.4.220.0040.00416.57
7.4.210.0050.01016.56
7.4.200.0040.00316.54
7.4.160.0080.00716.47
7.4.140.0120.00717.86
7.4.130.0130.00316.49
7.4.120.0090.00816.47
7.4.110.0130.00616.51
7.4.100.0070.01416.55
7.4.90.0060.01216.40
7.4.80.0030.01419.39
7.4.70.0140.00316.43
7.4.60.0090.00616.58
7.4.50.0070.00716.17
7.4.40.0100.00616.50
7.4.00.0110.00515.09
7.3.330.0000.00513.43
7.3.320.0000.00513.34
7.3.310.0060.00316.39
7.3.300.0000.00716.37
7.3.290.0070.00016.23
7.3.280.0110.00516.32
7.3.260.0110.00816.49
7.3.240.0150.00216.46
7.3.230.0080.00816.61
7.3.210.0060.01516.64
7.3.200.0060.01016.41
7.3.190.0110.00516.24
7.3.180.0030.01716.47
7.3.170.0130.01016.13
7.3.160.0120.00316.70
7.3.120.0090.00914.61
7.3.110.0040.01515.04
7.3.100.0070.01114.97
7.3.90.0060.00614.74
7.3.80.0090.00614.50
7.3.70.0110.00314.90
7.3.60.0060.00914.35
7.3.50.0030.01014.68
7.3.40.0060.01114.53
7.3.30.0150.00014.66
7.3.20.0060.00916.62
7.3.10.0090.00616.65
7.3.00.0000.01616.58
7.2.330.0110.00716.36
7.2.320.0120.01316.66
7.2.310.0140.00316.66
7.2.300.0040.01316.59
7.2.290.0070.01116.58
7.2.250.0070.01315.18
7.2.240.0100.01014.93
7.2.230.0130.00615.09
7.2.220.0110.00414.82
7.2.210.0030.01215.06
7.2.200.0070.01014.85
7.2.190.0100.00714.59
7.2.180.0000.01014.84
7.2.170.0120.00314.83
7.2.110.0210.01114.41
7.2.100.0200.00714.59
7.2.90.0220.00614.88
7.2.80.0180.00614.75
7.2.70.0190.00815.00
7.2.60.0270.00314.95
7.2.50.0180.00314.83
7.2.40.0110.01115.19
7.2.30.0260.00315.18
7.2.20.0150.00915.02
7.2.10.0250.00315.04
7.2.00.0480.00915.03
7.1.330.0080.00815.91
7.1.320.0000.01315.37
7.1.310.0120.00315.93
7.1.300.0000.01015.59
7.1.290.0040.00715.54
7.1.280.0030.00715.70
7.1.270.0060.00615.79
7.1.260.0030.00615.91
7.1.230.0610.01314.05
7.1.220.0040.01513.88
7.1.210.0100.01014.00
7.1.200.0150.01113.91
7.1.190.0200.01014.14
7.1.180.0220.00013.93
7.1.170.0120.01013.87
7.1.160.0200.01313.93
7.1.150.0180.00413.60
7.1.140.0150.00613.95
7.1.130.0160.01314.07
7.1.120.0230.01013.93
7.1.110.0170.01013.81
7.1.100.0140.00913.94
7.1.90.0150.00613.79
7.1.80.0130.01013.69
7.1.70.0170.00714.01
7.1.60.0390.00831.78
7.1.50.0340.00631.83
7.1.40.0350.01031.78
7.1.30.0350.01631.70
7.1.20.0430.00631.83
7.1.10.0250.00313.72
7.1.00.0190.00713.78
5.6.380.0080.00414.05

preferences:
57.67 ms | 401 KiB | 5 Q