3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ public $a; public function __construct($a) { $this->a = $a; } public function __wakeup() { printf("Calling wakeup, a=%d\n", $this->a); if ($this->a === 3) { throw new Exception("wakeup threw exception"); } } } $x = [new A(1), new A(2), new A(3), new A(4), new A(5)]; unserialize(serialize($x));

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.4.120.0040.00920.73
8.4.110.0120.00918.60
8.4.100.0110.01117.82
8.4.90.0060.00420.66
8.4.80.0090.01118.86
8.4.70.0120.01018.95
8.4.60.0150.00618.97
8.4.50.0060.00518.80
8.4.40.0030.01623.84
8.4.30.0100.01022.52
8.4.20.0140.00317.87
8.4.10.0140.00719.59
8.3.250.0120.00817.10
8.3.240.0100.01016.75
8.3.230.0120.00716.57
8.3.220.0110.00819.24
8.3.210.0120.00716.75
8.3.200.0050.00316.75
8.3.190.0110.00717.26
8.3.180.0150.00416.94
8.3.170.0140.00420.61
8.3.160.0130.00617.15
8.3.150.0160.00316.86
8.3.140.0060.01317.34
8.3.130.0050.00318.65
8.3.120.0060.00320.49
8.3.110.0130.00320.94
8.3.100.0060.00324.06
8.3.90.0080.00026.77
8.3.80.0090.00017.97
8.3.70.0140.00418.68
8.3.60.0160.00016.88
8.3.50.0130.00822.89
8.3.40.0070.00718.71
8.3.30.0160.00318.84
8.3.20.0070.00020.30
8.3.10.0040.00421.74
8.3.00.0050.00320.04
8.2.290.0090.00718.67
8.2.280.0090.00816.86
8.2.270.0130.00716.66
8.2.260.0070.00016.61
8.2.250.0040.00418.63
8.2.240.0030.00619.07
8.2.230.0040.00422.58
8.2.220.0080.00037.54
8.2.210.0040.00426.77
8.2.200.0030.00718.66
8.2.190.0060.00816.75
8.2.180.0090.01218.50
8.2.170.0140.00722.96
8.2.160.0140.00321.08
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00422.08
8.2.120.0000.00726.35
8.2.110.0030.00622.09
8.2.100.0040.00718.22
8.2.90.0040.00419.20
8.2.80.0000.00917.97
8.2.70.0030.00617.50
8.2.60.0030.00618.04
8.2.50.0060.00318.10
8.2.40.0040.00422.27
8.2.30.0030.00520.85
8.2.20.0070.00017.81
8.2.10.0000.00818.06
8.2.00.0000.00718.06
8.1.330.0110.00816.39
8.1.320.0120.00916.46
8.1.310.0110.00416.16
8.1.300.0070.00418.70
8.1.290.0030.00630.84
8.1.280.0150.00025.92
8.1.270.0030.00623.95
8.1.260.0080.00028.09
8.1.250.0060.00328.09
8.1.240.0080.00022.14
8.1.230.0120.00019.61
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0060.00317.35
8.1.180.0030.00618.10
8.1.170.0040.00418.71
8.1.160.0000.00722.15
8.1.150.0030.00520.59
8.1.140.0000.00919.54
8.1.130.0070.00017.66
8.1.120.0000.00717.46
8.1.110.0000.01017.36
8.1.100.0040.00417.37
8.1.90.0060.00317.42
8.1.80.0050.00217.36
8.1.70.0030.00317.50
8.1.60.0080.00017.56
8.1.50.0040.00417.39
8.1.40.0040.00417.48
8.1.30.0080.00017.71
8.1.20.0000.00717.59
8.1.10.0050.00217.50
8.1.00.0070.00317.54
8.0.300.0040.00418.77
8.0.290.0000.01016.75
8.0.280.0000.00718.40
8.0.270.0070.00017.26
8.0.260.0020.00517.34
8.0.250.0000.00717.09
8.0.240.0060.00317.00
8.0.230.0000.01116.90
8.0.220.0040.00416.96
8.0.210.0040.00416.86
8.0.200.0070.00017.07
8.0.190.0040.00416.98
8.0.180.0000.00716.96
8.0.170.0040.00416.97
8.0.160.0070.00016.89
8.0.150.0080.00016.82
8.0.140.0060.00316.98
8.0.130.0000.00513.30
8.0.120.0030.00716.85
8.0.110.0000.00816.84
8.0.100.0000.00817.02
8.0.90.0040.00416.82
8.0.80.0070.01016.89
8.0.70.0020.00516.85
8.0.60.0050.00216.85
8.0.50.0050.00317.02
8.0.30.0120.00717.07
8.0.20.0070.01117.40
8.0.10.0000.00716.91
8.0.00.0140.00616.62
7.4.330.0000.00515.08
7.4.320.0000.00616.56
7.4.300.0040.00416.56
7.4.290.0000.00616.41
7.4.280.0040.00416.45
7.4.270.0030.00316.52
7.4.260.0030.00316.64
7.4.250.0000.00816.62
7.4.240.0000.00716.52
7.4.230.0070.00016.71
7.4.220.0130.00316.66
7.4.210.0080.01216.57
7.4.200.0040.00416.41
7.4.160.0080.00716.46
7.4.150.0130.00617.40
7.4.140.0090.00917.86
7.4.130.0070.01116.52
7.4.120.0070.00916.63
7.4.110.0120.01016.62
7.4.100.0130.01016.56
7.4.90.0090.00816.44
7.4.80.0100.01319.39
7.4.70.0060.01216.62
7.4.60.0120.00316.58
7.4.50.0110.00416.50
7.4.40.0080.00816.46
7.4.30.0080.00816.37
7.4.00.0000.01514.93
7.3.330.0050.00013.42
7.3.320.0020.00213.34
7.3.310.0000.00716.26
7.3.300.0000.00716.36
7.3.290.0100.00516.35
7.3.280.0080.01016.36
7.3.270.0120.00417.40
7.3.260.0060.01616.58
7.3.250.0090.01016.44
7.3.240.0070.01016.38
7.3.230.0030.01316.55
7.3.210.0090.00916.56
7.3.200.0130.00316.48
7.3.190.0060.01016.56
7.3.180.0120.00616.44
7.3.170.0100.00716.35
7.3.160.0110.00716.38
7.3.10.0090.00516.72
7.3.00.0050.00616.57
7.2.330.0100.00716.77
7.2.320.0030.01316.76
7.2.310.0070.01016.86
7.2.300.0160.01016.87
7.2.290.0090.00916.68
7.2.130.0030.01016.91
7.2.120.0040.00716.83
7.2.110.0070.00617.00
7.2.100.0050.00616.83
7.2.90.0050.00716.97
7.2.80.0070.00816.94
7.2.70.0070.00717.01
7.2.60.0050.00716.92
7.2.50.0070.00416.92
7.2.40.0090.00516.97
7.2.30.0030.00917.01
7.2.20.0060.00516.81
7.2.10.0060.00716.82
7.2.00.0050.01116.71
7.1.250.0050.00615.74
7.1.200.0090.00615.75
7.1.70.0040.00416.98
7.1.60.0070.00719.75
7.1.50.0070.01716.90
7.1.00.0000.08022.51
7.0.200.0080.00316.52
7.0.90.2430.00019.95
7.0.80.1830.00020.08
7.0.70.0900.00019.94
7.0.60.0770.00020.08
7.0.50.0700.00020.20
7.0.40.0770.00020.33
7.0.30.0830.00020.29
7.0.20.0770.00020.39
7.0.10.0700.00020.36
7.0.00.0700.00020.39
5.6.240.0870.00020.65
5.6.230.0770.00020.67
5.6.220.0700.00020.65
5.6.210.0770.00020.71
5.6.200.0730.00021.12
5.6.190.0800.00021.08
5.6.180.0770.00021.07
5.6.170.0730.00021.20
5.6.160.0930.00021.02
5.6.150.0770.00021.08
5.6.140.0730.00021.03
5.6.130.0770.00021.03
5.6.120.0770.00021.13
5.6.110.0930.00021.03
5.6.100.0700.00021.07
5.6.90.0700.00021.11
5.6.80.0670.00020.57
5.6.70.0870.00020.40
5.6.60.0670.00020.48
5.6.50.0700.00020.59
5.6.40.0730.00020.50
5.6.30.0730.00020.49
5.6.20.0700.00020.50
5.6.10.0630.00020.46
5.6.00.0830.00020.47

preferences:
27.82 ms | 403 KiB | 5 Q