3v4l.org

run code in 300+ PHP versions simultaneously
<?php global $foo; class Foo extends DateTime { function __wakeup() { global $foo; $foo = $this; parent::__wakeup(); } } $s2 = 'O:3:"Foo":3:{s:4:"date";s:20:"20007-06-07 03:51:49";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}'; try { unserialize( $s2 ); } catch ( Exception $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.60.0110.01118.56
8.3.50.0140.00621.98
8.3.40.0080.00818.92
8.3.30.0030.01618.63
8.3.20.0130.00319.04
8.3.10.0040.00419.29
8.3.00.0040.00423.53
8.2.180.0070.01016.75
8.2.170.0000.01522.96
8.2.160.0030.01320.48
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00019.54
8.2.110.0060.00320.29
8.2.100.0090.00317.91
8.2.90.0040.00419.23
8.2.80.0000.00818.05
8.2.70.0040.00417.63
8.2.60.0000.01417.68
8.2.50.0000.00818.07
8.2.40.0000.00918.03
8.2.30.0090.00021.33
8.2.20.0080.00017.67
8.2.10.0040.00417.81
8.2.00.0040.00417.86
8.1.280.0030.01725.92
8.1.270.0030.00523.99
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0030.00622.48
8.1.230.0080.00320.90
8.1.220.0040.00418.77
8.1.210.0080.00018.77
8.1.200.0030.00617.63
8.1.190.0000.00717.54
8.1.180.0040.00418.10
8.1.170.0040.00418.62
8.1.160.0000.00718.91
8.1.150.0030.00518.70
8.1.140.0040.00417.54
8.1.130.0040.00417.86
8.1.120.0070.00017.58
8.1.110.0040.00417.51
8.1.100.0040.00417.37
8.1.90.0070.00017.55
8.1.80.0030.00517.55
8.1.70.0030.00317.49
8.1.60.0090.00017.66
8.1.50.0000.00717.61
8.1.40.0060.00617.62
8.1.30.0000.00817.56
8.1.20.0000.00817.70
8.1.10.0040.00417.57
8.1.00.0040.00417.62
8.0.300.0030.00319.94
8.0.290.0000.00717.05
8.0.280.0000.00718.40
8.0.270.0000.00717.26
8.0.260.0060.00316.90
8.0.250.0000.00817.07
8.0.240.0000.00717.11
8.0.230.0030.00317.10
8.0.220.0000.00716.91
8.0.210.0040.00417.04
8.0.200.0030.00317.14
8.0.190.0050.00217.11
8.0.180.0040.00417.03
8.0.170.0060.00317.08
8.0.160.0070.00017.00
8.0.150.0070.00016.95
8.0.140.0030.00517.05
8.0.130.0060.00013.55
8.0.120.0070.00017.02
8.0.110.0000.00817.08
8.0.100.0000.00716.93
8.0.90.0000.00817.15
8.0.80.0090.00917.02
8.0.70.0040.00417.04
8.0.60.0040.00417.08
8.0.50.0050.00216.83
8.0.30.0120.00917.29
8.0.20.0100.01017.46
8.0.10.0030.00516.98
8.0.00.0100.01016.86
7.4.330.0000.00614.70
7.4.320.0030.00316.55
7.4.300.0000.00716.64
7.4.290.0050.00216.73
7.4.280.0080.00016.69
7.4.270.0000.00716.67
7.4.260.0000.00513.36
7.4.250.0070.00016.64
7.4.240.0050.00216.67
7.4.230.0000.00716.67
7.4.220.0120.00916.69
7.4.210.0070.00916.67
7.4.200.0050.00216.48
7.4.190.0030.00416.81
7.4.160.0090.00616.70
7.4.150.0110.00617.40
7.4.140.0070.01217.86
7.4.130.0100.01016.73
7.4.120.0100.00716.63
7.4.110.0130.00316.47
7.4.100.0180.00416.56
7.4.90.0140.00316.57
7.4.80.0110.00919.39
7.4.70.0100.00716.70
7.4.60.0030.01316.59
7.4.50.0040.00416.84
7.4.40.0030.01122.52
7.4.30.0090.01216.70
7.4.00.0100.00615.02
7.3.330.0000.00613.47
7.3.320.0000.00513.41
7.3.310.0000.00716.50
7.3.300.0030.00316.37
7.3.290.0070.00716.48
7.3.280.0070.00916.50
7.3.270.0060.01017.40
7.3.260.0080.00818.24
7.3.250.0090.01116.55
7.3.240.0060.01616.52
7.3.230.0080.00816.73
7.3.210.0130.00516.36
7.3.200.0060.01219.39
7.3.190.0200.00316.48
7.3.180.0090.01316.54
7.3.170.0130.00316.57
7.3.160.0120.00316.46
7.3.120.0030.01015.01
7.3.10.0090.00316.66
7.3.00.0070.00716.61
7.2.330.0070.01516.95
7.2.320.0100.01016.52
7.2.310.0120.00916.86
7.2.300.0140.00316.76
7.2.290.0140.00316.66
7.2.130.0000.01416.78
7.2.120.0060.00616.69
7.2.110.0090.00416.92
7.2.100.0080.00416.79
7.2.90.0050.00916.96
7.2.80.0060.00416.81
7.2.70.0090.00617.12
7.2.60.0100.00217.05
7.2.50.0050.00716.84
7.2.40.0070.00517.01
7.2.30.0090.00517.03
7.2.20.0050.00817.01
7.2.10.0050.00816.96
7.2.00.0040.00817.78
7.1.250.0040.00815.99
7.1.230.0060.00615.84
7.1.220.0040.00815.91
7.1.210.0120.00015.54
7.1.200.0050.00815.71
7.1.190.0040.00815.82
7.1.180.0000.01515.63
7.1.170.0090.00316.00
7.1.160.0040.00815.83
7.1.150.0120.00315.84
7.1.140.0000.00915.86
7.1.130.0000.01015.52
7.1.120.0080.00015.63
7.1.110.0070.00316.02
7.1.100.0060.00416.98
7.1.90.0070.00315.98
7.1.80.0100.00015.61
7.1.70.0040.00716.54
7.1.60.0090.01117.70
7.1.50.0070.00916.34
7.1.40.0100.00615.77
7.1.30.0030.00915.89
7.1.20.0070.00715.66
7.1.10.0030.01015.64
7.1.00.0020.04019.12
7.0.310.0030.01015.30
7.0.300.0090.00315.45
7.0.290.0050.00315.52
7.0.280.0040.00415.38
7.0.270.0040.00415.10
7.0.260.0000.01015.35
7.0.250.0040.00315.43
7.0.240.0070.00715.39
7.0.230.0030.00915.52
7.0.220.0070.00315.21
7.0.210.0000.00915.38
7.0.200.0050.00416.23
7.0.190.0070.00415.57
7.0.180.0040.00815.59
7.0.170.0030.01015.52
7.0.160.0040.00815.50
7.0.150.0080.00415.59
7.0.140.0020.04218.83
7.0.130.0130.00015.66
7.0.120.0030.01015.36
7.0.110.0000.00815.37
7.0.100.0040.00815.55
7.0.90.0030.00615.48
7.0.80.0070.00315.42
7.0.70.0030.04118.67
7.0.60.0050.04518.68
7.0.50.0080.02018.86
7.0.40.0070.04016.80
7.0.30.0070.04516.79
7.0.20.0040.02316.73
7.0.10.0050.02516.65
7.0.00.0020.04316.85
5.6.380.0120.00314.45
5.6.370.0030.01014.38
5.6.360.0080.00314.35
5.6.350.0070.00714.31
5.6.340.0000.01414.39
5.6.330.0060.00614.67
5.6.320.0030.00914.51
5.6.310.0040.00814.32
5.6.300.0090.00314.49
5.6.290.0060.00614.02
5.6.280.0030.04217.82
5.6.270.0060.00914.28
5.6.260.0040.01014.52
5.6.250.0090.00614.32
5.6.240.0030.01014.36
5.6.230.0040.01114.08
5.6.220.0030.03117.47
5.6.210.0070.03717.37
5.6.200.0080.02717.64
5.6.190.0030.02717.79
5.6.180.0000.04517.65
5.6.170.0060.02217.70
5.6.160.0070.04317.59
5.6.150.0050.02817.71
5.6.140.0050.03517.63
5.6.130.0070.04317.61
5.6.120.0040.04517.84
5.6.110.0050.04617.74
5.6.100.0040.03017.73
5.6.90.0060.04017.56
5.6.80.0060.04117.27
5.6.70.0050.04317.30
5.6.60.0050.04217.28
5.6.50.0060.04317.35
5.6.40.0070.04017.20
5.6.30.0040.04617.27
5.6.20.0070.04417.41
5.6.10.0050.04217.34
5.6.00.0030.04517.41
5.5.380.0070.00411.01
5.5.370.0150.00010.98
5.5.360.0030.04915.74
5.5.350.0070.03215.77
5.5.340.0110.04015.81
5.5.330.0030.03616.03
5.5.320.0040.03916.14
5.5.310.0090.02015.90
5.5.300.0100.03515.85
5.5.290.0080.04016.09
5.5.280.0080.04315.81
5.5.270.0050.04716.04
5.5.260.0110.03815.88
5.5.250.0030.05115.78
5.5.240.0110.03115.57
5.5.230.0030.04515.65
5.5.220.0080.03215.76
5.5.210.0070.03915.65
5.5.200.0050.03615.60
5.5.190.0060.03615.62
5.5.180.0030.04515.73
5.5.170.0130.00714.03
5.5.160.0070.02515.76
5.5.150.0090.03315.66
5.5.140.0080.04215.67
5.5.130.0040.04215.66
5.5.120.0060.04115.65
5.5.110.0060.03015.49
5.5.100.0080.03415.39
5.5.90.0070.04015.40
5.5.80.0040.04215.50
5.5.70.0100.03215.51
5.5.60.0070.02515.49
5.5.50.0090.03315.56
5.5.40.0080.04115.64
5.5.30.0040.04615.47
5.5.20.0060.03315.65
5.5.10.0060.04215.29
5.5.00.0070.03815.70
5.4.450.0060.04315.29
5.4.440.0110.03215.26
5.4.430.0070.04215.27
5.4.420.0090.03015.23
5.4.410.0050.04315.21
5.4.400.0070.03714.92
5.4.390.0080.04015.00
5.4.380.0080.03315.04
5.4.370.0040.04114.91
5.4.360.0050.02814.99
5.4.350.0040.04515.03
5.4.340.0050.03814.96
5.4.330.0120.00310.74
5.4.320.0060.04215.20
5.4.310.0080.03715.07
5.4.300.0020.04314.76
5.4.290.0070.03714.91
5.4.280.0050.04014.99
5.4.270.0060.03515.24
5.4.260.0080.04014.94
5.4.250.0070.04015.12
5.4.240.0060.03214.85
5.4.230.0060.03914.99
5.4.220.0060.03314.91
5.4.210.0050.04315.16
5.4.200.0050.03814.91
5.4.190.0030.04215.13
5.4.180.0050.03814.89
5.4.170.0020.04615.04
5.4.160.0090.03815.02
5.4.150.0040.04314.92
5.4.140.0040.03913.76
5.4.130.0050.03813.57
5.4.120.0080.03513.71
5.4.110.0080.01813.53
5.4.100.0080.01513.80
5.4.90.0040.02813.70
5.4.80.0040.02013.74
5.4.70.0050.01913.80
5.4.60.0030.02013.65
5.4.50.0040.02113.72
5.4.40.0000.02313.78
5.4.30.0060.01713.70
5.4.20.0020.01913.71
5.4.10.0000.02313.61
5.4.00.0040.01913.28
5.3.290.0060.04012.76
5.3.280.0080.03812.69
5.3.270.0060.04312.68
5.3.260.0050.04212.67
5.3.250.0090.03712.73
5.3.240.0100.03512.71
5.3.230.0020.04312.51
5.3.220.0080.03312.53
5.3.210.0050.03112.47
5.3.200.0010.02112.50
5.3.190.0040.02012.50
5.3.180.0040.02012.56
5.3.170.0030.02112.54
5.3.160.0010.02112.46
5.3.150.0060.01712.52
5.3.140.0050.01812.52
5.3.130.0050.02112.45
5.3.120.0060.02012.52
5.3.110.0060.02012.53
5.3.100.0040.02112.22
5.3.90.0020.02212.27
5.3.80.0070.01612.20
5.3.70.0040.01612.17
5.3.60.0050.01812.19
5.3.50.0070.01712.17
5.3.40.0050.01612.23
5.3.30.0050.01612.11
5.3.20.0040.01712.06
5.3.10.0060.01812.02
5.3.00.0050.01512.04
5.2.170.0050.01710.95
5.2.160.0060.01710.85
5.2.150.0060.01310.94
5.2.140.0000.01610.85
5.2.130.0030.01810.90
5.2.120.0020.01910.93
5.2.110.0030.01410.86
5.2.100.0020.01310.86
5.2.90.0030.01510.86
5.2.80.0020.01410.85
5.2.70.0050.01310.86
5.2.60.0040.01610.90
5.2.50.0020.01410.85
5.2.40.0040.02310.85
5.2.30.0040.01210.85
5.2.20.0020.01410.85
5.2.10.0070.01110.85
5.2.00.0050.01010.85
5.1.60.0040.01010.85
5.1.50.0030.01210.85
5.1.40.0000.01410.85
5.1.30.0020.01510.85
5.1.20.0050.00910.85
5.1.10.0040.01410.85
5.1.00.0040.01310.85
5.0.50.0050.00810.85
5.0.40.0020.01010.85
5.0.30.0020.01410.85
5.0.20.0020.01010.85
5.0.10.0000.01310.85
5.0.00.0050.01210.85
4.4.90.0000.00910.85
4.4.80.0020.00710.85
4.4.70.0020.00810.85
4.4.60.0010.00810.85
4.4.50.0000.01010.85
4.4.40.0000.01310.85
4.4.30.0010.00810.85
4.4.20.0010.00810.85
4.4.10.0030.00710.85
4.4.00.0020.01210.85
4.3.110.0040.00710.85
4.3.100.0020.00610.85
4.3.90.0010.00810.85
4.3.80.0030.01010.85
4.3.70.0020.00810.85
4.3.60.0020.00510.85
4.3.50.0030.00710.85
4.3.40.0030.01010.85
4.3.30.0020.00810.85
4.3.20.0000.01010.85
4.3.10.0000.01110.85
4.3.00.0000.01210.85

preferences:
43.92 ms | 401 KiB | 5 Q