3v4l.org

run code in 300+ PHP versions simultaneously
<?php class D { public function __get($name) { echo "D::__get($name)\n"; } public function __destruct() { echo "D::__destruct\n"; } public function __wakeup() { echo "D::__wakeup\n"; } } class C { public function __destruct() { echo "C::__destruct\n"; $this->c->b; } } unserialize('O:1:"C":1:{s:1:"c";O:1:"D":0:{}}');

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.0160.00616.50
8.3.50.0120.00916.60
8.3.40.0000.01518.63
8.3.30.0150.00418.71
8.3.20.0000.00724.18
8.3.10.0000.00824.66
8.3.00.0050.00226.16
8.2.180.0140.00425.92
8.2.170.0090.00618.82
8.2.160.0140.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00026.16
8.2.110.0070.00320.94
8.2.100.0110.00017.84
8.2.90.0080.00019.09
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0090.00017.80
8.2.50.0030.00518.07
8.2.40.0060.00319.94
8.2.30.0000.00717.91
8.2.20.0000.00718.12
8.2.10.0000.00719.25
8.2.00.0050.00219.39
8.1.280.0140.00325.92
8.1.270.0120.00623.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00319.47
8.1.230.0040.00817.42
8.1.220.0050.00317.74
8.1.210.0070.00318.77
8.1.200.0000.01017.10
8.1.190.0000.00917.10
8.1.180.0060.00318.10
8.1.170.0030.00618.52
8.1.160.0070.00018.87
8.1.150.0000.00818.70
8.1.140.0000.00718.77
8.1.130.0000.00720.08
8.1.120.0030.00717.34
8.1.110.0000.00817.34
8.1.100.0030.00717.28
8.1.90.0000.00817.18
8.1.80.0030.00517.28
8.1.70.0000.00717.37
8.1.60.0050.00317.54
8.1.50.0050.00317.47
8.1.40.0100.00017.34
8.1.30.0000.00817.48
8.1.20.0000.00817.52
8.1.10.0030.00517.35
8.1.00.0040.00417.36
8.0.300.0040.00418.77
8.0.290.0050.00216.75
8.0.280.0040.00418.58
8.0.270.0000.00718.01
8.0.260.0030.00320.14
8.0.250.0030.00316.85
8.0.240.0000.00617.04
8.0.230.0000.00716.99
8.0.220.0000.00716.79
8.0.210.0040.00416.85
8.0.200.0080.00016.94
8.0.190.0050.00216.95
8.0.180.0000.00716.84
8.0.170.0000.00916.97
8.0.160.0050.00316.89
8.0.150.0030.00416.91
8.0.140.0000.00716.74
8.0.130.0030.00313.30
8.0.120.0000.00816.75
8.0.110.0040.00416.80
8.0.100.0000.00817.00
8.0.90.0040.00416.78
8.0.80.0050.00716.88
8.0.70.0020.00616.74
8.0.60.0040.00416.73
8.0.50.0020.00716.87
8.0.30.0100.00916.85
8.0.20.0090.00916.92
8.0.10.0160.00216.88
8.0.00.0030.01116.87
7.4.330.0050.00015.55
7.4.320.0030.00316.59
7.4.300.0030.00316.54
7.4.290.0000.00716.29
7.4.280.0040.00416.57
7.4.270.0030.00316.41
7.4.260.0030.00413.20
7.4.250.0000.00716.51
7.4.240.0000.00716.44
7.4.230.0030.00416.36
7.4.220.0020.00516.59
7.4.210.0070.00316.48
7.4.200.0030.00316.40
7.4.190.0020.00516.37
7.4.180.0000.00616.52
7.4.160.0060.00416.57
7.4.150.0090.00716.39
7.4.140.0100.00616.27
7.4.130.0100.00816.24
7.4.120.0090.00816.49
7.4.110.0130.00416.39
7.4.100.0120.00516.47
7.4.90.0110.00616.44
7.4.80.0150.00216.27
7.4.70.0110.00516.39
7.4.60.0110.00716.24
7.4.50.0110.00516.29
7.4.40.0140.00716.30
7.4.30.0110.00816.46
7.4.20.0080.01016.44
7.4.10.0100.01316.44
7.4.00.0100.00816.41
7.3.330.0110.00016.20
7.3.320.0050.00013.38
7.3.310.0040.00416.27
7.3.300.0020.00616.18
7.3.290.0090.00616.31
7.3.280.0180.00416.27
7.3.270.0130.00716.20
7.3.260.0120.00916.30
7.3.250.0110.00616.25
7.3.240.0080.00916.20
7.3.230.0110.00916.28
7.3.220.0140.00516.30
7.3.210.0160.00416.15
7.3.200.0120.00716.16
7.3.190.0100.00816.13
7.3.180.0120.00716.20
7.3.170.0120.00516.13
7.3.160.0170.00016.17
7.3.150.0110.00816.13
7.3.140.0150.01116.20
7.3.130.0130.00916.16
7.3.120.0110.00616.26
7.3.110.0130.00816.13
7.3.100.0140.00516.11
7.3.90.0170.00416.49
7.3.80.0110.00616.24
7.3.70.0150.00216.31
7.3.60.0110.00516.33
7.3.50.0120.00516.38
7.3.40.0080.01016.41
7.3.30.0110.00516.36
7.3.20.0150.00717.26
7.3.10.0140.00517.24
7.3.00.0150.00317.26
7.1.320.0040.00415.49

preferences:
71.55 ms | 401 KiB | 5 Q