3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $bar; public function __get($name) { return $this->{$name}; } public function __construct($name) { $this->name = $name; } } $foo = new Foo('asdf'); var_export($foo->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.3.60.0070.00718.43
8.3.50.0140.01018.42
8.3.40.0090.00618.71
8.3.30.0110.00418.90
8.3.20.0040.00421.61
8.3.10.0040.00421.90
8.3.00.0040.00419.56
8.2.180.0150.00618.66
8.2.170.0180.00022.96
8.2.160.0060.00919.29
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0060.00320.45
8.2.110.0060.00320.96
8.2.100.0110.00017.91
8.2.90.0030.00619.09
8.2.80.0060.00317.97
8.2.70.0030.00517.50
8.2.60.0000.00817.92
8.2.50.0060.00318.10
8.2.40.0070.00020.48
8.2.30.0030.00619.25
8.2.20.0050.00218.06
8.2.10.0080.00018.06
8.2.00.0000.00718.07
8.1.280.0100.00325.92
8.1.270.0040.00423.88
8.1.260.0000.00926.35
8.1.250.0040.00428.09
8.1.240.0000.00924.02
8.1.230.0030.00817.70
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0050.00317.35
8.1.180.0030.00618.10
8.1.170.0040.00418.66
8.1.160.0040.00418.90
8.1.150.0000.00718.95
8.1.140.0000.00719.54
8.1.130.0080.00018.90
8.1.120.0040.00417.36
8.1.110.0040.00417.46
8.1.100.0090.00017.43
8.1.90.0030.00517.47
8.1.80.0000.00717.33
8.1.70.0000.00717.45
8.1.60.0000.00817.58
8.1.50.0040.00417.48
8.1.40.0000.01017.54
8.1.30.0000.00817.70
8.1.20.0040.00417.65
8.1.10.0030.00617.55
8.1.00.0030.00517.44
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00518.40
8.0.270.0000.00717.20
8.0.260.0030.00318.92
8.0.250.0060.00016.91
8.0.240.0030.00616.84
8.0.230.0000.00716.87
8.0.220.0030.00316.90
8.0.210.0030.00316.78
8.0.200.0000.00716.96
8.0.190.0040.00416.87
8.0.180.0030.00516.93
8.0.170.0000.01116.92
8.0.160.0030.00516.82
8.0.150.0060.00316.80
8.0.140.0000.00716.86
8.0.130.0000.00513.36
8.0.120.0030.00516.84
8.0.110.0030.00316.79
8.0.100.0060.00316.88
8.0.90.0000.00817.01
8.0.80.0060.00916.87
8.0.70.0000.00916.67
8.0.60.0000.00716.85
8.0.50.0070.00016.69
8.0.30.0040.01317.01
8.0.20.0090.01017.40
8.0.10.0070.00016.88
8.0.00.0120.00616.80
7.4.330.0020.00215.55
7.4.320.0000.00716.58
7.4.300.0000.00716.50
7.4.290.0030.00516.61
7.4.280.0030.00516.40
7.4.270.0030.00316.54
7.4.260.0040.00316.59
7.4.250.0000.00716.40
7.4.240.0080.00016.43
7.4.230.0030.00416.63
7.4.220.0030.01416.50
7.4.210.0000.01416.43
7.4.200.0080.00016.61
7.4.160.0060.01216.29
7.4.150.0040.01417.40
7.4.140.0100.00817.86
7.4.130.0100.00916.39
7.4.120.0120.01016.54
7.4.110.0050.01716.69
7.4.100.0140.00416.36
7.4.90.0060.01016.54
7.4.80.0090.00919.39
7.4.70.0120.00416.59
7.4.60.0090.00616.35
7.4.50.0140.00016.33
7.4.40.0060.01016.36
7.4.30.0090.00616.50
7.4.00.0070.01014.99
7.3.330.0020.00213.32
7.3.320.0050.00013.27
7.3.310.0020.00516.20
7.3.300.0000.00716.25
7.3.290.0090.00616.27
7.3.280.0060.01216.29
7.3.270.0150.00917.40
7.3.260.0080.01316.62
7.3.250.0120.00716.38
7.3.240.0080.01116.48
7.3.230.0110.00716.36
7.3.210.0070.01016.55
7.3.200.0060.01616.32
7.3.190.0090.01216.25
7.3.180.0060.01016.34
7.3.170.0040.01416.41
7.3.160.0060.00916.56
7.2.330.0070.01016.35
7.2.320.0110.00716.35
7.2.310.0030.01616.57
7.2.300.0070.01416.45
7.2.290.0130.00316.68
7.2.80.0030.00916.79
7.2.60.0060.00617.00
7.1.200.0040.00815.59
7.1.70.0050.00317.18
7.1.60.0080.00316.89
7.1.50.0400.00732.73
7.1.40.0330.00732.58
7.1.30.0370.01332.45
7.1.20.0300.01032.51
7.1.10.0130.01314.55
7.1.00.0130.01314.61
7.0.200.0090.00016.52
7.0.190.0200.01014.94
7.0.180.0170.00714.34
7.0.170.0170.01014.49
7.0.160.0130.01314.47
7.0.150.0100.01314.25
7.0.140.0100.01714.32
7.0.130.0270.00714.42
7.0.120.0170.01314.52
7.0.110.0170.01014.37
7.0.100.0100.01314.39
7.0.90.0130.01314.57
7.0.80.0200.00714.40
7.0.70.0200.00314.36
7.0.60.0230.00714.31
7.0.50.0170.00714.34
7.0.40.0170.00714.68
7.0.30.0100.01314.46
7.0.20.0170.00714.46
7.0.10.0170.01014.36
7.0.00.0200.01314.57

preferences:
67.74 ms | 400 KiB | 5 Q