3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $values = []; public function __get($name) { return $this->values[$name]; } public function __construct($name) { $this->values['bar'] = $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.0110.00418.43
8.3.50.0100.00716.36
8.3.40.0120.00618.75
8.3.30.0080.00618.71
8.3.20.0040.00421.76
8.3.10.0040.00421.85
8.3.00.0030.00519.68
8.2.180.0100.00716.38
8.2.170.0110.00722.96
8.2.160.0030.01119.38
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0080.00020.52
8.2.120.0110.00426.35
8.2.110.0100.00022.25
8.2.100.0090.00317.61
8.2.90.0040.00419.11
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0030.00618.03
8.2.50.0040.00418.10
8.2.40.0000.00820.32
8.2.30.0040.00419.28
8.2.20.0040.00417.97
8.2.10.0040.00418.12
8.2.00.0030.00518.10
8.1.280.0130.00725.92
8.1.270.0070.00023.97
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0100.00019.12
8.1.230.0110.00017.70
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0040.00418.56
8.1.160.0000.00718.88
8.1.150.0040.00418.83
8.1.140.0000.00819.55
8.1.130.0100.00018.82
8.1.120.0030.00517.32
8.1.110.0000.00717.39
8.1.100.0040.00417.45
8.1.90.0000.00817.45
8.1.80.0040.00417.29
8.1.70.0000.00717.32
8.1.60.0040.00417.49
8.1.50.0080.00017.42
8.1.40.0040.00717.55
8.1.30.0000.00717.48
8.1.20.0050.00217.68
8.1.10.0050.00517.49
8.1.00.0050.00317.44
8.0.300.0000.00718.77
8.0.290.0030.00616.58
8.0.280.0000.00818.42
8.0.270.0000.00817.31
8.0.260.0060.00018.94
8.0.250.0070.00016.91
8.0.240.0080.00016.91
8.0.230.0000.00716.80
8.0.220.0000.00716.80
8.0.210.0040.00416.86
8.0.200.0030.00316.78
8.0.190.0040.00416.88
8.0.180.0070.00016.86
8.0.170.0120.00016.83
8.0.160.0040.00416.81
8.0.150.0070.00316.72
8.0.140.0030.00516.77
8.0.130.0050.00013.30
8.0.120.0040.00416.84
8.0.110.0070.00016.80
8.0.100.0000.00916.70
8.0.90.0050.00216.95
8.0.80.0030.01116.79
8.0.70.0000.00816.87
8.0.60.0040.00416.73
8.0.50.0070.00016.81
8.0.30.0100.00816.98
8.0.20.0090.01017.40
8.0.10.0000.00716.99
8.0.00.0100.00716.70
7.4.330.0020.00215.55
7.4.320.0030.00316.54
7.4.300.0000.00616.51
7.4.290.0030.00316.59
7.4.280.0040.00416.51
7.4.270.0030.00316.52
7.4.260.0030.00316.56
7.4.250.0000.00716.52
7.4.240.0050.00316.54
7.4.230.0070.00016.68
7.4.220.0040.01416.63
7.4.210.0030.01316.71
7.4.200.0030.00316.39
7.4.160.0090.00616.45
7.4.150.0070.01017.40
7.4.140.0110.00917.86
7.4.130.0110.00816.45
7.4.120.0100.01016.41
7.4.110.0150.00316.29
7.4.100.0160.00416.53
7.4.90.0110.00616.46
7.4.80.0030.01319.39
7.4.70.0140.00416.40
7.4.60.0080.00816.50
7.4.50.0040.01216.10
7.4.40.0100.00716.17
7.4.30.0080.00816.53
7.4.00.0070.00714.72
7.3.330.0050.00013.31
7.3.320.0060.00013.17
7.3.310.0000.00716.13
7.3.300.0050.00216.16
7.3.290.0090.00716.36
7.3.280.0110.00716.34
7.3.270.0040.01217.40
7.3.260.0120.01016.58
7.3.250.0120.00816.37
7.3.240.0100.00816.32
7.3.230.0100.01016.64
7.3.210.0160.00016.49
7.3.200.0060.01016.27
7.3.190.0060.01316.31
7.3.180.0030.01316.59
7.3.170.0070.01016.54
7.3.160.0030.01316.42
7.2.330.0030.01416.69
7.2.320.0120.00616.71
7.2.310.0070.01016.75
7.2.300.0120.00616.54
7.2.290.0000.01616.81
7.2.80.0040.01216.86
7.2.60.0060.00916.82
7.2.00.0030.00919.32
7.1.200.0060.00615.84
7.1.100.0000.01118.18
7.1.70.0000.00817.21
7.1.60.0030.00717.30
7.1.50.0330.01732.95
7.1.40.0300.02032.46
7.1.30.0370.01032.56
7.1.20.0330.01032.57
7.1.10.0230.00314.61
7.1.00.0200.00714.68
7.0.200.0060.00616.70
7.0.190.0200.01715.00
7.0.180.0230.00714.39
7.0.170.0270.01014.40
7.0.160.0130.01014.15
7.0.150.0200.00714.36
7.0.140.0200.00714.38
7.0.130.0200.01014.53
7.0.120.0170.01014.58
7.0.110.0170.00714.36
7.0.100.0170.01714.19
7.0.90.0130.01014.45
7.0.80.0130.01014.51
7.0.70.0200.01314.31
7.0.60.0170.01014.28
7.0.50.0230.00314.37
7.0.40.0170.01014.58
7.0.30.0170.01014.58
7.0.20.0230.00314.52
7.0.10.0200.00714.43
7.0.00.0800.01314.54

preferences:
69.75 ms | 401 KiB | 5 Q