3v4l.org

run code in 300+ PHP versions simultaneously
<?php class c { function __wakeup() { $this->prop = 'I am awake'; } } $a = []; $a[] = new c; $a[0]->prop = 'asleep'; $a[1] =& $a[0]->prop; var_dump(unserialize(serialize($a)));

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.0040.01518.55
8.3.50.0070.01222.17
8.3.40.0110.00718.70
8.3.30.0090.00518.80
8.3.20.0040.00420.34
8.3.10.0050.00320.70
8.3.00.0000.00820.50
8.2.180.0140.00318.34
8.2.170.0000.01522.96
8.2.160.0140.00422.14
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00419.38
8.2.120.0000.00826.35
8.2.110.0060.00320.57
8.2.100.0080.00417.80
8.2.90.0040.00419.22
8.2.80.0060.00317.97
8.2.70.0030.00617.50
8.2.60.0040.00417.80
8.2.50.0000.00818.09
8.2.40.0000.00820.60
8.2.30.0040.00419.32
8.2.20.0080.00017.57
8.2.10.0000.00718.06
8.2.00.0040.00418.06
8.1.280.0110.00325.92
8.1.270.0050.00323.96
8.1.260.0050.00528.09
8.1.250.0040.00428.09
8.1.240.0000.01022.04
8.1.230.0040.00817.96
8.1.220.0080.00017.79
8.1.210.0060.00318.77
8.1.200.0050.00517.35
8.1.190.0040.00417.10
8.1.180.0080.00018.10
8.1.170.0070.00618.27
8.1.160.0000.00820.67
8.1.150.0000.00818.75
8.1.140.0060.00319.48
8.1.130.0000.00717.75
8.1.120.0040.00417.38
8.1.110.0000.00717.40
8.1.100.0030.00517.25
8.1.90.0040.00417.26
8.1.80.0070.00017.42
8.1.70.0000.01117.43
8.1.60.0080.00017.62
8.1.50.0080.00017.58
8.1.40.0000.00817.52
8.1.30.0000.00817.61
8.1.20.0040.00417.50
8.1.10.0000.00717.61
8.1.00.0000.00817.50
8.0.300.0030.00518.77
8.0.290.0030.00516.75
8.0.280.0070.00018.35
8.0.270.0040.00417.28
8.0.260.0000.00617.17
8.0.250.0050.00216.98
8.0.240.0040.00417.01
8.0.230.0050.00217.00
8.0.220.0070.00016.77
8.0.210.0040.00416.79
8.0.200.0000.00616.84
8.0.190.0000.00716.84
8.0.180.0040.00416.93
8.0.170.0060.00316.81
8.0.160.0030.00317.01
8.0.150.0030.00516.82
8.0.140.0000.00716.73
8.0.130.0000.00713.28
8.0.120.0030.00516.77
8.0.110.0040.00416.90
8.0.100.0040.00416.85
8.0.90.0070.00016.86
8.0.80.0110.00416.90
8.0.70.0000.00816.76
8.0.60.0070.00016.94
8.0.50.0070.00016.72
8.0.30.0100.00817.15
8.0.20.0130.00817.40
8.0.10.0000.00816.93
8.0.00.0120.00716.72
7.4.330.0050.00016.66
7.4.320.0030.00316.55
7.4.300.0000.00616.58
7.4.290.0070.00016.50
7.4.280.0080.00016.49
7.4.270.0000.00716.59
7.4.260.0070.00016.48
7.4.250.0040.00416.52
7.4.240.0000.00816.50
7.4.230.0070.00016.60
7.4.220.0100.00716.47
7.4.210.0100.01016.55
7.4.200.0070.00016.44
7.4.160.0120.00416.36
7.4.150.0130.00417.40
7.4.140.0100.00817.86
7.4.130.0070.01016.56
7.4.120.0100.00916.60
7.4.110.0060.01016.61
7.4.100.0140.01116.50
7.4.90.0100.00916.41
7.4.80.0160.00619.39
7.4.70.0030.01416.31
7.4.60.0120.00916.38
7.4.50.0040.00716.57
7.4.40.0120.00916.45
7.4.30.0160.00016.49
7.4.00.0030.01014.97
7.3.330.0000.00513.23
7.3.320.0000.00813.34
7.3.310.0050.00216.23
7.3.300.0000.00716.26
7.3.290.0000.00716.25
7.3.280.0090.00916.35
7.3.270.0100.00717.40
7.3.260.0090.00916.50
7.3.250.0130.00516.50
7.3.240.0110.00916.44
7.3.230.0110.00616.39
7.3.210.0090.00916.34
7.3.200.0130.01016.48
7.3.190.0130.00616.45
7.3.180.0120.00316.44
7.3.170.0170.00016.66
7.3.160.0060.01016.38
7.2.330.0090.00916.50
7.2.320.0090.00916.29
7.2.310.0110.00616.71
7.2.300.0060.01216.83
7.2.290.0100.01316.74
7.2.60.0070.00716.84
7.2.00.0000.01319.38
7.1.200.0140.00015.79
7.1.100.0060.00617.90
7.1.70.0040.00416.96
7.1.60.0060.01619.27
7.1.50.0000.02116.85
7.1.00.0030.07722.45
7.0.200.0280.01214.61
7.0.60.0170.07321.74
7.0.50.0100.07717.89
7.0.40.0170.07320.02
7.0.30.0230.03320.23
7.0.20.0270.07720.16
7.0.10.0130.05720.10
7.0.00.0100.08320.08
5.6.280.0000.03720.86
5.6.210.0070.04720.52
5.6.200.0130.07018.34
5.6.190.0030.08720.55
5.6.180.0230.06720.52
5.6.170.0370.07020.55
5.6.160.0030.04020.57
5.6.150.0130.07718.25
5.6.140.0100.03718.28
5.6.130.0130.04318.21
5.6.120.0130.08321.04
5.6.110.0070.04720.97
5.6.100.0200.03721.11
5.6.90.0170.07021.03
5.6.80.0100.07020.51
5.5.350.0270.04320.36
5.5.340.0070.08317.99
5.5.330.0000.04320.34
5.5.320.0530.05720.33
5.5.310.0370.07020.34
5.5.300.0000.05018.07
5.5.290.0100.06717.93
5.5.280.0200.05720.89
5.5.270.0070.07320.80
5.5.260.0130.08320.67
5.5.250.0070.08020.70
5.5.240.0000.04320.12

preferences:
48.92 ms | 401 KiB | 5 Q