3v4l.org

run code in 300+ PHP versions simultaneously
<?php class logger { function __construct() { print "logger constructing\n"; } function __wakeup() { print "logger wakeup\n"; } function __destruct() { print "logger destruct\n"; } } class obj { var $prop; function __wakeup() { $this->prop = 'awake'; } } $x = 'a:4:{i:0;O:8:"stdClass":1:{i:0;O:6:"logger":0:{}}i:1;O:3:"obj":1:{s:4:"prop";R:2;}i:2;R:3}'; $y = unserialize($x); var_dump($y);

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.0140.00718.56
8.3.50.0070.00718.05
8.3.40.0070.01118.91
8.3.30.0040.01218.84
8.3.20.0000.00820.39
8.3.10.0030.00520.52
8.3.00.0040.00421.73
8.2.180.0040.01118.66
8.2.170.0100.00722.96
8.2.160.0110.00422.12
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0000.00721.03
8.2.120.0090.00026.35
8.2.110.0060.00620.53
8.2.100.0060.00617.72
8.2.90.0030.00519.08
8.2.80.0030.00617.97
8.2.70.0060.00317.63
8.2.60.0040.00418.03
8.2.50.0060.00318.09
8.2.40.0030.00620.39
8.2.30.0090.00019.31
8.2.20.0000.00817.54
8.2.10.0070.00018.06
8.2.00.0040.00417.95
8.1.280.0140.00025.92
8.1.270.0100.01022.11
8.1.260.0020.00528.09
8.1.250.0080.00028.09
8.1.240.0030.00623.82
8.1.230.0110.00020.89
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0030.00517.25
8.1.180.0040.00418.10
8.1.170.0000.00918.56
8.1.160.0040.00420.70
8.1.150.0000.00718.88
8.1.140.0000.00819.39
8.1.130.0000.00717.55
8.1.120.0000.00717.34
8.1.110.0040.00417.47
8.1.100.0050.00217.42
8.1.90.0000.00717.41
8.1.80.0090.00017.30
8.1.70.0050.00217.33
8.1.60.0070.00017.48
8.1.50.0000.00917.58
8.1.40.0000.00817.52
8.1.30.0000.00817.51
8.1.20.0000.00817.54
8.1.10.0000.00917.50
8.1.00.0040.00417.31
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.46
8.0.270.0000.00817.28
8.0.260.0030.00318.37
8.0.250.0000.01017.00
8.0.240.0080.00016.86
8.0.230.0000.00716.97
8.0.220.0000.00716.82
8.0.210.0040.00416.89
8.0.200.0000.00617.01
8.0.190.0040.00416.96
8.0.180.0050.00216.96
8.0.170.0020.00516.83
8.0.160.0030.00316.82
8.0.150.0070.00016.76
8.0.140.0050.00216.85
8.0.130.0030.00313.29
8.0.120.0000.00716.75
8.0.110.0040.00416.86
8.0.100.0000.00816.88
8.0.90.0040.00416.77
8.0.80.0090.00616.89
8.0.70.0000.00716.90
8.0.60.0050.00216.86
8.0.50.0000.00716.72
8.0.30.0130.00317.27
8.0.20.0100.01017.40
8.0.10.0040.00416.91
8.0.00.0110.00716.88
7.4.330.0050.00016.83
7.4.320.0060.00016.44
7.4.300.0030.00316.60
7.4.290.0040.00416.59
7.4.280.0070.00016.61
7.4.270.0050.00316.66
7.4.260.0040.00416.36
7.4.250.0000.00716.58
7.4.240.0030.00516.67
7.4.230.0050.00316.52
7.4.220.0100.01016.73
7.4.210.0100.01016.54
7.4.200.0040.00416.41
7.4.160.0140.00316.62
7.4.150.0100.00717.40
7.4.140.0100.00717.86
7.4.130.0060.01416.61
7.4.120.0040.01816.57
7.4.110.0120.02016.42
7.4.100.0030.01316.50
7.4.90.0060.01216.39
7.4.80.0080.01619.39
7.4.70.0080.00816.40
7.4.60.0000.01516.52
7.4.50.0070.00716.50
7.4.40.0060.01516.38
7.4.30.0100.00716.61
7.4.00.0120.00314.98
7.3.330.0060.00013.17
7.3.320.0000.00613.21
7.3.310.0000.00716.28
7.3.300.0030.00316.39
7.3.290.0070.01016.32
7.3.280.0110.00616.37
7.3.270.0140.00417.40
7.3.260.0140.00316.28
7.3.250.0060.01116.32
7.3.240.0130.00316.40
7.3.230.0150.00816.44
7.3.210.0030.01316.44
7.3.200.0100.00716.53
7.3.190.0030.02016.45
7.3.180.0060.01116.43
7.3.170.0150.00016.36
7.3.160.0070.01016.52
7.3.120.0000.01014.59
7.3.110.0100.00714.73
7.3.100.0100.00614.76
7.3.90.0100.00314.56
7.3.80.0100.00714.65
7.3.70.0040.01414.64
7.3.60.0070.00414.49
7.3.50.0040.01114.82
7.3.40.0030.01014.82
7.3.30.0000.01014.69
7.3.20.0050.00516.61
7.3.10.0100.00716.37
7.3.00.0070.00716.27
7.2.330.0120.01216.34
7.2.320.0150.00316.88
7.2.310.0150.00316.55
7.2.300.0030.01416.52
7.2.290.0070.01016.61
7.2.240.0060.00614.95
7.2.230.0060.01015.09
7.2.220.0030.01014.93
7.2.210.0030.00915.13
7.2.200.0100.00315.24
7.2.190.0070.00715.06
7.2.180.0100.00714.95
7.2.170.0120.00315.22
7.2.160.0030.01014.78
7.2.150.0060.00916.79
7.2.140.0000.01416.61
7.2.130.0070.00416.89
7.2.120.0060.00917.08
7.2.110.0030.00917.04
7.2.100.0030.01017.07
7.2.90.0100.00717.09
7.2.80.0030.01017.07
7.2.70.0040.01417.04
7.2.60.0080.00916.82
7.2.50.0000.01316.95
7.2.40.0090.00617.00
7.2.30.0070.01116.80
7.2.20.0120.00016.79
7.2.10.0040.01416.96
7.2.00.0100.00718.04
7.1.330.0000.01415.79
7.1.320.0030.01015.48
7.1.310.0070.00715.62
7.1.300.0070.00315.38
7.1.290.0090.00315.74
7.1.280.0000.00915.78
7.1.270.0060.00615.81
7.1.260.0090.00615.80
7.1.250.0070.00715.74
7.1.200.0090.00015.79
7.1.100.0130.00317.98
7.1.70.0040.00816.80
7.1.60.0140.01019.19
7.1.50.0030.01017.02
7.1.00.0000.08022.48
7.0.200.1050.00314.77
7.0.60.0100.07021.73
7.0.50.0130.06317.73
7.0.40.0030.06020.26
7.0.30.0400.06720.06
7.0.20.0230.06020.07
7.0.10.0070.07320.19
7.0.00.0070.09020.22
5.6.280.0030.03321.05
5.6.210.0100.08320.75
5.6.200.0030.05718.29
5.6.190.0030.06720.55
5.6.180.0270.08020.41
5.6.170.0330.05720.56
5.6.160.0070.07020.39
5.6.150.0130.06718.16
5.6.140.0100.08018.18
5.6.130.0070.03718.26
5.6.120.0030.04320.92
5.6.110.0170.07020.98
5.6.100.0070.07721.13
5.6.90.0130.07021.11
5.6.80.0200.05320.34
5.5.350.0270.07320.44
5.5.340.0100.04718.04
5.5.330.0100.08720.32
5.5.320.0600.06720.29
5.5.310.0370.05720.24
5.5.300.0000.05317.95
5.5.290.0170.07017.98
5.5.280.0070.08320.77
5.5.270.0030.08720.87
5.5.260.0200.05720.88
5.5.250.0100.07720.72
5.5.240.0000.04020.16

preferences:
40.93 ms | 401 KiB | 5 Q