3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassWithWakeup { public function __wakeup() { echo "ClassWithWakeup::__wakeup\n"; throw new Exception("exception thrown by __wakeup"); } } function __autoload($className) { echo "__autoload :: $className\n"; throw new Exception("exception thrown by __autoload"); } $params = 'a:2:{i:0;O:15:"ClassWithWakeup":0:{}i:1;O:7:"Unknown":0:{}}'; try { $result = unserialize($params); echo "try - after unserialize\n"; } catch (Exception $e) { echo "exception caught, ok\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.0070.00716.50
8.3.50.0110.00916.59
8.3.40.0160.00018.74
8.3.30.0140.00318.64
8.3.20.0040.00418.49
8.3.10.0060.00320.41
8.3.00.0100.00619.38
8.2.180.0160.00616.75
8.2.170.0110.00422.96
8.2.160.0100.00721.11
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0150.00019.19
8.2.110.0060.00322.15
8.2.100.0000.01117.78
8.2.90.0060.00317.84
8.2.80.0040.00419.13
8.2.70.0000.00817.38
8.2.60.0050.00317.68
8.2.50.0030.00618.10
8.2.40.0050.00317.91
8.2.30.0000.00917.91
8.2.20.0000.00717.44
8.2.10.0000.00817.60
8.2.00.0030.00617.46
8.1.280.0150.00625.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00022.29
8.1.230.0080.00422.63
8.1.220.0080.00017.74
8.1.210.0030.00718.91
8.1.200.0030.00616.98
8.1.190.0080.00017.10
8.1.180.0000.00818.10
8.1.170.0040.00418.71
8.1.160.0000.00818.75
8.1.150.0040.00418.56
8.1.140.0040.00417.25
8.1.130.0070.00017.62
8.1.120.0050.00317.24
8.1.110.0070.00017.32
8.1.100.0040.00417.22
8.1.90.0040.00317.29
8.1.80.0040.00317.33
8.1.70.0030.00317.19
8.1.60.0040.00417.47
8.1.50.0080.00017.38
8.1.40.0000.00717.27
8.1.30.0000.00717.45
8.1.20.0040.00417.47
8.1.10.0050.00317.29
8.1.00.0030.00517.15
8.0.300.0070.00019.76
8.0.290.0000.00816.63
8.0.280.0040.00418.34
8.0.270.0000.00717.04
8.0.260.0000.00716.67
8.0.250.0040.00416.79
8.0.240.0070.00016.79
8.0.230.0030.00316.79
8.0.220.0070.00016.75
8.0.210.0030.00316.84
8.0.200.0000.00616.92
8.0.190.0030.00316.87
8.0.180.0080.00016.85
8.0.170.0080.00016.80
8.0.160.0050.00316.71
8.0.150.0040.00416.79
8.0.140.0040.00716.66
8.0.130.0060.00013.23
8.0.120.0040.00416.69
8.0.110.0040.00416.82
8.0.100.0070.00016.63
8.0.90.0000.00716.71
8.0.80.0130.00316.75
8.0.70.0050.00216.86
8.0.60.0040.00416.88
8.0.50.0050.00316.88
8.0.30.0110.01116.91
8.0.20.0210.00317.15
8.0.10.0000.00716.73
8.0.00.0090.01016.64
7.4.330.0030.00213.05
7.4.320.0000.00716.52
7.4.300.0030.00316.45
7.4.290.0030.00316.62
7.4.280.0000.00716.49
7.4.270.0050.00316.51
7.4.260.0030.00313.28
7.4.250.0040.00416.54
7.4.240.0000.00716.61
7.4.230.0080.00016.41
7.4.220.0090.00916.46
7.4.210.0040.01116.61
7.4.200.0040.00316.58
7.4.190.0020.00516.69
7.4.160.0040.01116.60
7.4.150.0060.01316.51
7.4.140.0120.00816.56
7.4.130.0070.01016.48
7.4.120.0130.00316.54
7.4.110.0160.00016.65
7.4.100.0060.01216.57
7.4.90.0140.00316.69
7.4.80.0070.01019.39
7.4.70.0040.01216.38
7.4.60.0080.01116.55
7.4.50.0030.00516.47
7.4.40.0080.00416.50
7.4.30.0110.01116.48
7.4.00.0040.01115.08
7.3.330.0000.00613.32
7.3.320.0050.00013.37
7.3.310.0040.00416.34
7.3.300.0070.00016.38
7.3.290.0240.01016.31
7.3.280.0100.00616.38
7.3.270.0070.01116.64
7.3.260.0060.01216.30
7.3.250.0090.01116.55
7.3.240.0090.00616.54
7.3.230.0070.01016.59
7.3.210.0120.00416.51
7.3.200.0060.01216.32
7.3.190.0120.00616.40
7.3.180.0160.00016.37
7.3.170.0060.01216.55
7.3.160.0030.01416.50
7.3.120.0030.00915.07
7.2.330.0060.01216.29
7.2.320.0120.01216.38
7.2.310.0130.00816.45
7.2.300.0080.00816.59
7.2.290.0100.00716.38
7.2.60.0060.00916.91
7.2.00.0050.00519.47
7.1.200.0050.00315.84
7.1.100.0040.00817.65
7.1.70.0000.00817.32
7.1.60.0140.01019.40
7.1.50.0000.01416.99
7.1.00.0030.06022.31
7.0.200.0000.01016.72
7.0.140.0100.06722.01
7.0.120.0070.07022.02
7.0.60.0130.08020.00
7.0.50.0100.08017.90
7.0.40.0170.07320.30
7.0.30.0300.08020.06
7.0.20.0230.04720.21
7.0.10.0100.05320.12
7.0.00.0030.06320.29
5.6.280.0000.07320.89
5.6.210.0030.04320.61
5.6.200.0070.04018.29
5.6.190.0100.08020.39
5.6.180.0430.07720.41
5.6.170.0300.04020.55
5.6.160.0000.04720.48
5.6.150.0000.08318.12
5.6.140.0130.07318.27
5.6.130.0070.06318.22
5.6.120.0100.04721.00
5.6.110.0070.09021.00
5.6.100.0070.06320.98
5.6.90.0170.04321.11
5.6.80.0170.06320.29
5.5.350.0170.07320.39
5.5.340.0130.04318.08
5.5.330.0070.09020.37
5.5.320.0400.07320.36
5.5.310.0330.06320.35
5.5.300.0170.07018.03
5.5.290.0030.04017.95
5.5.280.0030.04020.97
5.5.270.0100.06720.83
5.5.260.0030.08720.80
5.5.250.0130.03020.69
5.5.240.0000.08720.36
5.4.450.0000.04319.48
5.4.440.0070.05019.47
5.4.430.0130.04319.19
5.4.420.0100.07319.47
5.4.410.0130.05019.20
5.4.400.0070.07719.14
5.4.390.0130.07318.84
5.4.380.0070.04719.25
5.4.370.0030.06018.85
5.4.360.0100.07319.27
5.4.350.0100.07318.85
5.4.340.0030.04319.24
5.4.320.0070.05319.14
5.4.310.0030.05319.12
5.4.300.0100.07019.07
5.4.290.0130.07319.24
5.4.280.0070.06719.14
5.4.270.0070.04319.24
5.4.260.0070.04319.25
5.4.250.0070.05019.14
5.4.240.0000.06319.15
5.4.230.0100.07719.15
5.4.220.0100.04318.84
5.4.210.0100.04018.86
5.4.200.0070.06719.23
5.4.190.0030.04319.13
5.4.180.0070.04019.23
5.4.170.0070.07719.23
5.4.160.0130.07019.27
5.4.150.0100.04719.13
5.4.140.0030.04716.35
5.4.130.0130.06316.51
5.4.120.0130.06016.46
5.4.110.0030.05716.39
5.4.100.0100.06316.42
5.4.90.0070.06716.48
5.4.80.0070.04716.50
5.4.70.0100.06716.47
5.4.60.0000.06316.38
5.4.50.0070.04716.40
5.4.40.0070.04016.40
5.4.30.0030.04716.27
5.4.20.0070.07016.50
5.4.10.0070.06716.26
5.4.00.0030.04015.75
5.3.290.0130.07014.73
5.3.280.0070.08314.61
5.3.270.0030.04314.66
5.3.260.0030.04014.64
5.3.250.0070.06314.66
5.3.240.0030.07714.61
5.3.230.0030.08014.63
5.3.220.0070.06714.60
5.3.210.0070.03714.64
5.3.200.0000.05714.59
5.3.190.0030.05714.64
5.3.180.0030.04014.72
5.3.170.0000.07314.60
5.3.160.0030.07314.60
5.3.150.0030.03714.64
5.3.140.0070.05714.56
5.3.130.0030.05014.59
5.3.120.0030.08314.57
5.3.110.0030.07314.55
5.3.100.0100.04014.04
5.3.90.0070.04314.19
5.3.80.0100.07313.98
5.3.70.0100.04714.17
5.3.60.0100.07314.03
5.3.50.0200.05313.96
5.3.40.0030.05313.96
5.3.30.0030.08013.93
5.3.20.0070.05313.73
5.3.10.0030.05313.69
5.3.00.0030.06013.64
5.2.170.0000.03711.20
5.2.160.0100.05311.07
5.2.150.0000.04011.17
5.2.140.0030.06711.15
5.2.130.0100.05711.15
5.2.120.0070.05011.12
5.2.110.0000.03711.27
5.2.100.0100.03011.28
5.2.90.0030.04011.28
5.2.80.0000.06311.15
5.2.70.0100.05311.10
5.2.60.0030.04011.07
5.2.50.0100.05311.18
5.2.40.0100.05710.92
5.2.30.0130.04010.89
5.2.20.0030.04010.90
5.2.10.0030.04710.83
5.2.00.0030.04310.78
5.1.60.0000.05710.16
5.1.50.0030.03310.07
5.1.40.0030.0279.89
5.1.30.0030.04010.34
5.1.20.0070.05010.29
5.1.10.0100.04010.13
5.1.00.0000.04310.04
5.0.50.0030.0278.54
5.0.40.0030.0178.43
5.0.30.0030.0308.14
5.0.20.0030.0178.20
5.0.10.0000.0238.25
5.0.00.0000.0308.17
4.4.90.0100.0137.81
4.4.80.0000.0277.81
4.4.70.0070.0137.81
4.4.60.0000.0277.81
4.4.50.0070.0337.81
4.4.40.0000.0337.81
4.4.30.0030.0137.81
4.4.20.0070.0277.81
4.4.10.0070.0107.81
4.4.00.0000.0277.81
4.3.110.0030.0137.81
4.3.100.0000.0137.81
4.3.90.0000.0137.81
4.3.80.0000.0277.81
4.3.70.0030.0137.81
4.3.60.0030.0137.81
4.3.50.0000.0177.81
4.3.40.0000.0237.81
4.3.30.0000.0137.81
4.3.20.0000.0177.81
4.3.10.0000.0137.81
4.3.00.0000.0137.81

preferences:
42.63 ms | 401 KiB | 5 Q