3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myClass implements Serializable { public function serialize() { throw new Exception('Serialization of \'myClass\' is not allowed.'); } public function unserialize($serialized) { } } $myClass = new myClass; var_dump(serialize($myClass));

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.0120.00316.75
8.3.50.0190.00921.99
8.3.40.0150.00619.02
8.3.30.0040.01119.08
8.3.20.0040.00420.16
8.3.10.0040.00423.37
8.3.00.0040.00420.77
8.2.180.0150.00016.75
8.2.170.0110.00422.96
8.2.160.0100.00320.39
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00819.48
8.2.110.0110.00622.28
8.2.100.0070.00417.72
8.2.90.0040.00419.21
8.2.80.0030.00617.97
8.2.70.0030.00717.63
8.2.60.0030.00617.93
8.2.50.0060.00318.07
8.2.40.0060.00518.18
8.2.30.0000.00718.27
8.2.20.0050.00317.66
8.2.10.0040.00418.09
8.2.00.0000.00819.53
8.1.280.0070.00725.92
8.1.270.0080.00023.88
8.1.260.0030.00526.35
8.1.250.0000.00728.09
8.1.240.0060.00322.19
8.1.230.0070.00419.14
8.1.220.0000.00817.78
8.1.210.0000.00818.77
8.1.200.0070.00317.25
8.1.190.0030.00617.35
8.1.180.0030.00618.10
8.1.170.0030.00518.58
8.1.160.0000.00821.95
8.1.150.0000.00818.63
8.1.140.0050.00217.38
8.1.130.0030.00317.70
8.1.120.0000.00717.43
8.1.110.0040.00417.48
8.1.100.0050.00217.43
8.1.90.0040.00417.34
8.1.80.0080.00017.47
8.1.70.0030.00517.28
8.1.60.0030.00617.61
8.1.50.0030.00517.59
8.1.40.0000.00817.50
8.1.30.0040.00417.55
8.1.20.0040.00417.59
8.1.10.0000.00717.55
8.1.00.0040.00417.41
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.52
8.0.270.0030.00317.13
8.0.260.0030.00317.18
8.0.250.0030.00317.11
8.0.240.0030.00617.00
8.0.230.0030.00317.11
8.0.220.0030.00316.83
8.0.210.0040.00416.88
8.0.200.0000.00716.90
8.0.190.0030.00316.90
8.0.180.0040.00417.02
8.0.170.0040.00417.04
8.0.160.0040.00417.01
8.0.150.0030.00516.79
8.0.140.0030.00616.83
8.0.130.0050.00013.37
8.0.120.0080.00016.87
8.0.110.0050.00316.98
8.0.100.0050.00316.81
8.0.90.0070.00016.82
8.0.80.0090.00616.89
8.0.70.0030.00517.01
8.0.60.0000.00716.81
8.0.50.0040.00416.91
8.0.30.0150.00617.05
8.0.20.0070.01217.40
8.0.10.0030.00516.96
8.0.00.0080.01016.91
7.4.330.0030.00315.00
7.4.320.0060.00016.55
7.4.300.0060.00016.46
7.4.290.0030.00316.42
7.4.280.0000.00716.53
7.4.270.0000.00716.62
7.4.260.0030.00316.55
7.4.250.0040.00416.39
7.4.240.0020.00616.59
7.4.230.0000.00716.52
7.4.220.0070.01116.67
7.4.210.0070.00716.63
7.4.200.0040.00416.59
7.4.160.0030.01216.57
7.4.150.0100.00717.40
7.4.140.0080.01017.86
7.4.130.0060.01016.61
7.4.120.0070.00916.56
7.4.110.0070.01016.61
7.4.100.0070.01016.61
7.4.90.0030.01616.59
7.4.80.0090.01519.39
7.4.70.0130.01016.57
7.4.60.0070.00916.44
7.4.50.0040.00016.50
7.4.40.0090.00816.55
7.4.30.0120.00316.46
7.4.00.0090.00614.93
7.3.330.0060.00013.28
7.3.320.0030.00313.22
7.3.310.0000.00616.20
7.3.300.0000.00716.34
7.3.290.0170.00016.35
7.3.280.0090.01016.35
7.3.270.0100.00717.40
7.3.260.0070.01116.42
7.3.250.0080.01016.37
7.3.240.0070.01016.54
7.3.230.0060.01616.39
7.3.210.0040.01616.57
7.3.200.0080.01419.39
7.3.190.0170.00416.41
7.3.180.0160.00016.23
7.3.170.0120.00916.37
7.3.160.0060.01016.52
7.3.120.0130.00314.71
7.3.110.0060.00814.82
7.3.100.0040.01114.72
7.3.90.0020.01014.63
7.3.80.0060.00814.87
7.3.70.0080.00814.81
7.3.60.0050.01014.90
7.3.50.0030.00914.76
7.3.40.0050.00914.77
7.3.30.0040.00714.60
7.3.20.0010.01216.63
7.3.10.0030.01116.59
7.3.00.0080.00716.62
7.2.330.0080.00816.71
7.2.320.0080.00816.78
7.2.310.0060.01116.73
7.2.300.0030.01416.29
7.2.290.0100.00716.63
7.2.250.0080.01115.07
7.2.240.0060.01215.23
7.2.230.0070.00714.97
7.2.220.0080.00414.98
7.2.210.0030.01015.05
7.2.200.0080.00514.78
7.2.190.0080.00714.99
7.2.180.0070.00914.98
7.2.170.0050.00915.00
7.2.160.0000.01414.74
7.2.150.0040.01116.66
7.2.140.0120.00316.75
7.2.130.0120.00316.99
7.2.120.0060.01016.95
7.2.110.0100.00316.88
7.2.100.0090.00616.52
7.2.90.0030.01016.89
7.2.80.0130.00016.83
7.2.70.0030.01516.66
7.2.60.0060.00516.68
7.2.50.0000.01516.85
7.2.40.0100.00716.62
7.2.30.0030.01016.77
7.2.20.0060.00916.65
7.2.10.0090.00416.86
7.2.00.0030.01017.94
7.1.330.0030.01315.66
7.1.320.0020.00915.84
7.1.310.0060.00815.64
7.1.300.0100.00415.64
7.1.290.0040.00915.77
7.1.280.0060.00815.71
7.1.270.0070.00715.74
7.1.260.0070.00815.80
7.1.250.0130.00315.86
7.1.200.0090.00315.45
7.1.100.0030.00918.33
7.1.70.0000.00717.16
7.1.60.0080.00419.70
7.1.50.0070.01616.75
7.1.00.0000.07722.35
7.0.200.0030.00916.32
7.0.140.0100.06322.04
7.0.60.0070.04020.00
7.0.50.0070.04017.98
7.0.40.0030.06020.30
7.0.30.0500.05020.09
7.0.20.0170.04720.12
7.0.10.0170.06720.10
7.0.00.0100.08320.22
5.6.210.0130.06720.53
5.6.200.0170.05718.29
5.6.190.0100.03720.33
5.6.180.3700.04320.55
5.6.170.0330.07720.54
5.6.160.0000.07020.46
5.6.150.0070.03718.18
5.6.140.0070.08318.15
5.6.130.0100.08018.29
5.6.120.0070.08021.10
5.6.110.0130.08720.98
5.6.100.0000.09021.04
5.6.90.0100.04321.07
5.6.80.0100.06320.39
5.6.70.3330.02720.53
5.5.350.0030.05320.41
5.5.340.0000.04317.91
5.5.330.0030.08320.53
5.5.320.0200.07020.51
5.5.310.0400.05020.18
5.5.300.0100.07017.97
5.5.290.0070.08018.08
5.5.280.0070.08720.96
5.5.270.0070.06320.77
5.5.260.0130.08320.76
5.5.250.0200.07320.57
5.5.240.0330.05320.16
5.4.450.1770.04719.54
5.4.440.0630.03719.40
5.4.430.0070.03719.19
5.4.420.0070.04019.53
5.4.410.0430.07019.41
5.4.400.2000.04719.31
5.4.390.1770.03719.16
5.4.380.1230.04319.22
5.4.370.0070.03319.20
5.4.360.0100.07019.12
5.4.350.1230.05719.26
5.4.340.1700.04319.16
5.4.320.1970.04719.13
5.4.310.1830.03019.09
5.4.300.2070.04318.87
5.4.290.2100.04018.89
5.4.280.2000.04718.87
5.4.270.2070.04318.95
5.4.260.1770.03319.16
5.4.250.1870.04319.14
5.4.240.1930.04719.19
5.4.230.2030.04019.07
5.4.220.1900.03719.30
5.4.210.2030.03719.23
5.4.200.2030.04319.09
5.4.190.2070.04019.08
5.4.180.2000.04719.13
5.4.170.1700.04318.98
5.4.160.1730.04018.82
5.4.150.2070.03319.14
5.4.140.1730.04016.46
5.4.130.1930.04316.50
5.4.120.0100.07016.68
5.4.110.0030.05016.55
5.4.100.0970.05016.36
5.4.90.1930.03716.46
5.4.80.2000.03716.20
5.4.70.1900.04716.23
5.4.60.2000.05016.26
5.4.50.1770.03716.34
5.4.40.2000.03316.50
5.4.30.1800.03716.50
5.4.20.2070.04316.32
5.4.10.1870.03716.51
5.4.00.1930.03015.95
5.3.290.0030.03714.75
5.3.280.0000.04014.57
5.3.270.0800.03714.54
5.3.260.1830.03714.60
5.3.250.1700.03714.69
5.3.240.1830.03014.75
5.3.230.1770.03714.61
5.3.220.1730.03714.65
5.3.210.1770.03314.54
5.3.200.1770.04014.69
5.3.190.1770.03314.72
5.3.180.1830.02714.54
5.3.170.1900.04314.62
5.3.160.1730.04014.47
5.3.150.1770.03314.57
5.3.140.2030.03314.56
5.3.130.2000.04314.63
5.3.120.1770.04314.49
5.3.110.1770.03314.52
5.3.100.1800.03014.02
5.3.90.2070.03714.02
5.3.80.1900.03713.93
5.3.70.1930.04013.93
5.3.60.1830.03713.92
5.3.50.1630.04013.88
5.3.40.1530.03713.96
5.3.30.1470.03013.79
5.3.20.1700.03313.78
5.3.10.1470.03313.79
5.3.00.1630.03713.66
5.2.170.1230.02311.06
5.2.160.1400.02011.08
5.2.150.1330.03011.23
5.2.140.1470.02711.20
5.2.130.1270.02311.04
5.2.120.1400.03311.04
5.2.110.1530.02311.20
5.2.100.1430.03011.21
5.2.90.1630.01311.19
5.2.80.1500.02311.01
5.2.70.1170.02311.05
5.2.60.0000.03010.96
5.2.50.0000.03010.93
5.2.40.0030.03711.05
5.2.30.0870.03311.05
5.2.20.1100.03010.96
5.2.10.1070.02711.01
5.2.00.1170.03710.86
5.1.60.1200.0279.90
5.1.50.1430.0309.98
5.1.40.1000.03310.13
5.1.30.1100.02710.26
5.1.20.1230.03310.49
5.1.10.0900.0309.98
5.1.00.1430.0309.98
5.0.50.0430.0178.54
5.0.40.0600.0208.30
5.0.30.0530.0308.15
5.0.20.0500.0208.10
5.0.10.0700.0238.11
5.0.00.0600.0308.14
4.4.90.0600.0177.99
4.4.80.0430.0177.99
4.4.70.0570.0207.99
4.4.60.0600.0177.99
4.4.50.0630.0137.99
4.4.40.0570.0277.99
4.4.30.0570.0177.99
4.4.20.0600.0137.99
4.4.10.0630.0277.99
4.4.00.0670.0377.99
4.3.110.0570.0177.99
4.3.100.0530.0177.99
4.3.90.0600.0277.99
4.3.80.0670.0237.99
4.3.70.0530.0177.99
4.3.60.0700.0237.99
4.3.50.0770.0277.99
4.3.40.0570.0307.99
4.3.30.0370.0337.99
4.3.20.0370.0237.99
4.3.10.0300.0207.99
4.3.00.0330.0307.99

preferences:
40.18 ms | 400 KiB | 5 Q