3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A implements \Serializable { public function serialize() { $dt = new \DateTime(); return serialize(array($dt, serialize([$dt]))); } public function unserialize($serialized) { $a = unserialize($serialized); unserialize($a[1]); } } $a = new A(); $s = serialize($a); $d = unserialize($s);

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.0170.00316.75
8.3.50.0240.01021.35
8.3.40.0150.00418.96
8.3.30.0060.00918.84
8.3.20.0080.00020.29
8.3.10.0080.00023.39
8.3.00.0040.00423.71
8.2.180.0200.00318.54
8.2.170.0140.00719.20
8.2.160.0110.00722.96
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00521.05
8.2.120.0030.00526.35
8.2.110.0050.00522.07
8.2.100.0080.00318.04
8.2.90.0050.00318.41
8.2.80.0030.00518.05
8.2.70.0060.00317.99
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0080.00022.32
8.2.30.0000.00720.64
8.2.20.0000.00717.89
8.2.10.0050.00318.25
8.2.00.0080.00018.14
8.1.280.0110.00425.92
8.1.270.0070.00720.38
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0060.00322.20
8.1.230.0000.01120.89
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00917.59
8.1.190.0030.00517.35
8.1.180.0040.00418.10
8.1.170.0060.00318.83
8.1.160.0000.00720.86
8.1.150.0080.00018.93
8.1.140.0000.00819.59
8.1.130.0030.00317.78
8.1.120.0000.00717.72
8.1.110.0040.00417.56
8.1.100.0000.00717.68
8.1.90.0050.00317.68
8.1.80.0050.00217.66
8.1.70.0050.00317.52
8.1.60.0030.00617.61
8.1.50.0050.00317.56
8.1.40.0000.00817.66
8.1.30.0030.00517.80
8.1.20.0040.00417.84
8.1.10.0000.00917.58
8.1.00.0050.00317.55
8.0.300.0040.00420.02
8.0.290.0000.00716.88
8.0.280.0030.00318.42
8.0.270.0040.00417.35
8.0.260.0060.00017.32
8.0.250.0040.00417.15
8.0.240.0040.00417.22
8.0.230.0050.00217.19
8.0.220.0000.00717.01
8.0.210.0040.00417.16
8.0.200.0080.00017.10
8.0.190.0000.01217.30
8.0.180.0040.00417.21
8.0.170.0000.00717.22
8.0.160.0040.00417.06
8.0.150.0000.00717.17
8.0.140.0030.00517.02
8.0.130.0030.00313.53
8.0.120.0040.00417.05
8.0.110.0040.00417.08
8.0.100.0070.00017.10
8.0.90.0030.00516.97
8.0.80.0070.00717.21
8.0.70.0040.00416.97
8.0.60.0050.00217.11
8.0.50.0040.00417.23
8.0.30.0110.00817.36
8.0.20.0100.00817.40
8.0.10.0020.00517.19
8.0.00.0110.01317.14
7.4.330.0000.00516.70
7.4.320.0040.00416.82
7.4.300.0060.00016.75
7.4.290.0040.00416.66
7.4.280.0080.00016.64
7.4.270.0030.00316.84
7.4.260.0040.00416.75
7.4.250.0080.00016.61
7.4.240.0020.00516.74
7.4.230.0030.00316.78
7.4.220.0080.00816.66
7.4.210.0080.00816.70
7.4.200.0040.00416.55
7.4.160.0030.01316.73
7.4.150.0090.00917.40
7.4.140.0150.00717.86
7.4.130.0100.00616.62
7.4.120.0050.01416.81
7.4.110.0090.00916.77
7.4.100.0110.00716.79
7.4.90.0140.00316.60
7.4.80.0140.00319.39
7.4.70.0100.00716.74
7.4.60.0040.01116.72
7.4.50.0070.00716.53
7.4.40.0080.00816.71
7.4.30.0030.01316.78
7.4.10.0040.01115.37
7.4.00.0060.01015.20
7.3.330.0060.00013.57
7.3.320.0050.00013.41
7.3.310.0000.00716.57
7.3.300.0000.00716.58
7.3.290.0060.00916.52
7.3.280.0090.01016.49
7.3.270.0100.00717.40
7.3.260.0170.00716.63
7.3.250.0060.01116.59
7.3.240.0120.00716.66
7.3.230.0040.01416.61
7.3.210.0160.00316.68
7.3.200.0100.01316.66
7.3.190.0070.01016.68
7.3.180.0090.00616.54
7.3.170.0100.00616.51
7.3.160.0170.00316.60
7.3.130.0100.00714.84
7.3.120.0100.00714.98
7.3.110.0100.00814.99
7.3.100.0090.00514.98
7.3.90.0090.00514.91
7.3.80.0070.00815.08
7.3.70.0040.00914.98
7.3.60.0070.00414.92
7.3.50.0060.00914.95
7.3.40.0070.00514.89
7.3.30.0030.01215.00
7.3.20.0090.00516.92
7.3.10.0040.00916.84
7.3.00.0080.00716.73
7.2.330.0060.01416.89
7.2.320.0120.00616.64
7.2.310.0080.00816.47
7.2.300.0130.01017.07
7.2.290.0090.01416.73
7.2.260.0070.01115.14
7.2.250.0080.01115.20
7.2.240.0090.00815.11
7.2.230.0070.00915.24
7.2.220.0050.00815.25
7.2.210.0040.01015.26
7.2.200.0100.00515.23
7.2.190.0050.00715.06
7.2.180.0070.00615.19
7.2.170.0070.00815.16
7.2.160.0060.00415.04
7.2.150.0050.01017.05
7.2.140.0060.00917.08
7.2.130.0040.01116.88
7.2.120.0050.00617.09
7.2.110.0060.00816.90
7.2.100.0050.00916.88
7.2.90.0060.01017.05
7.2.80.0070.00816.96
7.2.70.0050.01017.04
7.2.60.0060.00717.12
7.2.50.0070.00817.05
7.2.40.0070.00916.82
7.2.30.0090.00616.85
7.2.20.0090.00716.81
7.2.10.0080.00516.87
7.2.00.0050.00917.61
7.1.330.0030.01015.95
7.1.320.0070.00715.95
7.1.310.0050.00915.98
7.1.300.0040.00815.92
7.1.290.0060.00915.99
7.1.280.0020.01015.93
7.1.270.0050.01015.87
7.1.260.0050.00815.98
7.1.250.0050.00815.95
7.1.240.0000.01115.87
7.1.230.0100.00015.82
7.1.220.0070.00715.67
7.1.210.0000.01216.08
7.1.200.0050.00815.90
7.1.190.0080.00015.98
7.1.180.0060.00315.96
7.1.170.0000.01416.02
7.1.160.0000.00816.07
7.1.150.0080.00415.93
7.1.140.0030.01016.07
7.1.130.0100.00315.97
7.1.120.0070.00716.03
7.1.110.0090.00616.00
7.1.100.0090.01016.96
7.1.90.0000.01316.05
7.1.80.0080.00416.00
7.1.70.0030.00716.54
7.1.60.0050.01016.63
7.1.50.0090.00316.49
7.1.40.0050.00716.28
7.1.30.0070.00516.27
7.1.20.0050.00716.53
7.1.10.0070.00516.47
7.1.00.0050.00516.50
7.0.330.0040.00415.62
7.0.320.0030.00715.60
7.0.310.0000.00815.63
7.0.300.0070.00315.68
7.0.290.0070.00415.55
7.0.280.0030.01015.75
7.0.270.0110.00415.70
7.0.260.0000.01515.67
7.0.250.0070.01015.70
7.0.240.0000.01115.75
7.0.230.0060.00615.43
7.0.220.0050.00515.27
7.0.210.0090.00315.45
7.0.200.0080.00316.14
7.0.190.0040.00715.94
7.0.180.0060.00816.06
7.0.170.0000.01116.17
7.0.160.0030.00615.95
7.0.150.0030.01015.99
7.0.140.0070.00515.99
7.0.130.0050.00716.26
7.0.120.0020.01116.10
7.0.110.0050.01216.02
7.0.100.0030.00915.87
7.0.90.0060.00615.98
7.0.80.0040.00616.07
7.0.70.0050.00716.11
7.0.60.0040.00815.99
7.0.50.0000.00916.00
7.0.40.0020.00814.36
7.0.30.0040.00714.42
7.0.20.0020.00814.28
7.0.10.0030.00614.45
7.0.00.0040.00814.45
5.6.400.0040.01114.53
5.6.390.0030.01014.86
5.6.380.0030.01214.43
5.6.370.0040.00814.38
5.6.360.0150.00014.53
5.6.350.0100.00314.46
5.6.340.0070.00714.73
5.6.330.0070.00714.52
5.6.320.0040.01414.79
5.6.310.0120.00414.48
5.6.300.0060.03317.60
5.6.290.0070.02217.74
5.6.280.0080.02017.67
5.6.270.0030.02817.79
5.6.260.0060.03717.80
5.6.250.0010.03117.77
5.6.240.0020.04117.56
5.6.230.0060.02417.74
5.6.220.0000.03117.74
5.6.210.0050.02417.70
5.6.200.0100.02217.72
5.6.190.0030.03517.69
5.6.180.0050.02417.85
5.6.170.0030.02917.67
5.6.160.0040.02417.77
5.6.150.0080.02517.58
5.6.140.0070.02617.67
5.6.130.0060.02317.66
5.6.120.0030.03117.68
5.6.110.0060.02717.79
5.6.100.0060.04517.71
5.6.90.0050.03117.83
5.6.80.0090.03117.39
5.6.70.0040.03617.44
5.6.60.0030.02917.49
5.6.50.0020.02717.37
5.6.40.0060.01817.25
5.6.30.0030.02517.29
5.6.20.0070.02217.41
5.6.10.0040.02217.38
5.6.00.0050.02317.29
5.5.380.0030.05017.56
5.5.370.0070.04017.58
5.5.360.0030.04017.52
5.5.350.0070.05917.43
5.5.340.0030.04117.87
5.5.330.0370.03718.01
5.5.320.0030.04318.13
5.5.310.0000.04218.06
5.5.300.0070.03618.03
5.5.290.0000.04418.09
5.5.280.0070.04318.07
5.5.270.0030.03918.13
5.5.260.0030.04318.09
5.5.250.0030.04017.81
5.5.240.0030.03617.47
5.5.230.0030.04017.24
5.5.220.0030.03817.24
5.5.210.0030.03817.47
5.5.200.0000.04017.22
5.5.190.0090.03417.43
5.5.180.0060.03517.21
5.5.160.0000.04117.10
5.5.150.0000.04117.53
5.5.140.0030.04217.23
5.5.130.0030.04017.20
5.5.120.0000.04517.44
5.5.110.0000.04117.37
5.5.100.0060.03817.35
5.5.90.0030.03517.34
5.5.80.0060.05117.29
5.5.70.0030.03617.36
5.5.60.0060.05517.31
5.5.50.0060.04117.38
5.5.40.0030.05417.10
5.5.30.0070.03317.30
5.5.20.0030.03817.10
5.5.10.0030.03817.23
5.5.00.0000.04317.26

preferences:
50.01 ms | 401 KiB | 5 Q