3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $e = array(); } class Token implements \Serializable { public function serialize() { $c = new A; for ($i = 0; $i < 4; $i++) { $e = new A; $c->e[] = $e; $e->e = $c->e; } return serialize(array(serialize($c))); } public function unserialize($str) { $r = unserialize($str); $r = unserialize($r[0]); } } $token = new Token; $token = serialize($token); unserialize($token);

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.0130.00618.43
8.3.50.0100.01018.05
8.3.40.0070.00719.02
8.3.30.0060.00920.29
8.3.20.0000.00820.38
8.3.10.0050.00321.95
8.3.00.0040.00422.27
8.2.180.0070.01416.75
8.2.170.0170.00322.96
8.2.160.0030.01021.97
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00320.88
8.2.110.0130.01020.52
8.2.100.0040.00717.84
8.2.90.0040.00419.22
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0040.00418.05
8.2.50.0080.00018.07
8.2.40.0080.00018.27
8.2.30.0000.00819.92
8.2.20.0050.00317.73
8.2.10.0060.00317.64
8.2.00.0000.00817.81
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.89
8.1.230.0080.00417.48
8.1.220.0030.00617.78
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0030.00517.23
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0000.00718.86
8.1.150.0060.00318.55
8.1.140.0050.00217.46
8.1.130.0000.00717.71
8.1.120.0040.00417.45
8.1.110.0000.00717.37
8.1.100.0080.00017.45
8.1.90.0040.00417.39
8.1.80.0030.00517.39
8.1.70.0000.00717.48
8.1.60.0060.00317.50
8.1.50.0050.00317.45
8.1.40.0080.00017.43
8.1.30.0000.00717.64
8.1.20.0040.00417.49
8.1.10.0020.00517.49
8.1.00.0040.00417.54
8.0.300.0000.00818.77
8.0.290.0070.00016.75
8.0.280.0000.00718.32
8.0.270.0070.00017.24
8.0.260.0000.00616.94
8.0.250.0000.00717.00
8.0.240.0040.00416.96
8.0.230.0040.00417.04
8.0.220.0040.00416.86
8.0.210.0030.00316.96
8.0.200.0000.00616.95
8.0.190.0080.00016.96
8.0.180.0060.00616.96
8.0.170.0000.00816.86
8.0.160.0000.00716.97
8.0.150.0040.00416.94
8.0.140.0070.00016.86
8.0.130.0000.00613.45
8.0.120.0000.00816.86
8.0.110.0040.00417.00
8.0.100.0070.00016.99
8.0.90.0040.00416.98
8.0.80.0040.01116.91
8.0.70.0030.00617.06
8.0.60.0040.00417.00
8.0.50.0040.00417.02
8.0.30.0130.00916.99
8.0.20.0120.00917.42
8.0.10.0000.00716.98
8.0.00.0050.01416.78
7.4.330.0060.00015.15
7.4.320.0030.00316.46
7.4.300.0000.00616.39
7.4.290.0000.00716.47
7.4.280.0030.00316.50
7.4.270.0090.00016.40
7.4.260.0030.00313.27
7.4.250.0000.00716.61
7.4.240.0020.00516.55
7.4.230.0080.00016.52
7.4.220.0070.01316.57
7.4.210.0090.00816.66
7.4.200.0000.00716.68
7.4.190.0030.00316.77
7.4.160.0000.01716.46
7.4.150.0110.00617.40
7.4.140.0110.00617.86
7.4.130.0070.01016.55
7.4.120.0070.00916.63
7.4.110.0150.00316.40
7.4.100.0130.00416.61
7.4.90.0100.00616.66
7.4.80.0060.01219.39
7.4.70.0090.00916.66
7.4.60.0130.00816.55
7.4.50.0090.00016.54
7.4.40.0060.01022.77
7.4.30.0040.01216.66
7.4.00.0030.01314.88
7.3.330.0000.00513.43
7.3.320.0030.00313.40
7.3.310.0040.00416.46
7.3.300.0000.00616.36
7.3.290.0170.00016.37
7.3.280.0070.00916.37
7.3.270.0200.00417.40
7.3.260.0100.01016.54
7.3.250.0130.00816.56
7.3.240.0110.00616.59
7.3.230.0100.00716.39
7.3.210.0030.01316.34
7.3.200.0090.00919.39
7.3.190.0110.01016.61
7.3.180.0130.00316.60
7.3.170.0070.01016.48
7.3.160.0150.00316.61
7.3.120.0120.00315.05
7.2.330.0120.00816.59
7.2.320.0130.00316.82
7.2.310.0100.01316.90
7.2.300.0150.00416.89
7.2.290.0080.01116.75
7.2.60.0090.00617.05
7.2.00.0100.00319.63
7.1.200.0030.01015.58
7.1.100.0030.00918.00
7.1.70.0000.01017.18
7.1.60.0100.01319.32
7.1.50.0060.00616.96
7.1.00.0000.06022.31
7.0.200.0060.00316.81
7.0.140.0030.07322.08
7.0.60.0170.07319.91
7.0.50.0030.07317.91
7.0.40.0030.05720.12
7.0.30.0070.06720.02
7.0.20.0100.04720.23
7.0.10.0100.08320.23
7.0.00.0000.08320.20
5.6.280.0100.06721.00
5.6.210.0170.06720.73
5.6.200.0070.08318.25
5.6.190.0170.07720.77
5.6.180.0000.09320.47
5.6.170.0070.05720.57
5.6.160.0000.05020.46
5.6.150.0100.06720.43
5.6.140.0100.07320.35
5.6.130.0030.09020.16
5.6.120.0000.09320.18
5.6.110.0100.08320.30
5.6.100.0070.07020.39
5.6.90.0030.09020.31
5.6.80.0100.07719.79
5.6.70.0070.07019.71
5.6.60.0070.06019.54
5.6.50.0130.06319.55
5.6.40.0030.07019.53
5.6.30.0170.07719.49
5.6.20.0130.04719.77
5.6.10.0030.07319.76
5.6.00.0030.08319.68
5.5.350.0100.05320.31
5.5.340.0170.03318.05
5.5.330.0070.08020.40
5.5.320.0000.04720.42
5.5.310.0130.07020.27
5.5.300.0100.08720.21
5.5.290.0070.05020.14
5.5.280.0000.08320.21
5.5.270.0030.04719.97
5.5.260.0100.08320.12
5.5.250.0030.08019.97
5.5.240.0130.07319.51
5.5.230.0030.07719.52
5.5.220.0100.04319.58
5.5.210.0100.05319.57
5.5.200.0100.07719.55
5.5.190.0030.07019.49
5.5.180.0070.08719.34
5.5.160.0070.04019.58
5.5.150.0070.08019.48
5.5.140.0100.07719.58
5.5.130.0070.06319.48
5.5.120.0030.04719.46
5.5.110.0030.05019.54
5.5.100.0030.05019.22
5.5.90.0070.08319.45
5.5.80.0100.05319.27
5.5.70.0030.06719.21
5.5.60.0100.06319.21
5.5.50.0100.03719.24
5.5.40.0130.03719.47
5.5.30.0130.07019.33
5.5.20.0170.05719.32
5.5.10.0100.06319.17
5.5.00.0070.07319.25
5.4.450.0030.07319.48
5.4.440.0070.07719.57
5.4.430.0100.07319.47
5.4.420.0070.07719.47
5.4.410.0000.06719.44
5.4.400.0100.07319.21
5.4.390.0030.05719.08
5.4.380.0130.05019.11
5.4.370.0030.07319.15
5.4.360.0070.07319.24
5.4.350.0070.07019.16
5.4.340.0170.05019.24
5.4.320.0100.03319.14
5.4.310.0100.07718.92
5.4.300.0030.04019.14
5.4.290.0030.07318.85
5.4.280.0030.04319.16
5.4.270.0070.03719.14
5.4.260.0100.03318.85
5.4.250.0100.07719.23
5.4.240.0030.05318.91
5.4.230.0070.04019.20
5.4.220.0100.06019.15
5.4.210.0070.05718.86
5.4.200.0030.07319.07
5.4.190.0000.08019.05
5.4.180.0070.07318.93
5.4.170.0130.07018.80
5.4.160.0070.03318.79
5.4.150.0070.03718.98
5.4.140.0100.07016.40
5.4.130.0030.06016.30
5.4.120.0100.07016.34
5.4.110.0070.04316.38
5.4.100.0130.06716.37
5.4.90.0030.06016.26
5.4.80.0070.04316.53
5.4.70.0030.04016.35
5.4.60.0000.06016.25
5.4.50.0030.07716.38
5.4.40.0030.06316.33
5.4.30.0100.06716.48
5.4.20.0100.04316.33
5.4.10.0070.06316.25
5.4.00.0100.06715.71
5.3.290.0030.07714.60
5.3.280.0070.06014.53
5.3.270.0000.08714.64
5.3.260.0070.04314.62
5.3.250.0070.03714.65
5.3.240.0130.05714.63
5.3.230.0030.08014.62
5.3.220.0130.07014.58
5.3.210.0030.08014.73
5.3.200.0100.06714.60
5.3.190.0070.05714.47
5.3.180.0100.07314.60
5.3.170.0070.07314.62
5.3.160.0070.04714.57
5.3.150.0070.07714.74
5.3.140.0000.07714.63
5.3.130.0030.06714.71
5.3.120.0000.08014.57
5.3.110.0030.05714.61
5.3.100.0070.07314.07
5.3.90.0070.03714.04
5.3.80.0030.05314.07
5.3.70.0070.04314.02
5.3.60.0170.06013.94
5.3.50.0070.06313.98
5.3.40.0100.05313.93
5.3.30.0030.08013.94
5.3.20.0100.05013.70
5.3.10.0000.03713.68
5.3.00.0100.03013.70
5.2.170.0070.06311.06
5.2.160.0130.04711.22
5.2.150.0030.05011.22
5.2.140.0030.04011.16
5.2.130.0100.03711.15
5.2.120.0070.02711.07
5.2.110.0130.02011.30
5.2.100.0000.03011.18
5.2.90.0070.02311.11
5.2.80.0000.03311.11
5.2.70.0000.03011.09
5.2.60.0030.03011.11
5.2.50.0030.02711.09
5.2.40.0030.02711.16
5.2.30.0000.03711.14
5.2.20.0000.03011.04
5.2.10.0000.03010.84
5.2.00.0070.02310.89
5.1.60.0100.0479.93
5.1.50.0000.03710.04
5.1.40.0030.05310.06
5.1.30.0030.03310.32
5.1.20.0070.05010.38
5.1.10.0030.05310.14
5.1.00.0030.05310.07
5.0.50.0030.0438.61
5.0.40.0000.0208.47
5.0.30.0100.0608.28
5.0.20.0070.0378.19
5.0.10.0030.0178.09
5.0.00.0000.0308.19
4.4.90.0070.0106.76
4.4.80.0000.0176.76
4.4.70.0070.0106.76
4.4.60.0000.0176.76
4.4.50.0000.0136.76
4.4.40.0000.0506.76
4.4.30.0030.0236.76
4.4.20.0000.0376.76
4.4.10.0030.0136.76
4.4.00.0000.0406.76
4.3.110.0000.0176.76
4.3.100.0030.0336.76
4.3.90.0000.0176.76
4.3.80.0000.0236.76
4.3.70.0030.0136.76
4.3.60.0000.0176.76
4.3.50.0030.0136.76
4.3.40.0000.0276.76
4.3.30.0000.0176.76
4.3.20.0030.0136.76
4.3.10.0000.0176.76
4.3.00.0000.0136.76

preferences:
51.34 ms | 400 KiB | 5 Q