3v4l.org

run code in 300+ PHP versions simultaneously
<?php class niet { protected $one; protected $two; protected $three; protected $four; public function __construct() { $this->one = "1"; $this->two = "2"; $this->three = "3"; $this->four = "4"; } public function getData() { return [$this->one, $this->two, $this->three, $this->four]; } } class wel extends niet implements Serializable { public function serialize() { return serialize($this->getData()); } public function unserialize($data) { list($this->one, $this->two, $this->three, $this->four) = unserialize($data); } } $niet = new niet; $niet = serialize($niet); $wel = new wel; $wel = serialize($wel); var_dump($niet, $wel); $niet = unserialize($niet); $wel = unserialize($wel); var_dump($niet->getData(), $wel->getData()); ?>

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.0140.01016.63
8.3.50.0070.00821.15
8.3.40.0130.00318.83
8.3.30.0150.00019.01
8.3.20.0040.00420.30
8.3.10.0040.00422.04
8.3.00.0080.00022.20
8.2.180.0120.00916.63
8.2.170.0000.01422.96
8.2.160.0100.00319.24
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0060.01026.16
8.2.120.0030.00520.94
8.2.110.0130.00622.26
8.2.100.0120.00417.78
8.2.90.0040.00419.35
8.2.80.0040.00417.97
8.2.70.0050.00517.63
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0000.00818.09
8.2.30.0000.00818.04
8.2.20.0000.00717.81
8.2.10.0040.00417.70
8.2.00.0000.00717.84
8.1.280.0090.00925.92
8.1.270.0000.01522.13
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0080.00023.87
8.1.230.0110.00019.00
8.1.220.0000.00817.80
8.1.210.0030.00718.77
8.1.200.0080.00017.36
8.1.190.0060.00317.54
8.1.180.0000.00818.86
8.1.170.0030.00518.60
8.1.160.0000.00722.29
8.1.150.0050.00218.69
8.1.140.0090.00017.36
8.1.130.0040.00417.89
8.1.120.0000.00717.53
8.1.110.0030.00517.38
8.1.100.0000.00717.35
8.1.90.0040.00417.39
8.1.80.0040.00417.46
8.1.70.0040.00417.52
8.1.60.0000.00917.50
8.1.50.0000.00817.46
8.1.40.0000.00817.57
8.1.30.0000.00817.66
8.1.20.0000.00817.60
8.1.10.0040.00417.68
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0070.00017.16
8.0.280.0000.00718.42
8.0.270.0040.00417.21
8.0.260.0000.00716.84
8.0.250.0030.00317.06
8.0.240.0040.00417.06
8.0.230.0030.00317.01
8.0.220.0000.00816.88
8.0.210.0040.00416.98
8.0.200.0000.00617.04
8.0.190.0000.00917.10
8.0.180.0000.00816.99
8.0.170.0030.00517.06
8.0.160.0040.00416.95
8.0.150.0000.00716.95
8.0.140.0040.00416.99
8.0.130.0000.00513.39
8.0.120.0050.00316.88
8.0.110.0050.00316.86
8.0.100.0030.00516.93
8.0.90.0040.00417.06
8.0.80.0090.00616.96
8.0.70.0040.00417.11
8.0.60.0050.00217.07
8.0.50.0000.00716.97
8.0.30.0100.01317.28
8.0.20.0100.00917.46
8.0.10.0070.00017.00
8.0.00.0150.00616.82
7.4.330.0000.00515.01
7.4.320.0030.00616.52
7.4.300.0000.00616.63
7.4.290.0070.00016.59
7.4.280.0000.00816.58
7.4.270.0000.00716.54
7.4.260.0050.00216.63
7.4.250.0000.00716.51
7.4.240.0020.00516.57
7.4.230.0030.00316.64
7.4.220.0030.01616.66
7.4.210.0110.00616.61
7.4.200.0000.00716.75
7.4.190.0000.00716.50
7.4.160.0080.01116.90
7.4.150.0140.00317.40
7.4.140.0090.01017.86
7.4.130.0130.00716.64
7.4.120.0100.00716.65
7.4.110.0110.00716.50
7.4.100.0070.01116.81
7.4.90.0110.00816.44
7.4.80.0120.00919.39
7.4.70.0110.00616.45
7.4.60.0070.01416.63
7.4.50.0060.00316.37
7.4.40.0070.01022.77
7.4.30.0060.01116.47
7.4.00.0000.01314.78
7.3.330.0000.00613.49
7.3.320.0000.00613.35
7.3.310.0070.00016.38
7.3.300.0000.00716.47
7.3.290.0040.01116.34
7.3.280.0110.00616.42
7.3.270.0120.00617.40
7.3.260.0140.00316.50
7.3.250.0110.01116.53
7.3.240.0070.01116.35
7.3.230.0130.00316.46
7.3.210.0150.00416.50
7.3.200.0140.00319.39
7.3.190.0050.01116.55
7.3.180.0110.00716.52
7.3.170.0080.01116.30
7.3.160.0100.01016.35
7.3.120.0100.00714.75
7.3.10.0070.00716.37
7.3.00.0040.01116.63
7.2.330.0110.00716.85
7.2.320.0070.01016.39
7.2.310.0170.00016.64
7.2.300.0030.01316.75
7.2.290.0070.01016.69
7.2.130.0030.01316.71
7.2.120.0030.00917.05
7.2.110.0070.00716.98
7.2.100.0040.00716.85
7.2.90.0110.00317.08
7.2.80.0050.00616.94
7.2.70.0040.00417.02
7.2.60.0110.00416.82
7.2.50.0000.01216.96
7.2.40.0070.00717.05
7.2.30.0100.00316.89
7.2.20.0070.00716.99
7.2.10.0030.00716.86
7.2.00.0060.01018.20
7.1.250.0030.00615.55
7.1.100.0070.00417.92
7.1.70.0000.00917.14
7.1.60.0100.01619.82
7.1.50.0190.00617.01
7.1.00.0000.08022.45
7.0.200.0000.01116.74
7.0.140.0070.07322.08
7.0.60.0070.08319.95
7.0.50.0100.03317.91
7.0.40.0030.08320.23
7.0.30.0270.08020.23
7.0.20.0330.05320.25
7.0.10.0300.07720.28
7.0.00.0100.08020.33
5.6.280.0000.07721.05
5.6.210.0100.07720.64
5.6.200.0070.06018.16
5.6.190.0030.08720.55
5.6.180.3470.03320.55
5.6.170.0130.04320.51
5.6.160.0000.06720.52
5.6.150.0130.03318.18
5.6.140.0070.04718.33
5.6.130.0200.03718.14
5.6.120.0130.04721.02
5.6.110.0130.07321.00
5.6.100.0100.08021.14
5.6.90.0130.08020.93
5.6.80.0030.03720.42
5.6.70.0330.06720.51
5.5.350.0130.03320.33
5.5.340.0030.04317.99
5.5.330.0130.03320.33
5.5.320.0200.05320.18
5.5.310.0100.05020.37
5.5.300.0030.04317.98
5.5.290.0030.04017.93
5.5.280.0070.03720.91
5.5.270.0130.03720.66
5.5.260.0030.04320.99
5.5.250.0070.08020.63
5.5.240.0070.05320.20
5.4.450.0970.05319.55
5.4.440.0700.06319.47
5.4.430.0600.07019.44
5.4.420.0630.06319.60
5.4.410.0670.05719.59
5.4.400.1070.06018.86
5.4.390.1130.05718.79
5.4.380.0170.05718.75
5.4.370.0130.05018.78
5.4.360.0130.05018.71
5.4.350.0100.05718.79
5.4.340.0170.04718.45
5.4.320.0080.05212.51
5.4.310.0060.03912.50
5.4.300.0050.03812.50
5.4.290.0080.03912.50
5.4.280.0070.03812.41
5.4.270.0070.03512.40
5.4.260.0100.07318.84
5.4.250.0070.08019.00
5.4.240.0200.06718.96
5.4.230.0170.04718.91
5.4.220.0100.07318.94
5.4.210.0070.05718.89
5.4.200.0070.05718.76
5.4.190.0130.07318.79
5.4.180.0200.05719.02
5.4.170.0200.07018.94
5.4.160.0130.05318.75
5.4.150.0200.06718.79
5.4.140.0100.06716.27
5.4.130.0070.05316.27
5.4.120.0100.06016.43
5.4.110.0000.05716.52
5.4.100.0170.04716.43
5.4.90.0130.05716.48
5.4.80.0100.06316.37
5.4.70.0170.05316.54
5.4.60.0100.07016.48
5.4.50.0070.06016.38
5.4.40.0100.06316.44
5.4.30.0170.04716.46
5.4.20.0100.05016.54
5.4.10.0170.04716.52
5.4.00.0100.06715.75
5.3.290.0040.04512.80
5.3.280.0200.06014.66
5.3.270.0130.06014.75
5.3.260.0100.05714.83
5.3.250.0030.05714.79
5.3.240.0000.06014.60
5.3.230.0170.05014.74
5.3.220.0030.05714.66
5.3.210.0100.05314.58
5.3.200.0070.05014.65
5.3.190.0070.05714.56
5.3.180.0070.05314.63
5.3.170.0070.05014.59
5.3.160.0100.05014.66
5.3.150.0070.05314.65
5.3.140.0100.06714.66
5.3.130.0200.06714.52
5.3.120.0200.06314.55
5.3.110.0030.07714.64
5.3.100.0030.05314.17
5.3.90.0030.07014.24
5.3.80.0070.05014.09
5.3.70.0030.07314.11
5.3.60.0100.04714.23
5.3.50.0170.04013.92
5.3.40.0100.06014.02
5.3.30.0100.05013.90
5.3.20.0070.05313.79
5.3.10.0070.05313.81
5.3.00.0030.06013.84
5.2.170.0100.05711.11
5.2.160.0100.03711.36
5.2.150.0130.04011.23
5.2.140.0070.04311.13
5.2.130.0070.04011.16
5.2.120.0100.04311.10
5.2.110.0130.04711.11
5.2.100.0030.04311.09
5.2.90.0070.04011.19
5.2.80.0070.04011.16
5.2.70.0030.04311.17
5.2.60.0030.04310.89
5.2.50.0100.05311.10
5.2.40.0030.04011.06
5.2.30.0100.03710.99
5.2.20.0100.04011.12
5.2.10.0130.03010.69
5.2.00.0100.03310.79
5.1.60.0070.04310.07
5.1.50.0030.04010.07
5.1.40.0030.05010.07
5.1.30.0030.04010.43
5.1.20.0030.03710.34
5.1.10.0130.03710.27
5.1.00.0030.04710.07
5.0.50.0070.02710.07
5.0.40.0070.03710.07
5.0.30.0000.04710.07
5.0.20.0070.02310.07
5.0.10.0000.03710.07
5.0.00.0030.04010.07
4.4.90.0070.02710.07
4.4.80.0000.03010.07
4.4.70.0100.01710.07
4.4.60.0000.02710.07
4.4.50.0000.02310.07
4.4.40.0070.03310.07
4.4.30.0000.03010.07
4.4.20.0070.02710.07
4.4.10.0000.03310.07
4.4.00.0000.03710.07
4.3.110.0070.02310.07
4.3.100.0000.02310.07
4.3.90.0070.02310.07
4.3.80.0070.03710.07
4.3.70.0070.02010.07
4.3.60.0030.02310.07
4.3.50.0000.02710.07
4.3.40.0030.03710.07
4.3.30.0000.02310.07
4.3.20.0030.02010.07
4.3.10.0030.02010.07
4.3.00.0130.0406.81

preferences:
43.29 ms | 401 KiB | 5 Q