3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CantUnserializeThis extends ArrayObject { } $className = 'CantUnserializeThis'; $serialized = serialize(new ArrayObject()); $chunks = explode(':', $serialized); $serializedValuesChunk = implode(':', array_slice($chunks, 3)); var_dump($serializedValuesChunk); var_dump(unserialize(sprintf( 'C:%d:"%s":0:{}', strlen($className), $className ))); var_dump(unserialize(sprintf( 'S:%d:"%s":0:{}', strlen($className), $className )));

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.00416.50
8.3.50.0100.01221.15
8.3.40.0110.00718.89
8.3.30.0040.01119.01
8.3.20.0080.00020.22
8.3.10.0030.00523.66
8.3.00.0050.00319.04
8.2.180.0130.00916.75
8.2.170.0040.01122.96
8.2.160.0080.00620.39
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0090.00019.12
8.2.110.0090.00022.08
8.2.100.0060.00617.59
8.2.90.0000.00719.05
8.2.80.0000.00917.97
8.2.70.0000.00817.38
8.2.60.0030.00517.91
8.2.50.0030.00618.07
8.2.40.0050.00319.97
8.2.30.0070.00018.19
8.2.20.0040.00417.54
8.2.10.0070.00018.06
8.2.00.0040.00417.59
8.1.280.0070.01025.92
8.1.270.0030.00523.82
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0030.00624.01
8.1.230.0070.00419.10
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0080.00317.23
8.1.190.0030.00517.25
8.1.180.0030.00818.10
8.1.170.0080.00018.46
8.1.160.0040.00421.88
8.1.150.0000.00718.45
8.1.140.0080.00017.42
8.1.130.0000.00717.83
8.1.120.0030.00417.45
8.1.110.0040.00417.43
8.1.100.0020.00517.41
8.1.90.0020.00517.34
8.1.80.0000.00717.40
8.1.70.0040.00417.27
8.1.60.0060.00317.57
8.1.50.0000.00817.52
8.1.40.0060.00617.43
8.1.30.0050.00317.45
8.1.20.0040.00417.57
8.1.10.0000.00717.58
8.1.00.0000.00817.48
8.0.300.0070.00018.77
8.0.290.0000.00717.18
8.0.280.0080.00018.29
8.0.270.0080.00017.22
8.0.260.0000.00617.16
8.0.250.0030.00316.84
8.0.240.0030.00316.96
8.0.230.0000.00816.91
8.0.220.0070.00016.84
8.0.210.0000.00716.81
8.0.200.0040.00416.81
8.0.190.0000.00716.99
8.0.180.0000.00716.93
8.0.170.0060.00316.79
8.0.160.0030.00516.75
8.0.150.0000.00816.75
8.0.140.0000.00716.83
8.0.130.0000.00613.32
8.0.120.0000.00816.76
8.0.110.0040.00416.93
8.0.100.0090.00016.82
8.0.90.0040.00416.79
8.0.80.0100.00716.82
8.0.70.0020.00516.76
8.0.60.0040.00416.75
8.0.50.0000.00816.87
8.0.30.0080.01116.93
8.0.20.0050.01417.40
8.0.10.0020.00516.98
8.0.00.0060.01116.65
7.4.330.0000.00515.00
7.4.320.0060.00016.46
7.4.300.0040.00416.52
7.4.290.0030.00316.45
7.4.280.0000.01016.46
7.4.270.0040.00416.52
7.4.260.0000.00716.41
7.4.250.0070.00016.50
7.4.240.0050.00216.53
7.4.230.0040.00416.64
7.4.220.0070.01316.54
7.4.210.0090.00716.42
7.4.200.0000.00816.63
7.4.190.0000.00816.57
7.4.160.0080.00816.34
7.4.150.0090.00917.40
7.4.140.0060.01117.86
7.4.130.0100.00716.60
7.4.120.0130.00516.61
7.4.110.0120.00616.48
7.4.100.0030.01816.55
7.4.90.0090.00916.34
7.4.80.0170.00719.39
7.4.70.0060.01116.50
7.4.60.0200.00316.35
7.4.50.0090.00016.41
7.4.40.0100.01016.57
7.4.30.0160.00016.49
7.4.00.0090.00614.96
7.3.330.0000.00613.29
7.3.320.0050.00013.14
7.3.310.0040.00416.27
7.3.300.0070.00016.26
7.3.290.0120.00616.32
7.3.280.0090.00916.29
7.3.270.0160.00317.40
7.3.260.0140.00316.38
7.3.250.0150.00916.44
7.3.240.0080.00816.24
7.3.230.0120.00616.56
7.3.210.0220.00316.24
7.3.200.0030.01519.39
7.3.190.0070.01016.28
7.3.180.0060.00916.38
7.3.170.0060.00916.46
7.3.160.0030.01216.45
7.3.120.0070.01014.80
7.2.330.0060.01216.70
7.2.320.0080.00816.48
7.2.310.0120.00616.67
7.2.300.0030.01516.63
7.2.290.0100.01416.42
7.2.60.0060.00616.85
7.2.00.0030.01018.99
7.1.200.0070.00715.78
7.1.100.0040.01117.76
7.1.70.0000.00717.03
7.1.60.0110.01519.46
7.1.50.0100.01016.84
7.1.00.0030.07722.36
7.0.200.0030.00316.36
7.0.140.0070.07022.00
7.0.60.0030.08319.96
7.0.50.0030.05317.88
7.0.40.0100.07020.13
7.0.30.0200.04020.13
7.0.20.0300.08020.34
7.0.10.0030.05020.35
7.0.00.0000.05020.07
5.6.210.0100.07720.61
5.6.200.0070.08318.28
5.6.190.0070.08720.66
5.6.180.0330.04720.58
5.6.170.0270.07720.43
5.6.160.0070.04320.43
5.6.150.0130.07318.29
5.6.140.0070.05018.14
5.6.130.0100.06018.17
5.6.120.0100.03320.95
5.6.110.0070.07321.01
5.6.100.0370.07321.09
5.6.90.0070.06020.95
5.6.80.0130.06020.54
5.5.350.0170.06720.38
5.5.340.0100.05317.98
5.5.330.0130.07020.41
5.5.320.0330.08020.38
5.5.310.0170.03720.30
5.5.300.0070.04717.96
5.5.290.0070.08018.07
5.5.280.0170.06020.97
5.5.270.0200.06720.89
5.5.260.0070.04720.88
5.5.250.0070.03720.67
5.5.240.0070.03320.05
5.4.450.0100.04019.30
5.4.440.0500.05319.55
5.4.430.0470.04319.16
5.4.420.0400.03319.54
5.4.410.0230.03319.50
5.4.400.0600.03319.09
5.4.390.0670.04718.98
5.4.380.0200.06718.57
5.4.370.0430.05718.61
5.4.360.0300.05318.51
5.4.350.0500.07018.70
5.4.340.0430.06718.78
5.4.320.0060.03712.52
5.4.310.0070.03812.51
5.4.300.0060.03812.52
5.4.290.0130.03412.51
5.4.280.0060.04012.41
5.4.270.0090.04112.41
5.4.260.0160.03612.40
5.4.250.0080.04412.41
5.4.240.0080.03912.41
5.4.230.0040.04412.40
5.4.220.0090.04212.39
5.4.210.0080.04012.40
5.4.200.0060.04112.40
5.4.190.0060.04212.40
5.4.180.0100.03912.39
5.4.170.0080.04012.41
5.4.160.0060.04712.40
5.4.150.0070.05312.40
5.4.140.0080.05612.09
5.4.130.0100.06112.07
5.4.120.0110.05112.02
5.4.110.0060.05412.02
5.4.100.0070.05012.02
5.4.90.0100.05012.02
5.4.80.0070.04212.03
5.4.70.0070.03812.03
5.4.60.0130.04512.02
5.4.50.0070.05212.02
5.4.40.0050.03612.01
5.4.30.0040.03812.01
5.4.20.0060.03612.00
5.4.10.0050.05312.00
5.4.00.0080.03411.50
5.3.290.0070.04012.80
5.3.280.0050.03912.71
5.3.270.0080.03812.72
5.3.260.0040.05912.72
5.3.250.0070.05612.72
5.3.240.0120.05012.72
5.3.230.0050.05512.71
5.3.220.0050.05712.68
5.3.210.0100.05112.68
5.3.200.0050.04412.68
5.3.190.0050.04812.68
5.3.180.0040.04312.67
5.3.170.0080.04112.66
5.3.160.0080.04512.67
5.3.150.0070.05012.67
5.3.140.0110.04112.66
5.3.130.0110.04112.66
5.3.120.0070.04712.66
5.3.110.0100.04112.66
5.3.100.0100.04112.13
5.3.90.0090.03512.12
5.3.80.0090.03712.11
5.3.70.0030.04012.11
5.3.60.0110.03512.09
5.3.50.0040.04912.05
5.3.40.0090.03612.05
5.3.30.0090.03512.00
5.3.20.0070.04211.78
5.3.10.0040.05611.74
5.3.00.0070.05411.74
5.2.170.0020.0349.23
5.2.160.0020.0379.22
5.2.150.0040.0419.23
5.2.140.0100.0409.23
5.2.130.0070.0429.19
5.2.120.0080.0399.18
5.2.110.0080.0379.19
5.2.100.0060.0349.18
5.2.90.0060.0379.19
5.2.80.0080.0279.18
5.2.70.0060.0299.18
5.2.60.0050.0449.14
5.2.50.0060.0439.10
5.2.40.0040.0419.08
5.2.30.0100.0379.05
5.2.20.0090.0369.05
5.2.10.0040.0348.95
5.2.00.0040.0438.81
5.1.60.0060.0278.09
5.1.50.0040.0298.09
5.1.40.0060.0258.07
5.1.30.0080.0278.42
5.1.20.0030.0348.44
5.1.10.0050.0278.17
5.1.00.0040.0288.17
5.0.50.0060.0216.64
5.0.40.0040.0256.50
5.0.30.0040.0396.32
5.0.20.0040.0246.28
5.0.10.0030.0216.26
5.0.00.0030.0346.25
4.4.90.0060.0164.78
4.4.80.0000.0214.75
4.4.70.0040.0184.76
4.4.60.0050.0214.75
4.4.50.0010.0244.77
4.4.40.0020.0344.71
4.4.30.0050.0194.76
4.4.20.0050.0204.85
4.4.10.0040.0214.85
4.4.00.0050.0294.76
4.3.110.0050.0204.67
4.3.100.0030.0204.67
4.3.90.0020.0214.64
4.3.80.0030.0304.59
4.3.70.0030.0214.63
4.3.60.0020.0214.63
4.3.50.0020.0224.63
4.3.40.0060.0284.54
4.3.30.0010.0223.30
4.3.20.0020.0213.27
4.3.10.0020.0213.23
4.3.00.0030.02016.12

preferences:
49.59 ms | 401 KiB | 5 Q