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.40.0110.00418.64
8.3.30.0090.00618.85
8.3.20.0030.00620.16
8.3.10.0060.00320.66
8.3.00.0040.00421.92
8.2.170.0130.00322.96
8.2.160.0040.01122.14
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0050.00220.91
8.2.120.0040.00426.35
8.2.110.0030.00721.00
8.2.100.0000.01217.81
8.2.90.0040.00419.13
8.2.80.0030.00617.97
8.2.70.0050.00317.50
8.2.60.0000.00818.04
8.2.50.0030.00618.10
8.2.40.0060.00320.61
8.2.30.0070.00419.39
8.2.20.0040.00417.62
8.2.10.0040.00418.07
8.2.00.0000.00818.17
8.1.270.0150.00322.24
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0040.00421.16
8.1.230.0070.01017.77
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00517.09
8.1.190.0030.00617.22
8.1.180.0030.00518.10
8.1.170.0090.00018.47
8.1.160.0040.00420.63
8.1.150.0040.00418.75
8.1.140.0000.00719.43
8.1.130.0030.00317.57
8.1.120.0000.00717.44
8.1.110.0080.00017.40
8.1.100.0060.00317.41
8.1.90.0080.00017.37
8.1.80.0080.00017.41
8.1.70.0000.00717.44
8.1.60.0040.00417.49
8.1.50.0060.00317.50
8.1.40.0040.00417.41
8.1.30.0030.00517.73
8.1.20.0040.00417.43
8.1.10.0000.00717.53
8.1.00.0040.00417.46
8.0.300.0030.00618.77
8.0.290.0030.00616.75
8.0.280.0070.00018.46
8.0.270.0070.00017.27
8.0.260.0040.00418.46
8.0.250.0070.00317.01
8.0.240.0000.00717.03
8.0.230.0030.00316.96
8.0.220.0000.00716.91
8.0.210.0030.00316.82
8.0.200.0070.00016.96
8.0.190.0040.00416.88
8.0.180.0000.00816.88
8.0.170.0040.00416.94
8.0.160.0040.00416.97
8.0.150.0000.00716.81
8.0.140.0070.00016.66
8.0.130.0030.00313.34
8.0.120.0040.00416.88
8.0.110.0000.00716.84
8.0.100.0040.00416.74
8.0.90.0000.00716.86
8.0.80.0030.01216.88
8.0.70.0040.00416.93
8.0.60.0000.00716.88
8.0.50.0040.00416.75
8.0.30.0150.01417.27
8.0.20.0120.00717.40
8.0.10.0000.00716.90
8.0.00.0110.00916.87
7.4.330.0050.00016.79
7.4.320.0060.00016.47
7.4.300.0000.00716.53
7.4.290.0080.00016.52
7.4.280.0000.00716.60
7.4.270.0000.00716.59
7.4.260.0050.00316.63
7.4.250.0000.00716.51
7.4.240.0080.00016.64
7.4.230.0000.00716.45
7.4.220.0030.01416.54
7.4.210.0060.00916.60
7.4.200.0070.00016.42
7.4.160.0090.00916.41
7.4.150.0070.01017.40
7.4.140.0090.01017.86
7.4.130.0120.00716.64
7.4.120.0110.00716.52
7.4.110.0100.02016.64
7.4.100.0030.01416.43
7.4.90.0070.01016.26
7.4.80.0100.01319.39
7.4.70.0100.00716.64
7.4.60.0060.01016.41
7.4.50.0140.00316.54
7.4.40.0130.00916.60
7.4.30.0060.01016.55
7.4.00.0090.00914.68
7.3.330.0000.00513.09
7.3.320.0000.00613.18
7.3.310.0000.00816.18
7.3.300.0070.00016.32
7.3.290.0030.00316.20
7.3.280.0100.00516.29
7.3.270.0150.00417.40
7.3.260.0060.01216.59
7.3.250.0070.01016.36
7.3.240.0100.00816.33
7.3.230.0030.02016.39
7.3.210.0100.00716.36
7.3.200.0060.01216.30
7.3.190.0070.01016.51
7.3.180.0030.01316.39
7.3.170.0110.00516.33
7.3.160.0100.01016.45
7.2.330.0080.01116.67
7.2.320.0080.01116.35
7.2.310.0100.00616.64
7.2.300.0060.01216.64
7.2.290.0120.00916.77
7.2.60.0180.00416.73
7.2.00.0060.00619.43
7.1.200.0040.00715.89
7.1.100.0070.00718.05
7.1.70.0040.00417.07
7.1.60.0070.01819.19
7.1.50.0030.00716.89
7.1.00.0070.07322.45
7.0.200.1040.00314.61
7.0.60.0100.08721.73
7.0.50.0070.07317.96
7.0.40.0200.06720.05
7.0.30.0370.05720.09
7.0.20.0230.05720.10
7.0.10.0070.05320.30
7.0.00.0030.04320.23
5.6.280.0030.03021.09
5.6.210.0000.07020.48
5.6.200.0170.05318.16
5.6.190.0030.09320.63
5.6.180.0230.07720.55
5.6.170.0300.07720.39
5.6.160.0070.09020.54
5.6.150.0130.05318.14
5.6.140.0070.08018.14
5.6.130.0000.04318.15
5.6.120.0030.04320.90
5.6.110.0070.08720.98
5.6.100.0100.08021.14
5.6.90.0030.06021.10
5.6.80.0070.05020.39
5.5.350.0300.07320.47
5.5.340.0000.06018.04
5.5.330.0100.07320.37
5.5.320.0370.07320.25
5.5.310.0230.07320.34
5.5.300.0100.08018.08
5.5.290.0170.04017.94
5.5.280.0170.07320.84
5.5.270.0070.05720.80
5.5.260.0230.06720.77
5.5.250.0100.08020.80
5.5.240.0100.07020.02

preferences:
44.97 ms | 400 KiB | 5 Q