3v4l.org

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

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.0070.00716.63
8.3.50.0120.01021.03
8.3.40.0140.00718.71
8.3.30.0140.00019.10
8.3.20.0070.00020.21
8.3.10.0040.00423.61
8.3.00.0040.00419.14
8.2.180.0190.00316.63
8.2.170.0150.00022.96
8.2.160.0030.01020.39
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00019.16
8.2.110.0110.00022.07
8.2.100.0130.00017.79
8.2.90.0040.00418.22
8.2.80.0000.00817.97
8.2.70.0030.00517.50
8.2.60.0000.00817.80
8.2.50.0030.00518.10
8.2.40.0000.00720.78
8.2.30.0040.00418.23
8.2.20.0030.00617.62
8.2.10.0000.00817.96
8.2.00.0000.00717.67
8.1.280.0110.00425.92
8.1.270.0080.00023.72
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.00823.84
8.1.230.0040.00822.66
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0080.00017.22
8.1.180.0050.00318.10
8.1.170.0080.00018.50
8.1.160.0000.00722.19
8.1.150.0000.00718.62
8.1.140.0050.00317.27
8.1.130.0040.00417.84
8.1.120.0030.00317.38
8.1.110.0050.00217.29
8.1.100.0000.00717.29
8.1.90.0050.00217.30
8.1.80.0000.00817.31
8.1.70.0000.00717.39
8.1.60.0020.00517.41
8.1.50.0040.00417.39
8.1.40.0070.00317.35
8.1.30.0040.00417.44
8.1.20.0000.00817.42
8.1.10.0000.00717.52
8.1.00.0030.00517.50
8.0.300.0040.00420.16
8.0.290.0040.00416.75
8.0.280.0030.00318.38
8.0.270.0030.00617.07
8.0.260.0060.00017.21
8.0.250.0000.00716.98
8.0.240.0060.00016.95
8.0.230.0040.00416.98
8.0.220.0000.00716.89
8.0.210.0050.00316.82
8.0.200.0060.00316.84
8.0.190.0040.00416.98
8.0.180.0050.00316.93
8.0.170.0000.00716.88
8.0.160.0080.00016.91
8.0.150.0070.00016.79
8.0.140.0070.00016.74
8.0.130.0000.00613.36
8.0.120.0050.00316.85
8.0.110.0000.00716.95
8.0.100.0040.00416.83
8.0.90.0050.00216.86
8.0.80.0070.01016.95
8.0.70.0000.00816.80
8.0.60.0000.00816.84
8.0.50.0070.00016.93
8.0.30.0080.01117.23
8.0.20.0150.00817.40
8.0.10.0050.00316.98
8.0.00.0110.00816.48
7.4.330.0000.00515.13
7.4.320.0000.00616.50
7.4.300.0000.00816.43
7.4.290.0030.00316.43
7.4.280.0070.00316.46
7.4.270.0030.00316.55
7.4.260.0030.00516.54
7.4.250.0050.00216.55
7.4.240.0020.00516.44
7.4.230.0000.00716.57
7.4.220.0090.00916.41
7.4.210.0110.00416.59
7.4.200.0030.00316.56
7.4.190.0070.00016.39
7.4.160.0030.01316.59
7.4.150.0070.01017.40
7.4.140.0160.00817.86
7.4.130.0070.01416.51
7.4.120.0120.00516.59
7.4.110.0130.00616.43
7.4.100.0160.00316.56
7.4.90.0040.01316.73
7.4.80.0090.00919.39
7.4.70.0030.01216.47
7.4.60.0100.01416.46
7.4.50.0000.00416.18
7.4.40.0180.00316.45
7.4.30.0080.01416.36
7.4.00.0000.01714.83
7.3.330.0000.00613.28
7.3.320.0000.00613.18
7.3.310.0040.00416.32
7.3.300.0040.00416.27
7.3.290.0120.00316.28
7.3.280.0140.00316.30
7.3.270.0060.01117.40
7.3.260.0070.01016.50
7.3.250.0120.00716.31
7.3.240.0000.01916.50
7.3.230.0100.00716.39
7.3.210.0090.00916.48
7.3.200.0040.02019.39
7.3.190.0030.01316.20
7.3.180.0100.00616.35
7.3.170.0060.01016.39
7.3.160.0060.01016.33
7.3.120.0030.00614.85
7.2.330.0090.00916.34
7.2.320.0130.00716.46
7.2.310.0110.00716.73
7.2.300.0100.01316.73
7.2.290.0000.02116.74
7.2.60.0000.01316.86
7.2.00.0030.01419.36
7.1.200.0000.01315.68
7.1.100.0030.01018.08
7.1.70.0040.00417.00
7.1.60.0130.01019.46
7.1.50.0110.00416.61
7.1.00.0070.07322.49
7.0.200.0000.00716.65
7.0.140.0000.07722.07
7.0.60.0130.06020.13
7.0.50.0130.06717.91
7.0.40.0130.08320.29
7.0.30.0370.06720.24
7.0.20.0300.07020.07
7.0.10.0170.07720.25
7.0.00.0000.06320.07
5.6.280.0030.07321.11
5.6.210.0100.07320.52
5.6.200.0100.08318.19
5.6.190.0170.04320.77
5.6.180.0070.05020.61
5.6.170.0230.05320.51
5.6.160.0100.05320.50
5.6.150.0070.06318.23
5.6.140.0100.07718.18
5.6.130.0130.08018.22
5.6.120.0030.07321.12
5.6.110.0000.04720.98
5.6.100.0170.07321.00
5.6.90.0170.07721.13
5.6.80.0100.03720.54
5.5.350.0030.06320.39
5.5.340.0070.03717.93
5.5.330.0030.06320.38
5.5.320.0300.06320.35
5.5.310.0200.04020.41
5.5.300.0030.07718.02
5.5.290.0000.04718.09
5.5.280.0130.08020.88
5.5.270.0000.04320.75
5.5.260.0070.08320.80
5.5.250.0130.07320.72
5.5.240.0030.07720.07
5.4.450.1970.03719.28
5.4.440.1970.04719.40
5.4.430.2030.04019.48
5.4.420.1800.03719.41
5.4.410.1830.03019.32
5.4.400.1900.04019.00
5.4.390.1970.04718.88
5.4.380.1900.03318.95
5.4.370.1900.04019.09
5.4.360.1670.04319.16
5.4.350.1800.04019.24
5.4.340.1870.03319.09
5.4.320.1870.03718.87
5.4.310.1800.03719.18
5.4.300.1770.03719.00
5.4.290.1700.03319.14
5.4.280.1770.04019.19
5.4.270.1770.04019.08
5.4.260.1870.03319.14
5.4.250.1800.03719.30
5.4.240.1800.03719.30
5.4.230.1870.03319.23
5.4.220.1870.04019.12
5.4.210.1730.04019.21
5.4.200.1770.03718.97
5.4.190.1800.04019.08
5.4.180.1630.04019.19
5.4.170.1870.03319.15
5.4.160.1670.03319.22
5.4.150.1770.03319.24
5.4.140.1900.02716.52
5.4.130.1900.03316.50
5.4.120.2070.03016.41
5.4.110.1800.03016.30
5.4.100.1700.03016.54
5.4.90.1600.03716.46
5.4.80.1900.03716.46
5.4.70.2100.04316.45
5.4.60.1770.03716.51
5.4.50.1830.03716.25
5.4.40.1870.03716.27
5.4.30.1800.03316.52
5.4.20.1770.03716.48
5.4.10.2000.04316.56
5.4.00.1430.03715.74
5.3.290.1930.04014.75
5.3.280.1970.03714.74
5.3.270.1830.03714.67
5.3.260.2070.03314.61
5.3.250.2070.03714.59
5.3.240.2070.04014.63
5.3.230.1800.04014.78
5.3.220.2070.04014.66
5.3.210.2000.04714.51
5.3.200.1870.03014.59
5.3.190.1930.03014.70
5.3.180.1970.04314.63
5.3.170.2070.03714.57
5.3.160.2000.03314.50
5.3.150.2030.04014.65
5.3.140.2270.04314.79
5.3.130.2030.04714.61
5.3.120.1800.04314.68
5.3.110.2000.04714.46
5.3.100.1770.04714.12
5.3.90.1930.04314.01
5.3.80.2100.04013.95
5.3.70.1930.04314.11
5.3.60.1800.03314.02
5.3.50.2000.05014.02
5.3.40.1830.03313.86
5.3.30.1800.03013.84
5.3.20.2000.04713.84
5.3.10.2200.03013.60
5.3.00.1800.03313.67
5.2.170.1830.03711.17
5.2.160.2100.03311.14
5.2.150.2070.02711.25
5.2.140.1670.03711.38
5.2.130.2030.02711.05
5.2.120.1730.03311.12
5.2.110.1570.03011.04
5.2.100.1370.03011.04
5.2.90.1670.02711.26
5.2.80.1570.03011.08
5.2.70.1800.03311.01
5.2.60.1600.03310.97
5.2.50.1700.03011.10
5.2.40.1370.02711.08
5.2.30.1400.02711.05
5.2.20.0770.02310.87
5.2.10.1500.02711.01
5.2.00.1300.02710.84
5.1.60.1400.0339.88
5.1.50.1300.0209.98
5.1.40.1230.02010.14
5.1.30.1170.02710.39
5.1.20.1230.02310.36
5.1.10.1230.02710.04
5.1.00.1200.0239.96
5.0.50.0630.0238.55
5.0.40.0600.0178.32
5.0.30.0630.0278.13
5.0.20.0670.0238.29
5.0.10.0530.0238.33
5.0.00.0570.0338.15
4.4.90.0570.0177.70
4.4.80.0600.0137.70
4.4.70.0600.0177.70
4.4.60.0600.0177.70
4.4.50.0600.0177.70
4.4.40.0570.0277.70
4.4.30.0700.0207.70
4.4.20.0600.0177.70
4.4.10.0700.0137.70
4.4.00.0630.0237.70
4.3.110.0600.0177.70
4.3.100.0600.0177.70
4.3.90.0570.0177.70
4.3.80.0600.0237.70
4.3.70.0600.0137.70
4.3.60.0600.0177.70
4.3.50.0600.0137.70
4.3.40.0600.0237.70
4.3.30.0330.0177.70
4.3.20.0370.0177.70
4.3.10.0330.0207.70
4.3.00.0330.0207.70

preferences:
48.05 ms | 401 KiB | 5 Q