3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace App\W\A\F\D\E\Q; class obj999 implements Serializable { private $data; public function __construct() { $this->data[] = "My private data1"; } public function serialize() { return serialize($this->data); } public function unserialize($data) { $this->data = unserialize($data); } public function getData() { return $this->data; } } $obj = new obj999; $ser = serialize($obj); print_r($ser); echo PHP_EOL; print_r(serialize(["My private data1"]));

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.00016.63
8.3.50.0160.00921.21
8.3.40.0160.00318.57
8.3.30.0180.00018.85
8.3.20.0040.00420.34
8.3.10.0040.00423.66
8.3.00.0000.00817.77
8.2.180.0120.00316.75
8.2.170.0120.00922.96
8.2.160.0130.00620.45
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00626.16
8.2.120.0030.00617.50
8.2.110.0060.00319.30
8.2.100.0090.00317.63
8.2.90.0080.00019.17
8.2.80.0000.00817.97
8.2.70.0060.00317.75
8.2.60.0000.00817.80
8.2.50.0050.00518.07
8.2.40.0040.00419.28
8.2.30.0000.00820.51
8.2.20.0040.00417.74
8.2.10.0000.00718.06
8.2.00.0000.00717.93
8.1.280.0060.00925.92
8.1.270.0000.00823.79
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00022.19
8.1.230.0110.00020.90
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0080.00017.22
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0050.00318.64
8.1.160.0000.00821.89
8.1.150.0030.00518.73
8.1.140.0060.00317.37
8.1.130.0040.00717.64
8.1.120.0050.00317.34
8.1.110.0040.00417.38
8.1.100.0040.00417.45
8.1.90.0030.00517.42
8.1.80.0080.00017.44
8.1.70.0070.00017.41
8.1.60.0040.00417.42
8.1.50.0050.00317.47
8.1.40.0040.00417.36
8.1.30.0000.00917.46
8.1.20.0040.00417.59
8.1.10.0050.00217.38
8.1.00.0040.00417.34
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0020.00518.44
8.0.270.0050.00317.32
8.0.260.0000.00917.16
8.0.250.0000.00717.03
8.0.240.0040.00417.01
8.0.230.0000.00717.05
8.0.220.0000.00716.98
8.0.210.0050.00316.84
8.0.200.0000.00617.05
8.0.190.0000.00817.01
8.0.180.0000.00716.87
8.0.170.0040.00416.94
8.0.160.0000.00716.93
8.0.150.0070.00017.00
8.0.140.0050.00316.95
8.0.130.0030.00313.32
8.0.120.0080.00016.96
8.0.110.0030.00617.00
8.0.100.0000.00917.00
8.0.90.0000.00717.02
8.0.80.0060.00916.96
8.0.70.0000.00717.02
8.0.60.0000.00716.84
8.0.50.0020.00516.84
8.0.30.0090.01117.11
8.0.20.0090.01117.40
8.0.10.0040.00417.05
8.0.00.0100.00816.79
7.4.330.0030.00315.08
7.4.320.0000.00616.46
7.4.300.0030.00316.46
7.4.290.0030.00316.34
7.4.280.0050.00316.52
7.4.270.0030.00316.52
7.4.260.0030.00316.54
7.4.250.0040.00416.30
7.4.240.0000.00716.41
7.4.230.0030.00316.34
7.4.220.0100.00716.61
7.4.210.0060.01016.51
7.4.200.0000.00716.49
7.4.160.0100.00716.46
7.4.150.0140.00417.40
7.4.140.0080.01017.86
7.4.130.0100.00816.44
7.4.120.0090.01016.49
7.4.110.0220.00016.36
7.4.100.0150.00916.55
7.4.90.0040.01416.38
7.4.80.0180.00819.39
7.4.70.0100.00716.43
7.4.60.0110.00616.43
7.4.50.0000.00816.39
7.4.40.0090.00916.51
7.4.30.0140.00416.57
7.4.00.0120.00514.77
7.3.330.0000.00513.07
7.3.320.0000.00513.19
7.3.310.0000.00816.11
7.3.300.0040.00416.19
7.3.290.0060.00916.18
7.3.280.0120.00316.23
7.3.270.0140.00317.40
7.3.260.0100.00716.18
7.3.250.0150.00616.50
7.3.240.0030.01616.32
7.3.230.0140.00416.52
7.3.210.0100.00716.18
7.3.200.0130.01016.39
7.3.190.0090.00916.29
7.3.180.0160.01316.42
7.3.170.0140.00916.56
7.3.160.0030.01216.21
7.3.120.0120.00814.93
7.3.110.0070.01114.88
7.3.100.0080.00314.56
7.3.90.0030.00614.71
7.3.80.0100.00314.87
7.3.70.0070.00714.61
7.3.60.0060.00314.47
7.3.50.0000.01214.32
7.3.40.0070.00614.80
7.3.30.0040.01114.71
7.3.20.0060.00316.68
7.3.10.0000.01416.54
7.3.00.0030.00916.41
7.2.330.0120.01216.27
7.2.320.0140.00316.60
7.2.310.0090.01016.50
7.2.300.0080.00816.38
7.2.290.0120.00916.41
7.2.250.0170.00314.84
7.2.240.0110.01114.89
7.2.230.0060.00915.07
7.2.220.0060.00614.95
7.2.210.0060.00914.75
7.2.200.0030.01314.98
7.2.190.0000.00914.63
7.2.180.0090.00615.06
7.2.170.0040.01114.84
7.2.00.0110.00419.11
7.1.330.0040.00715.49
7.1.320.0050.00315.57
7.1.310.0080.00315.67
7.1.300.0090.00415.76
7.1.290.0040.00415.66
7.1.280.0090.00615.67
7.1.270.0100.00015.69
7.1.260.0060.00615.49
7.1.100.0040.00818.02
7.1.70.0020.00516.74
7.1.60.0090.01619.50
7.1.50.0120.01516.82
7.1.00.0100.07022.45
7.0.200.0040.00416.71
7.0.60.0130.06719.95
7.0.50.0100.07317.84
7.0.40.0070.09020.11
7.0.30.0230.06320.13
7.0.20.0230.05720.12
7.0.10.0070.08720.12
7.0.00.0030.04020.07
5.6.280.0030.03021.05
5.6.210.0100.07720.61
5.6.200.0000.04318.16
5.6.190.0100.08720.67
5.6.180.0030.06320.57
5.6.170.0300.05720.50
5.6.160.0000.05020.50
5.6.150.0000.04318.13
5.6.140.0070.08018.18
5.6.130.0070.08318.19
5.6.120.0100.08020.91
5.6.110.0130.08020.99
5.6.100.0230.08020.98
5.6.90.0130.07320.97
5.6.80.0100.04720.52
5.5.350.0030.08020.54
5.5.340.0100.06717.99
5.5.330.0030.05020.38
5.5.320.0170.06720.34
5.5.310.0230.07320.34
5.5.300.0100.07018.08
5.5.290.0100.07718.03
5.5.280.0200.06720.91
5.5.270.0130.07720.89
5.5.260.0070.08320.88
5.5.250.0100.08020.59
5.5.240.0300.07320.16
5.4.450.0600.07319.71
5.4.440.0400.07719.61
5.4.430.0130.06019.57
5.4.420.0570.05719.61
5.4.410.0770.04019.25
5.4.400.0530.05719.13
5.4.390.0030.06319.26
5.4.380.0100.06019.23
5.4.370.0670.05719.16
5.4.360.0530.06719.37
5.4.350.0630.06019.22
5.4.340.0530.06318.84
5.4.320.0200.06019.14
5.4.310.0300.04718.84
5.4.300.0300.05018.87
5.4.290.0300.05319.28
5.4.280.0130.06718.85
5.4.270.0270.04719.14
5.4.260.0100.05019.11
5.4.250.0230.06019.21
5.4.240.0130.05319.14
5.4.230.0630.05319.28
5.4.220.0700.06019.12
5.4.210.0600.06718.83
5.4.200.0700.05019.05
5.4.190.0700.05318.86
5.4.180.0630.06319.30
5.4.170.0500.05319.00
5.4.160.0200.06019.26
5.4.150.0400.07019.26
5.4.140.0330.05016.42
5.4.130.0270.07016.35
5.4.120.0230.05316.45
5.4.110.0170.05316.57
5.4.100.0300.04716.51
5.4.90.0170.06016.60
5.4.80.0470.04016.59
5.4.70.0030.06716.18
5.4.60.0100.03316.17
5.4.50.0070.03016.52
5.4.40.0200.05316.44
5.4.30.0130.04016.51
5.4.20.0170.03716.55

preferences:
41.28 ms | 401 KiB | 5 Q