3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s1 = 'O:8:"DateTime":3:{s:4:"date";s:20:"10007-06-07 03:51:49";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}'; $s2 = 'O:3:"Foo":3:{s:4:"date";s:20:"10007-06-07 03:51:49";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}'; global $foo; class Foo extends DateTime { function __wakeup() { global $foo; $foo = $this; parent::__wakeup(); } } // Old test case try { unserialize( $s1 ); } catch ( Exception $e ) {} // My test case try { unserialize( $s2 ); } catch ( Exception $e ) { var_dump($e); } //var_dump( $foo );

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.70.0080.00818.55
8.3.60.0110.00416.75
8.3.50.0170.00517.23
8.3.40.0110.00419.10
8.3.30.0080.00818.96
8.3.20.0050.00319.02
8.3.10.0090.00018.69
8.3.00.0050.00319.63
8.2.180.0150.00016.75
8.2.170.0070.00722.96
8.2.160.0050.00921.13
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00320.88
8.2.110.0090.00020.77
8.2.100.0070.00317.91
8.2.90.0100.00021.08
8.2.80.0040.00419.39
8.2.70.0040.00417.59
8.2.60.0090.00017.91
8.2.50.0080.00018.07
8.2.40.0040.00417.88
8.2.30.0000.00918.09
8.2.20.0000.00917.86
8.2.10.0040.00417.89
8.2.00.0030.00617.94
8.1.280.0070.00725.92
8.1.270.0050.00224.66
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00022.42
8.1.230.0090.00320.74
8.1.220.0000.00817.74
8.1.210.0070.00318.77
8.1.200.0060.00317.48
8.1.190.0040.00417.18
8.1.180.0050.00318.10
8.1.170.0000.00718.84
8.1.160.0070.00018.86
8.1.150.0000.00818.70
8.1.140.0050.00217.48
8.1.130.0000.00717.89
8.1.120.0000.00717.39
8.1.110.0040.00417.45
8.1.100.0000.00717.41
8.1.90.0040.00417.57
8.1.80.0050.00317.51
8.1.70.0000.00717.42
8.1.60.0030.00617.57
8.1.50.0000.00817.44
8.1.40.0000.00717.60
8.1.30.0000.00817.74
8.1.20.0000.00917.67
8.1.10.0000.00717.55
8.1.00.0070.00017.63
8.0.300.0070.00019.95
8.0.290.0060.00316.75
8.0.280.0030.00318.30
8.0.270.0080.00017.23
8.0.260.0040.00416.96
8.0.250.0040.00417.11
8.0.240.0070.00016.98
8.0.230.0040.00416.98
8.0.220.0000.00816.91
8.0.210.0070.00016.98
8.0.200.0000.00616.95
8.0.190.0040.00417.08
8.0.180.0040.00417.01
8.0.170.0000.00816.95
8.0.160.0050.00217.02
8.0.150.0030.00616.97
8.0.140.0070.00416.88
8.0.130.0050.00013.41
8.0.120.0030.00516.86
8.0.110.0040.00417.02
8.0.100.0030.00516.97
8.0.90.0000.00816.92
8.0.80.0120.00317.02
8.0.70.0000.00717.14
8.0.60.0000.00816.90
8.0.50.0000.00717.09
8.0.30.0060.01317.12
8.0.20.0080.01217.01
8.0.10.0000.00717.05
8.0.00.0140.00616.96
7.4.330.0020.00312.92
7.4.320.0030.00316.52
7.4.300.0030.00316.48
7.4.290.0070.00016.66
7.4.280.0030.00516.45
7.4.270.0000.00716.47
7.4.260.0030.00313.41
7.4.250.0080.00016.63
7.4.240.0030.00316.57
7.4.230.0000.00716.46
7.4.220.0090.00916.70
7.4.210.0040.01116.62
7.4.200.0030.00316.48
7.4.190.0070.00016.54
7.4.160.0130.00316.56
7.4.150.0090.00916.71
7.4.140.0050.01216.49
7.4.130.0110.00816.66
7.4.120.0100.00716.66
7.4.110.0130.00316.67
7.4.100.0060.01216.70
7.4.90.0140.01116.62
7.4.80.0000.01619.39
7.4.70.0070.01416.68
7.4.60.0120.00416.55
7.4.50.0040.00416.71
7.4.40.0110.00616.75
7.4.30.0090.00816.47
7.4.00.0090.00915.00
7.3.330.0030.00313.30
7.3.320.0030.00313.39
7.3.310.0000.00716.43
7.3.300.0000.00716.29
7.3.290.0100.01016.44
7.3.280.0080.01016.41
7.3.270.0110.00516.33
7.3.260.0150.00916.57
7.3.250.0150.00516.55
7.3.240.0100.00616.61
7.3.230.0090.00916.72
7.3.210.0130.01316.52
7.3.200.0140.00716.48
7.3.190.0070.01016.36
7.3.180.0130.00316.55
7.3.170.0090.00916.45
7.3.160.0030.01316.63
7.3.120.0070.00714.70
7.2.330.0100.01316.68
7.2.320.0040.01216.69
7.2.310.0060.01216.64
7.2.300.0140.00316.71
7.2.290.0100.00616.59
7.2.80.0130.00316.59
7.2.60.0040.01116.89
7.2.00.0070.01119.38
7.1.200.0080.00315.95
7.1.100.0040.01118.35
7.1.70.0060.00317.29
7.1.60.0040.02119.40
7.1.50.0100.01017.05
7.1.00.0000.05722.40
7.0.200.1200.00714.64
7.0.140.0070.07022.01
7.0.120.0000.07022.12
7.0.60.0100.07720.00
7.0.50.0100.08017.85
7.0.40.0000.04720.07
7.0.30.0070.05720.38
7.0.20.0170.05020.40
7.0.10.0070.08720.33
7.0.00.0100.04320.05
5.6.210.0070.05020.61
5.6.200.0070.08318.15
5.6.190.0100.07320.51
5.6.180.0230.04720.34
5.6.170.0170.05020.55
5.6.160.0130.07720.70
5.6.150.0070.03718.27
5.6.140.0030.08718.21
5.6.130.0130.07318.18
5.6.120.0100.03720.99
5.6.110.0130.07720.98
5.6.100.0100.08321.05
5.6.90.0130.07720.98
5.6.80.0130.06720.39
5.5.350.0300.07320.33
5.5.340.0070.04317.98
5.5.330.0030.07320.44
5.5.320.0230.04720.27
5.5.310.0230.06020.13
5.5.300.0070.07318.04
5.5.290.0070.04317.97
5.5.280.0070.08320.90
5.5.270.0030.04720.73
5.5.260.0070.08020.74
5.5.250.0000.06720.62
5.5.240.0100.07320.04
5.4.450.0170.05019.20
5.4.440.0230.05319.46
5.4.430.0300.07019.38
5.4.420.0230.07719.30
5.4.410.0300.07019.39
5.4.400.0200.07319.20
5.4.390.0130.04019.15
5.4.380.0270.04319.15
5.4.370.0100.07018.99
5.4.360.0200.06718.98
5.4.350.0200.05719.15
5.4.340.0200.04319.20
5.4.320.0170.07718.98
5.4.310.0170.04019.21
5.4.300.0170.05319.14
5.4.290.0300.03719.22
5.4.280.0270.06319.13
5.4.270.0230.07019.24
5.4.260.0200.07019.24
5.4.250.0100.07718.98
5.4.240.0200.06318.87
5.4.230.0170.05719.04
5.4.220.0270.05319.18
5.4.210.0230.05719.24
5.4.200.0200.07018.98
5.4.190.0100.07018.96
5.4.180.0230.04719.23
5.4.170.0270.07319.18
5.4.160.0200.06319.14
5.4.150.0170.07319.14
5.4.140.0400.02716.38
5.4.130.0300.06716.33
5.4.120.0170.07716.67
5.4.110.0330.04016.56
5.4.100.0200.03716.50
5.4.90.0200.04316.51
5.4.80.0270.06316.52
5.4.70.0230.06316.59
5.4.60.0270.06316.36
5.4.50.0100.07316.57
5.4.40.0230.04316.48
5.4.30.0170.06716.38
5.4.20.0200.04316.47
5.4.10.0130.04016.52
5.4.00.0170.04015.96
5.3.290.0170.05314.68
5.3.280.0200.07314.69
5.3.270.0170.07714.53
5.3.260.0170.08014.52
5.3.250.0130.05014.84
5.3.240.0230.06714.60
5.3.230.0200.06314.51
5.3.220.0100.05714.79
5.3.210.0270.07014.62
5.3.200.0200.06314.74
5.3.190.0200.04714.80
5.3.180.0170.05314.50
5.3.170.0100.08014.51
5.3.160.0170.07314.50
5.3.150.0130.05714.59
5.3.140.0130.05314.49
5.3.130.0200.05714.71
5.3.120.0130.07714.55
5.3.110.0170.07314.47
5.3.100.0300.06714.20
5.3.90.0170.04714.02
5.3.80.0230.07314.07
5.3.70.0230.06314.24
5.3.60.0200.07013.92
5.3.50.0100.05013.93
5.3.40.0200.06713.93
5.3.30.0270.06713.82
5.3.20.0330.05313.78
5.3.10.0200.06013.66
5.3.00.0230.06013.73
5.2.170.0200.05012.58
5.2.160.0100.06712.58
5.2.150.0130.04012.58
5.2.140.0100.05312.58
5.2.130.0130.04312.58
5.2.120.0130.06012.58
5.2.110.0230.03312.58
5.2.100.0070.06312.58
5.2.90.0170.05312.58
5.2.80.0130.05712.58
5.2.70.0200.06012.58
5.2.60.0130.04712.58
5.2.50.0230.06012.58
5.2.40.0170.03012.58
5.2.30.0100.03712.58
5.2.20.0130.02312.58
5.2.10.0100.02712.58
5.2.00.0130.02712.58
5.1.60.0100.02712.58
5.1.50.0070.03012.58
5.1.40.0070.02712.58
5.1.30.0170.02312.58
5.1.20.0100.03012.58
5.1.10.0130.02312.58
5.1.00.0200.02012.58
5.0.50.0030.02712.58
5.0.40.0070.02712.58
5.0.30.0030.03012.58
5.0.20.0030.02012.58
5.0.10.0070.04012.58
5.0.00.0100.03012.58
4.4.90.0030.03312.58
4.4.80.0130.02712.58
4.4.70.0070.01312.58
4.4.60.0030.01312.58
4.4.50.0070.01312.58
4.4.40.0000.02712.58
4.4.30.0030.02012.58
4.4.20.0030.02312.58
4.4.10.0030.02012.58
4.4.00.0100.02312.58
4.3.110.0030.01712.58
4.3.100.0030.02012.58
4.3.90.0070.01312.58
4.3.80.0000.03012.58
4.3.70.0070.01312.58
4.3.60.0070.01312.58
4.3.50.0100.01012.58
4.3.40.0000.02712.58
4.3.30.0030.01712.58
4.3.20.0000.01712.58
4.3.10.0000.01712.58
4.3.00.0000.01712.58

preferences:
58.81 ms | 401 KiB | 5 Q