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:{};N;}');

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.0080.00816.50
8.3.50.0180.00316.36
8.3.40.0150.00018.71
8.3.30.0070.01118.67
8.3.20.0030.00524.18
8.3.10.0080.00024.66
8.3.00.0080.00026.16
8.2.180.0060.00925.92
8.2.170.0110.00418.91
8.2.160.0070.00722.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00819.89
8.2.110.0030.00622.15
8.2.100.0040.00817.72
8.2.90.0000.00719.25
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0040.00417.92
8.2.50.0050.00318.07
8.2.40.0060.00317.93
8.2.30.0000.00718.03
8.2.20.0040.00418.05
8.2.10.0000.00819.22
8.2.00.0040.00419.25
8.1.280.0080.00825.92
8.1.270.0040.00423.99
8.1.260.0060.00326.35
8.1.250.0090.00928.09
8.1.240.0090.00020.70
8.1.230.0070.00419.61
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0040.00417.22
8.1.190.0030.00617.10
8.1.180.0000.00918.10
8.1.170.0080.00018.46
8.1.160.0000.00718.77
8.1.150.0070.00018.82
8.1.140.0060.00318.82
8.1.130.0000.00720.07
8.1.120.0070.00118.79
8.1.110.0030.00717.95
8.1.100.0060.00317.86
8.1.90.0080.00417.91
8.1.80.0070.00517.94
8.1.70.0060.00617.98
8.1.60.0070.00518.08
8.1.50.0110.00218.03
8.1.40.0120.00318.11
8.1.30.0060.00618.13
8.1.20.0100.00318.22
8.1.10.0070.00717.78
8.1.00.0090.00517.71
8.0.300.0050.00318.77
8.0.290.0030.00516.63
8.0.280.0040.00418.45
8.0.270.0030.00518.01
8.0.260.0000.00722.00
8.0.250.0090.00217.45
8.0.240.0090.00117.54
8.0.230.0080.00317.56
8.0.220.0050.00517.46
8.0.210.0080.00317.41
8.0.200.0080.00417.45
8.0.190.0040.00717.46
8.0.180.0060.00617.54
8.0.170.0080.00317.41
8.0.160.0090.00317.50
8.0.150.0070.00417.41
8.0.140.0080.00517.11
8.0.130.0070.00615.98
8.0.120.0090.00517.15
8.0.110.0100.00417.16
8.0.100.0090.00517.15
8.0.90.0090.00517.19
8.0.80.0110.00517.17
8.0.70.0100.00417.25
8.0.60.0090.00517.19
8.0.50.0100.00317.21
8.0.30.0190.00716.98
8.0.20.0200.00917.09
8.0.10.0210.00817.10
8.0.00.0150.00617.09
7.4.330.0020.00314.77
7.4.320.0080.00417.09
7.4.300.0040.00716.97
7.4.290.0050.00616.93
7.4.280.0050.00717.04
7.4.270.0130.00216.83
7.4.260.0120.00216.80
7.4.250.0090.00616.83
7.4.240.0080.00616.76
7.4.230.0140.00216.84
7.4.220.0110.00316.86
7.4.210.0050.01116.81
7.4.200.0100.00316.83
7.4.190.0130.00417.07
7.4.180.0150.00317.05
7.4.160.0170.00716.65
7.4.150.0170.00816.65
7.4.140.0160.00916.59
7.4.130.0200.00616.58
7.4.120.0150.01116.53
7.4.110.0180.00616.56
7.4.100.0200.00716.62
7.4.90.0200.00716.60
7.4.80.0180.01016.57
7.4.70.0160.00716.57
7.4.60.0170.00816.60
7.4.50.0130.00716.45
7.4.40.0150.00916.51
7.4.30.0200.00516.58
7.4.20.0170.00616.51
7.4.10.0120.00916.58
7.4.00.0150.00716.63
7.3.330.0090.00216.71
7.3.320.0100.00215.65
7.3.310.0100.00316.65
7.3.300.0060.00416.72
7.3.290.0090.00716.56
7.3.280.0220.00316.54
7.3.270.0210.00516.52
7.3.260.0210.00716.50
7.3.250.0190.00816.48
7.3.240.0170.00716.45
7.3.230.0190.00916.51
7.3.220.0180.00816.43
7.3.210.0160.00916.46
7.3.200.0180.00716.46
7.3.190.0140.01016.48
7.3.180.0200.00716.49
7.3.170.0180.00816.44
7.3.160.0170.00816.49
7.3.150.0200.00716.46
7.3.140.0220.00816.46
7.3.130.0200.00716.48
7.3.120.0180.00816.50
7.3.110.0190.00916.40
7.3.100.0190.00716.42
7.3.90.0200.00816.71
7.3.80.0180.00816.47
7.3.70.0190.00816.53
7.3.60.0180.00716.61
7.3.50.0200.00816.58
7.3.40.0170.00816.54
7.3.30.0180.00916.55
7.3.20.0190.00717.33
7.3.10.0170.01117.21
7.3.00.0250.00717.26

preferences:
52.25 ms | 401 KiB | 5 Q