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.40.0120.00618.79
8.3.30.0110.00418.84
8.3.20.0050.00318.86
8.3.10.0060.00320.97
8.3.00.0070.00021.61
8.2.170.0130.00322.96
8.2.160.0070.00720.28
8.2.150.0050.00524.18
8.2.140.0000.00824.66
8.2.130.0030.00626.16
8.2.120.0040.00421.00
8.2.110.0070.00320.90
8.2.100.0110.00018.03
8.2.90.0030.00619.22
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0040.00418.04
8.2.50.0030.00618.07
8.2.40.0090.00018.34
8.2.30.0000.00821.28
8.2.20.0000.00717.72
8.2.10.0000.00717.63
8.2.00.0040.00417.72
8.1.270.0000.00823.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00021.27
8.1.230.0070.00417.52
8.1.220.0040.00417.79
8.1.210.0060.00318.77
8.1.200.0070.00317.48
8.1.190.0060.00317.35
8.1.180.0030.00518.10
8.1.170.0000.00818.78
8.1.160.0000.00718.96
8.1.150.0000.00718.70
8.1.140.0070.00017.38
8.1.130.0030.00317.90
8.1.120.0040.00417.48
8.1.110.0000.00717.47
8.1.100.0050.00317.36
8.1.90.0050.00317.51
8.1.80.0040.00417.37
8.1.70.0000.00717.44
8.1.60.0030.00617.57
8.1.50.0080.00017.38
8.1.40.0060.00317.54
8.1.30.0030.00617.55
8.1.20.0030.00517.55
8.1.10.0030.00617.60
8.1.00.0000.00717.41
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0050.00218.51
8.0.270.0070.00017.18
8.0.260.0070.00016.94
8.0.250.0040.00417.05
8.0.240.0000.00817.02
8.0.230.0050.00417.02
8.0.220.0030.00316.98
8.0.210.0030.00316.94
8.0.200.0030.00317.01
8.0.190.0030.00616.92
8.0.180.0000.00717.00
8.0.170.0070.00016.98
8.0.160.0000.00716.92
8.0.150.0030.00316.90
8.0.140.0040.00416.82
8.0.130.0050.00013.35
8.0.120.0030.00616.80
8.0.110.0070.00016.89
8.0.100.0050.00316.80
8.0.90.0040.00416.95
8.0.80.0120.00316.92
8.0.70.0040.00416.79
8.0.60.0040.00416.89
8.0.50.0000.00716.96
8.0.30.0110.00817.04
8.0.20.0050.01417.40
8.0.10.0050.00316.96
8.0.00.0120.00716.78
7.4.330.0000.00614.84
7.4.320.0000.00616.61
7.4.300.0060.00016.50
7.4.290.0070.00016.61
7.4.280.0040.00416.43
7.4.270.0030.00316.61
7.4.260.0000.00513.23
7.4.250.0000.00716.51
7.4.240.0040.00416.40
7.4.230.0070.00016.53
7.4.220.0180.00616.50
7.4.210.0090.00716.53
7.4.200.0000.00716.42
7.4.190.0000.00716.57
7.4.160.0130.00316.54
7.4.150.0060.01217.40
7.4.140.0120.00817.86
7.4.130.0070.01016.60
7.4.120.0070.01016.53
7.4.110.0200.00316.38
7.4.100.0110.00716.51
7.4.90.0060.01216.54
7.4.80.0070.01419.39
7.4.70.0090.00916.58
7.4.60.0060.01216.70
7.4.50.0030.00516.36
7.4.40.0060.01022.77
7.4.30.0210.00016.64
7.4.00.0070.00714.96
7.3.330.0000.00513.40
7.3.320.0080.00413.25
7.3.310.0000.00716.30
7.3.300.0000.00716.42
7.3.290.0080.01316.39
7.3.280.0100.00716.34
7.3.270.0100.00717.40
7.3.260.0120.01118.24
7.3.250.0090.00916.33
7.3.240.0140.00316.60
7.3.230.0070.01716.43
7.3.210.0030.01316.65
7.3.200.0040.01419.39
7.3.190.0090.01216.68
7.3.180.0070.01016.59
7.3.170.0090.00916.51
7.3.160.0080.01216.55
7.3.120.0050.01214.81
7.3.110.0140.00014.78
7.3.100.0060.01214.95
7.3.90.0040.00814.81
7.3.80.0060.00615.00
7.3.70.0000.01114.84
7.3.60.0130.00014.72
7.3.50.0120.00314.59
7.3.40.0100.00614.92
7.3.30.0070.00714.95
7.3.20.0030.01016.57
7.3.10.0100.00416.60
7.3.00.0040.00916.77
7.2.330.0090.00916.84
7.2.320.0140.00716.82
7.2.310.0110.00716.61
7.2.300.0110.00616.86
7.2.290.0100.01116.61
7.2.250.0110.00715.18
7.2.240.0060.01215.05
7.2.230.0090.00615.39
7.2.220.0100.00715.04
7.2.210.0060.00615.20
7.2.200.0090.00614.83
7.2.190.0080.00415.17
7.2.180.0070.00714.99
7.2.170.0030.01415.10
7.2.160.0070.00714.97
7.2.150.0100.01017.09
7.2.140.0110.00417.02
7.2.130.0050.01216.97
7.2.120.0050.00717.00
7.2.110.0090.00417.09
7.2.100.0080.00716.78
7.2.90.0040.00616.98
7.2.80.0030.01016.87
7.2.70.0070.00816.88
7.2.60.0080.00416.81
7.2.50.0050.01116.90
7.2.40.0050.01016.84
7.2.30.0000.01317.08
7.2.20.0070.01017.07
7.2.10.0030.01116.86
7.2.00.0020.00917.69
7.1.330.0030.01015.57
7.1.320.0080.00815.83
7.1.310.0040.01115.54
7.1.300.0040.01115.75
7.1.290.0080.00416.05
7.1.280.0120.00316.00
7.1.270.0070.01015.88
7.1.260.0060.00315.86
7.1.250.0050.00915.83
7.1.240.0060.00615.84
7.1.230.0030.00916.06
7.1.220.0030.00915.52
7.1.210.0040.01215.53
7.1.200.0080.00815.77
7.1.190.0060.00615.56
7.1.180.0030.01015.72
7.1.170.0060.00915.80
7.1.160.0000.01315.76
7.1.150.0000.00815.84
7.1.140.0060.00815.77
7.1.130.0000.01415.53
7.1.120.0030.00915.80
7.1.110.0000.01415.84
7.1.100.0060.00616.83
7.1.90.0030.00915.77
7.1.80.0070.00715.70
7.1.70.0040.00516.50
7.1.60.0070.01317.56
7.1.50.0060.00916.40
7.1.40.0040.00415.89
7.1.30.0050.00315.74
7.1.20.0060.00615.62
7.1.10.0070.00715.79
7.1.00.0020.03519.08
7.0.330.0060.00615.38
7.0.320.0040.01115.60
7.0.310.0060.01115.37
7.0.300.0000.01315.34
7.0.290.0090.00315.28
7.0.280.0030.00615.20
7.0.270.0050.00315.46
7.0.260.0040.01115.18
7.0.250.0110.00415.36
7.0.240.0030.00915.52
7.0.230.0060.00615.24
7.0.220.0110.00715.56
7.0.210.0070.00615.14
7.0.200.0120.00316.21
7.0.190.0050.00515.44
7.0.180.0070.00415.38
7.0.170.0040.01115.49
7.0.160.0110.00415.31
7.0.150.0040.00415.25
7.0.140.0010.04118.81
7.0.130.0110.00315.09
7.0.120.0000.00815.34
7.0.110.0110.00415.49
7.0.100.0070.00715.09
7.0.90.0000.01315.48
7.0.80.0090.00615.50
7.0.70.0070.03018.70
7.0.60.0150.03518.59
7.0.50.0030.02518.87
7.0.40.0050.02516.88
7.0.30.0030.02616.80
7.0.20.0060.03516.75
7.0.10.0030.04916.83
7.0.00.0070.04516.86
5.6.400.0040.00914.56
5.6.390.0000.01414.70
5.6.380.0000.00914.77
5.6.370.0060.00614.54
5.6.360.0000.01614.52
5.6.350.0000.01314.40
5.6.340.0030.01014.75
5.6.330.0030.00614.74
5.6.320.0090.00314.47
5.6.310.0070.01014.77
5.6.300.0000.01514.06
5.6.290.0120.00414.45
5.6.280.0040.00714.48
5.6.270.0100.00714.64
5.6.260.0080.00414.80
5.6.250.0070.00714.32
5.6.240.0000.01214.32
5.6.230.0070.00714.48
5.6.220.0040.04217.61
5.6.210.0000.03617.48
5.6.200.0040.04217.88
5.6.190.0060.03117.94
5.6.180.0050.04217.72
5.6.170.0040.03917.78
5.6.160.0060.04017.80
5.6.150.0070.04517.99
5.6.140.0100.02817.71
5.6.130.0070.02517.81
5.6.120.0060.04417.77
5.6.110.0060.04317.82
5.6.100.0060.03817.83
5.6.90.0080.04017.79
5.6.80.0020.04617.38
5.6.70.0030.04817.30
5.6.60.0060.03317.45
5.6.50.0070.04817.58
5.6.40.0060.04517.32
5.6.30.0070.04217.44
5.6.20.0050.04017.54
5.6.10.0080.04017.41
5.6.00.0050.02917.31
5.5.380.0000.01214.32
5.5.370.0050.00514.64
5.5.360.0040.02617.46
5.5.350.0070.04717.45
5.5.340.0050.03017.66
5.5.330.0020.02517.68
5.5.320.0100.04017.67
5.5.310.0070.04917.63
5.5.300.0060.04417.75
5.5.290.0050.04517.69
5.5.280.0070.03017.68
5.5.270.0020.05317.60
5.5.260.0090.04217.62
5.5.250.0090.04517.37
5.5.240.0050.04317.14
5.5.230.0020.03517.27
5.5.220.0110.04017.36
5.5.210.0020.04817.37
5.5.200.0030.04617.22
5.5.190.0050.03717.31
5.5.180.0080.04517.28
5.5.170.0070.00714.52
5.5.160.0050.03317.20
5.5.150.0020.03717.27
5.5.140.0050.03417.33
5.5.130.0020.04717.36
5.5.120.0030.03517.43
5.5.110.0030.03517.28
5.5.100.0050.04017.31
5.5.90.0070.04017.17
5.5.80.0030.04317.33
5.5.70.0080.03817.31
5.5.60.0020.04717.14
5.5.50.0030.04517.09
5.5.40.0050.04317.32
5.5.30.0060.03817.05
5.5.20.0080.02817.37
5.5.10.0070.03817.29
5.5.00.0090.03017.17
5.4.450.0060.04116.08
5.4.440.0040.04515.99
5.4.430.0110.02816.12
5.4.420.0100.03615.98
5.4.410.0070.04216.10
5.4.400.0100.03815.93
5.4.390.0000.03316.00
5.4.380.0060.04415.92
5.4.370.0030.02815.99
5.4.360.0030.03716.01
5.4.350.0050.03915.94
5.4.340.0050.03615.92
5.4.330.0030.00912.80
5.4.320.0030.04015.87
5.4.310.0050.03716.02
5.4.300.0000.03615.92
5.4.290.0030.04015.86
5.4.280.0030.04715.91
5.4.270.0040.04015.82
5.4.260.0030.04215.94
5.4.250.0040.04015.91
5.4.240.0020.02915.86
5.4.230.0100.03615.83
5.4.220.0050.04615.91
5.4.210.0050.03815.91
5.4.200.0060.03815.99
5.4.190.0030.02815.87
5.4.180.0000.02715.89
5.4.170.0030.04115.86
5.4.160.0020.04215.87
5.4.150.0040.02515.97
5.4.140.0060.03614.62
5.4.130.0050.02814.47
5.4.120.0040.03914.62
5.4.110.0030.04014.54
5.4.100.0080.03514.61
5.4.90.0020.04214.62
5.4.80.0000.03914.62
5.4.70.0080.03314.56
5.4.60.0030.02714.57
5.4.50.0040.03214.59
5.4.40.0080.03314.55
5.4.30.0060.03514.60
5.4.20.0020.01914.57
5.4.10.0040.01914.63
5.4.00.0020.02314.23
5.3.290.0030.03513.76
5.3.280.0020.03613.71
5.3.270.0070.03913.69
5.3.260.0020.04113.70
5.3.250.0030.04113.76
5.3.240.0000.04313.74
5.3.230.0070.03913.73
5.3.220.0030.04113.65
5.3.210.0020.03013.72
5.3.200.0030.04113.72
5.3.190.0060.03813.76
5.3.180.0080.03513.70
5.3.170.0050.03913.72
5.3.160.0010.04413.74
5.3.150.0030.04313.75
5.3.140.0070.03913.72
5.3.130.0050.02013.65
5.3.120.0030.02713.67
5.3.110.0070.01713.75
5.3.100.0000.02213.44
5.3.90.0050.01713.41
5.3.80.0020.02013.36
5.3.70.0030.02313.43
5.3.60.0050.01813.42
5.3.50.0020.02013.41
5.3.40.0040.01813.32
5.3.30.0020.01713.36
5.3.20.0040.01713.31
5.3.10.0040.02813.20
5.3.00.0000.02213.29
5.2.170.0000.03012.19
5.2.160.0000.02712.19
5.2.150.0000.02312.19
5.2.140.0030.02712.19
5.2.130.0000.02712.19
5.2.120.0030.02712.19
5.2.110.0030.02712.19
5.2.100.0030.02712.19
5.2.90.0000.02712.19
5.2.80.0000.03012.19
5.2.70.0030.02312.19
5.2.60.0000.03012.19
5.2.50.0000.06712.19
5.2.40.0000.06312.19
5.2.30.0000.03312.19
5.2.20.0000.03012.19
5.2.10.0030.05712.19
5.2.00.0030.06012.19
5.1.60.0100.04312.19
5.1.50.0070.04012.19
5.1.40.0100.04312.19
5.1.30.0030.06012.19
5.1.20.0030.03712.19
5.1.10.0000.05012.19
5.1.00.0030.03712.19
5.0.50.0000.04012.19
5.0.40.0070.02312.19
5.0.30.0000.03312.19
5.0.20.0000.02012.19
5.0.10.0000.02312.19
5.0.00.0000.06012.19
4.4.90.0000.02012.19
4.4.80.0070.01012.19
4.4.70.0000.03312.19
4.4.60.0070.02712.19
4.4.50.0000.02712.19
4.4.40.0000.03712.19
4.4.30.0030.03312.19
4.4.20.0030.03312.19
4.4.10.0000.03712.19
4.4.00.0000.03312.19
4.3.110.0030.01312.19
4.3.100.0000.01312.19
4.3.90.0000.02312.19
4.3.80.0070.02012.19
4.3.70.0000.02312.19
4.3.60.0000.01312.19
4.3.50.0000.01712.19
4.3.40.0000.02312.19
4.3.30.0000.01712.19
4.3.20.0030.01312.19
4.3.10.0000.01712.19
4.3.00.0000.01312.19

preferences:
42.75 ms | 400 KiB | 5 Q