3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $prop; public $ref; public function &__get($name) { $this->ref &= $this->prop; return $this->prop; } public function __set($name, $value) { echo "set $name = $value\n"; } } $foo = new Foo; $foo->bar++; var_dump($foo->prop);

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.5.30.0030.00618.99
8.5.20.0120.00719.42
8.5.10.0130.00816.55
8.5.00.0110.01020.05
8.4.180.0110.01019.73
8.4.170.0170.00824.00
8.4.160.0080.01521.55
8.4.150.0070.00516.87
8.4.140.0050.00317.49
8.4.130.0120.00817.75
8.4.120.0070.00820.82
8.4.110.0140.00622.32
8.4.100.0140.00718.77
8.4.90.0120.00818.86
8.4.80.0110.00920.65
8.4.70.0110.00820.39
8.4.60.0080.01218.71
8.4.50.0050.00318.77
8.4.40.0070.00717.65
8.4.30.0170.00319.51
8.4.20.0070.01319.41
8.4.10.0000.01617.88
8.3.300.0130.00820.73
8.3.290.0130.00820.76
8.3.280.0120.00818.48
8.3.270.0140.00916.69
8.3.260.0130.00616.60
8.3.250.0110.00718.77
8.3.240.0100.01017.36
8.3.230.0050.00416.50
8.3.220.0090.01019.09
8.3.210.0030.00416.85
8.3.200.0050.00416.35
8.3.190.0110.00618.70
8.3.180.0090.01119.07
8.3.170.0060.00318.91
8.3.160.0040.00417.34
8.3.150.0060.00316.59
8.3.140.0090.00919.03
8.3.130.0080.00018.34
8.3.120.0090.00019.07
8.3.110.0080.00020.94
8.3.100.0000.00924.06
8.3.90.0070.00026.77
8.3.80.0060.00318.45
8.3.70.0040.01116.75
8.3.60.0150.00418.30
8.3.50.0070.00918.55
8.3.40.0100.00618.70
8.3.30.0110.00418.59
8.3.20.0080.00019.10
8.3.10.0050.00320.73
8.3.00.0040.00423.65
8.2.300.0140.00718.01
8.2.290.0140.00520.07
8.2.280.0070.00318.24
8.2.270.0040.01316.61
8.2.260.0040.00416.72
8.2.250.0000.00818.34
8.2.240.0000.00916.94
8.2.230.0060.00322.58
8.2.220.0060.00637.54
8.2.210.0070.00326.77
8.2.200.0030.00616.38
8.2.190.0070.01116.63
8.2.180.0180.00318.13
8.2.170.0040.01122.96
8.2.160.0070.00721.14
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00719.85
8.2.120.0030.00626.35
8.2.110.0060.00319.39
8.2.100.0090.00617.78
8.2.90.0040.00419.21
8.2.80.0000.00919.27
8.2.70.0050.00317.63
8.2.60.0000.00817.75
8.2.50.0050.00317.63
8.2.40.0000.00819.48
8.2.30.0070.00019.47
8.2.20.0040.00418.00
8.2.10.0080.00018.18
8.2.00.0000.00719.50
8.1.340.0030.00817.57
8.1.330.0100.01022.02
8.1.320.0120.00816.23
8.1.310.0040.00416.31
8.1.300.0120.00316.17
8.1.290.0090.00030.84
8.1.280.0070.01125.92
8.1.270.0050.00322.04
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.06
8.1.230.0160.00020.73
8.1.220.0000.00817.74
8.1.210.0030.00618.82
8.1.200.0030.00617.23
8.1.190.0030.00617.36
8.1.180.0050.00318.10
8.1.170.0080.00018.62
8.1.160.0050.00218.79
8.1.150.0040.00418.83
8.1.140.0040.00417.76
8.1.130.0030.00519.01
8.1.120.0030.00317.43
8.1.110.0060.00317.35
8.1.100.0000.00717.36
8.1.90.0050.00217.30
8.1.80.0070.00317.34
8.1.70.0070.00017.42
8.1.60.0030.00617.60
8.1.50.0090.00017.54
8.1.40.0040.00417.54
8.1.30.0000.00817.65
8.1.20.0100.00317.67
8.1.10.0040.00417.46
8.1.00.0030.00617.54
8.0.300.0060.00320.09
8.0.290.0030.00616.63
8.0.280.0030.00318.41
8.0.270.0030.00317.29
8.0.260.0030.00617.18
8.0.250.0100.00017.00
8.0.240.0000.00716.85
8.0.230.0100.00016.83
8.0.220.0030.00516.89
8.0.210.0040.00416.92
8.0.200.0030.00316.85
8.0.190.0040.00416.87
8.0.180.0050.00316.95
8.0.170.0000.00916.88
8.0.160.0000.00716.79
8.0.150.0000.00816.82
8.0.140.0080.00016.90
8.0.130.0060.00013.34
8.0.120.0040.00416.86
8.0.110.0000.00816.77
8.0.100.0040.00416.91
8.0.90.0000.00716.91
8.0.80.0080.00816.91
8.0.70.0000.00716.84
8.0.60.0050.00216.77
8.0.50.0020.00516.89
8.0.30.0110.00917.09
8.0.20.0150.00417.40
8.0.10.0040.00416.86
8.0.00.0100.01016.57
7.4.330.0000.00615.55
7.4.320.0000.00616.47
7.4.300.0060.00016.52
7.4.290.0070.00016.61
7.4.280.0050.00316.41
7.4.270.0060.00316.63
7.4.260.0040.00416.55
7.4.250.0030.00316.46
7.4.240.0070.00016.53
7.4.230.0030.00316.70
7.4.220.0080.00016.63
7.4.210.0070.01116.53
7.4.200.0030.00316.52
7.4.160.0080.01016.43
7.4.140.0070.01317.86
7.4.130.0070.01616.48
7.4.120.0120.00916.54
7.4.110.0130.00416.66
7.4.100.0060.01016.32
7.4.90.0100.00716.57
7.4.80.0130.01019.39
7.4.70.0180.00416.60
7.4.60.0090.00616.54
7.4.50.0080.00616.27
7.4.40.0100.01416.52
7.4.00.0080.00314.75
7.3.330.0020.00213.26
7.3.320.0000.00513.28
7.3.310.0060.00016.27
7.3.300.0070.00016.27
7.3.290.0030.00316.35
7.3.280.0120.00516.29
7.3.260.0110.00816.41
7.3.240.0090.01016.40
7.3.230.0070.01116.25
7.3.210.0140.00416.43
7.3.200.0090.00616.24
7.3.190.0070.01016.29
7.3.180.0070.01016.30
7.3.170.0060.01016.33
7.3.160.0090.00616.41
7.3.10.0030.01016.29
7.3.00.0040.01116.19
7.2.330.0140.00416.32
7.2.320.0150.00416.52
7.2.310.0030.01416.40
7.2.300.0050.01116.80
7.2.290.0080.01416.50
7.2.130.0060.00316.72
7.2.120.0040.01116.91
7.2.110.0120.00316.43
7.2.100.0070.00716.56
7.2.90.0040.01116.46
7.2.80.0060.00316.70
7.2.70.0030.01016.57
7.2.60.0740.01115.88
7.2.50.0770.01015.71
7.2.40.0740.01016.23
7.2.30.0740.00816.18
7.2.20.1100.00816.22
7.2.10.0830.01016.28
7.2.00.0850.00715.98
7.1.250.0030.01115.48
7.1.200.0030.00915.63
7.1.170.1540.01013.85
7.1.160.1550.01316.60
7.1.150.1480.01116.63
7.1.140.1770.01416.64
7.1.130.1750.00817.00
7.1.120.1570.01116.84
7.1.110.2300.01215.95
7.1.100.1760.01216.04
7.1.90.2200.01016.06
7.1.80.1950.01015.95
7.1.70.1680.01115.15
7.1.60.1790.01333.22
7.1.50.1740.01433.09
7.1.40.2190.01232.45
7.1.30.1470.01432.50
7.1.20.1820.01732.61
7.1.10.1450.01314.70
7.1.00.2130.01314.79

preferences:
111.12 ms | 1437 KiB | 5 Q