3v4l.org

run code in 300+ PHP versions simultaneously
<?php class niet { public $one; public $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.4.10.0120.00619.56
8.3.140.0080.00019.28
8.3.130.0000.00818.54
8.3.120.0000.00818.74
8.3.110.0190.00016.53
8.3.100.0130.00724.06
8.3.90.0060.00326.77
8.3.80.0050.00518.43
8.3.70.0080.00818.39
8.3.60.0120.00918.56
8.3.50.0100.00622.03
8.3.40.0110.01118.93
8.3.30.0140.00719.13
8.3.20.0000.00720.18
8.3.10.0090.00022.09
8.3.00.0000.00822.51
8.2.250.0080.01116.63
8.2.240.0060.00317.18
8.2.230.0130.00620.94
8.2.220.0110.01137.54
8.2.210.0000.00826.77
8.2.200.0060.00318.66
8.2.190.0150.00616.58
8.2.180.0190.00316.75
8.2.170.0070.00722.96
8.2.160.0070.01019.20
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00819.25
8.2.110.0060.00320.92
8.2.100.0080.00418.16
8.2.90.0030.00819.02
8.2.80.0060.00318.16
8.2.70.0000.00917.75
8.2.60.0040.00417.50
8.2.50.0030.00617.63
8.2.40.0050.00318.28
8.2.30.0030.00618.08
8.2.20.0060.00317.70
8.2.10.0040.00417.79
8.2.00.0060.00317.72
8.1.300.0130.00718.57
8.1.290.0070.00330.84
8.1.280.0070.01425.92
8.1.270.0050.00322.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00923.85
8.1.230.0070.00318.99
8.1.220.0080.00017.76
8.1.210.0080.00018.77
8.1.200.0080.00317.36
8.1.190.0080.00017.58
8.1.180.0040.00718.10
8.1.170.0040.00418.64
8.1.160.0060.00321.96
8.1.150.0040.00418.68
8.1.140.0030.00617.39
8.1.130.0030.00317.73
8.1.120.0000.00717.60
8.1.110.0040.00417.44
8.1.100.0070.00017.54
8.1.90.0070.00017.45
8.1.80.0030.00517.50
8.1.70.0070.00017.37
8.1.60.0030.00617.59
8.1.50.0020.00517.61
8.1.40.0070.00017.57
8.1.30.0050.00317.66
8.1.20.0030.00517.77
8.1.10.0000.00917.52
8.1.00.0040.00417.54
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.43
8.0.270.0000.00717.30
8.0.260.0040.00416.80
8.0.250.0000.00717.06
8.0.240.0040.00416.96
8.0.230.0050.00516.95
8.0.220.0000.00916.90
8.0.210.0030.00316.98
8.0.200.0000.00717.04
8.0.190.0040.00417.03
8.0.180.0030.00517.00
8.0.170.0060.00316.90
8.0.160.0000.00816.98
8.0.150.0030.00517.06
8.0.140.0000.00716.89
8.0.130.0030.00313.37
8.0.120.0040.00416.91
8.0.110.0040.00416.87
8.0.100.0040.00417.05
8.0.90.0080.00016.94
8.0.80.0090.00916.98
8.0.70.0040.00416.93
8.0.60.0070.00016.90
8.0.50.0080.00017.00
8.0.30.0100.01017.33
8.0.20.0130.00717.40
8.0.10.0000.00817.13
8.0.00.0140.00516.86
7.4.330.0000.00515.10
7.4.320.0060.00016.69
7.4.300.0030.00516.63
7.4.290.0000.00816.68
7.4.280.0000.00716.62
7.4.270.0030.00316.61
7.4.260.0080.00316.61
7.4.250.0060.00316.59
7.4.240.0040.00416.58
7.4.230.0000.00716.74
7.4.220.0190.00916.56
7.4.210.0110.00516.58
7.4.200.0000.00816.34
7.4.190.0000.00716.61
7.4.160.0120.00916.54
7.4.150.0030.01417.40
7.4.140.0080.01117.86
7.4.130.0110.00816.49
7.4.120.0100.00916.49
7.4.110.0130.00316.61
7.4.100.0100.00716.64
7.4.90.0150.00316.59
7.4.80.0030.01319.39
7.4.70.0090.00916.70
7.4.60.0160.00316.67
7.4.50.0080.00016.34
7.4.40.0090.00022.77
7.4.30.0100.00616.33
7.4.00.0060.00915.07
7.3.330.0000.00513.42
7.3.320.0000.00513.39
7.3.310.0000.00716.29
7.3.300.0060.00016.46
7.3.290.0060.00916.44
7.3.280.0100.00516.45
7.3.270.0150.00917.40
7.3.260.0130.01016.69
7.3.250.0070.01016.58
7.3.240.0130.00716.57
7.3.230.0170.00316.39
7.3.210.0150.00316.44
7.3.200.0130.00919.39
7.3.190.0150.00316.70
7.3.180.0130.00316.39
7.3.170.0070.01016.55
7.3.160.0070.01016.38
7.3.120.0080.00814.73
7.3.10.0070.00716.66
7.3.00.0040.00816.66
7.2.330.0060.01216.78
7.2.320.0090.00916.73
7.2.310.0090.00916.87
7.2.300.0070.01016.50
7.2.290.0120.00616.73
7.2.130.0150.00016.84
7.2.120.0030.00616.84
7.2.110.0030.00717.02
7.2.100.0060.00316.61
7.2.90.0040.00916.91
7.2.80.0070.00616.63
7.2.70.0030.00816.83
7.2.60.0070.00716.90
7.2.50.0070.00716.99
7.2.40.0040.00717.02
7.2.30.0090.00616.91
7.2.20.0110.00016.68
7.2.10.0030.00816.90
7.2.00.0000.01116.91
7.1.250.0030.01015.54
7.1.200.0030.00915.86
7.1.70.0080.00317.32
7.1.60.0180.00719.82
7.1.50.0150.00816.72
7.1.00.0030.07722.36
7.0.200.0000.00916.73
7.0.140.0100.07022.08
7.0.60.0100.08721.83
7.0.50.0100.06317.89
7.0.40.0000.04720.24
7.0.30.0330.08020.25
7.0.20.0330.07020.25
7.0.10.0370.06720.22
7.0.00.0070.06320.23
5.6.280.0030.07320.90
5.6.210.0100.07720.48
5.6.200.0100.03318.24
5.6.190.0070.08720.68
5.6.180.3530.04720.55
5.6.170.0430.07020.57
5.6.160.0100.04020.50
5.6.150.0170.07018.22
5.6.140.0070.04018.27
5.6.130.0130.07718.27
5.6.120.0070.06720.99
5.6.110.0000.05721.15
5.6.100.0070.07021.00
5.6.90.0100.08020.98
5.6.80.0100.06320.49
5.5.350.0100.07020.41
5.5.340.0030.06317.95
5.5.330.0170.08020.31
5.5.320.0270.07320.24
5.5.310.0370.07320.45
5.5.300.0070.04018.08
5.5.290.0070.03717.93
5.5.280.0030.04020.79
5.5.270.0130.04020.90
5.5.260.0070.07320.98
5.5.250.0030.08020.63
5.5.240.0070.03720.05
5.4.450.1730.04319.17
5.4.440.1900.03019.20
5.4.430.1800.03319.40
5.4.420.1930.04019.28
5.4.410.2030.03019.29
5.4.400.2230.04318.86
5.4.390.1800.04719.13
5.4.380.2300.03018.89
5.4.370.1900.03719.16
5.4.360.2170.04319.15
5.4.350.1930.03719.17
5.4.340.1900.04019.09
5.4.320.2100.04319.15
5.4.310.2070.04019.16
5.4.300.2170.04318.87
5.4.290.2270.03719.33
5.4.280.2170.04318.95
5.4.270.1970.03319.20
5.4.260.1930.03719.23
5.4.250.2130.04318.86
5.4.240.2000.03019.13
5.4.230.1030.03718.94
5.4.220.0100.06718.93
5.4.210.0000.04319.16
5.4.200.1370.05319.21
5.4.190.2100.04019.20
5.4.180.1970.03318.99
5.4.170.2170.04319.30
5.4.160.2430.03318.81
5.4.150.1930.04019.14
5.4.140.2230.03316.40
5.4.130.1500.04316.31
5.4.120.0030.03716.30
5.4.110.0070.07016.36
5.4.100.1400.04016.27
5.4.90.1900.03716.26
5.4.80.2170.03716.44
5.4.70.2100.03316.50
5.4.60.2270.03716.54
5.4.50.2330.04316.38
5.4.40.2030.03316.33
5.4.30.2200.03316.47
5.4.20.1970.04016.55
5.4.10.2370.04016.26
5.4.00.2300.04315.79
5.3.290.2170.04714.59
5.3.280.1630.04014.68
5.3.270.2370.04014.60
5.3.260.2000.04014.70
5.3.250.2130.04314.52
5.3.240.2030.03714.51
5.3.230.2070.04714.56
5.3.220.2030.03014.59
5.3.210.2070.04014.79
5.3.200.1900.04014.57
5.3.190.2400.04014.57
5.3.180.2470.03014.49
5.3.170.2130.03714.73
5.3.160.2370.04714.54
5.3.150.1930.03714.57
5.3.140.2170.03314.61
5.3.130.2070.03714.48
5.3.120.2230.03714.70
5.3.110.2230.04314.60
5.3.100.2300.03714.02
5.3.90.2230.04714.25
5.3.80.2230.03313.95
5.3.70.2030.04013.93
5.3.60.1900.03714.17
5.3.50.2130.04314.04
5.3.40.2100.03713.97
5.3.30.2170.04013.82
5.3.20.2300.04013.60
5.3.10.2200.04013.74
5.3.00.2300.03713.71
5.2.170.0170.05011.25
5.2.160.0130.03011.08
5.2.150.0200.06011.05
5.2.140.0170.02711.27
5.2.130.0170.05311.18
5.2.120.0130.04011.25
5.2.110.0130.03711.02
5.2.100.0130.03011.04
5.2.90.0200.05011.23
5.2.80.0070.03311.02
5.2.70.0130.06011.11
5.2.60.0170.03710.98
5.2.50.0100.03311.02
5.2.40.0030.03311.00
5.2.30.0170.03710.95
5.2.20.0130.03310.97
5.2.10.0130.04310.84
5.2.00.0170.05010.87
5.1.60.0170.02310.13
5.1.50.0170.05010.08
5.1.40.0130.03310.03
5.1.30.0130.03010.41
5.1.20.0130.03010.47
5.1.10.0130.03710.13
5.1.00.0100.03310.05
5.0.50.0070.0438.53
5.0.40.0100.0378.57
5.0.30.0130.0538.25
5.0.20.0070.0308.14
5.0.10.0100.0238.14
5.0.00.0100.0408.16
4.4.90.0030.0208.14
4.4.80.0030.0178.14
4.4.70.0070.0208.14
4.4.60.0070.0138.14
4.4.50.0030.0138.14
4.4.40.0070.0278.14
4.4.30.0030.0208.14
4.4.20.0070.0178.14
4.4.10.0070.0178.14
4.4.00.0070.0578.14
4.3.110.0130.0178.14
4.3.100.0100.0238.14
4.3.90.0070.0338.14
4.3.80.0100.0378.14
4.3.70.0100.0238.14
4.3.60.0130.0138.14
4.3.50.0070.0178.14
4.3.40.0100.0438.14
4.3.30.0000.0208.14
4.3.20.0000.0208.14
4.3.10.0000.0278.14
4.3.00.0000.0178.14

preferences:
24.8 ms | 403 KiB | 5 Q