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.70.0120.00318.55
8.3.60.0090.00616.63
8.3.50.0140.00721.16
8.3.40.0040.01118.96
8.3.30.0040.01418.84
8.3.20.0080.00020.29
8.3.10.0080.00023.64
8.3.00.0060.00317.79
8.2.190.0030.01316.58
8.2.180.0120.00616.63
8.2.170.0090.00622.96
8.2.160.0100.01020.47
8.2.150.0000.00925.66
8.2.140.0050.00524.66
8.2.130.0000.00826.16
8.2.120.0030.00617.75
8.2.110.0030.00720.90
8.2.100.0050.00517.75
8.2.90.0040.00419.22
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0080.00017.93
8.2.50.0050.00318.07
8.2.40.0000.00819.21
8.2.30.0080.00020.73
8.2.20.0000.00717.75
8.2.10.0040.00418.04
8.2.00.0050.00318.06
8.1.280.0130.00325.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0090.00028.09
8.1.240.0060.00323.92
8.1.230.0060.00617.54
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0080.00017.35
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0080.00018.45
8.1.160.0000.00722.05
8.1.150.0040.00418.81
8.1.140.0060.00317.40
8.1.130.0090.00017.69
8.1.120.0000.00717.33
8.1.110.0000.00717.28
8.1.100.0040.00417.31
8.1.90.0040.00417.43
8.1.80.0000.00717.45
8.1.70.0030.00317.46
8.1.60.0000.00817.40
8.1.50.0040.00417.36
8.1.40.0000.00817.34
8.1.30.0090.00017.49
8.1.20.0040.00417.50
8.1.10.0000.00717.56
8.1.00.0000.00817.41
8.0.300.0060.00318.77
8.0.290.0090.00016.75
8.0.280.0030.00318.32
8.0.270.0000.00717.18
8.0.260.0040.00417.18
8.0.250.0000.00817.00
8.0.240.0000.00817.04
8.0.230.0020.00516.98
8.0.220.0000.00716.97
8.0.210.0000.00716.87
8.0.200.0080.00016.99
8.0.190.0040.00416.98
8.0.180.0030.00516.87
8.0.170.0030.00616.99
8.0.160.0000.00717.00
8.0.150.0030.00616.86
8.0.140.0070.00016.85
8.0.130.0000.00613.34
8.0.120.0020.00516.97
8.0.110.0080.00016.92
8.0.100.0000.00716.77
8.0.90.0070.00016.86
8.0.80.0040.01116.99
8.0.70.0040.00416.79
8.0.60.0000.00716.83
8.0.50.0000.00716.81
8.0.30.0090.01017.04
8.0.20.0110.00717.40
8.0.10.0040.00416.91
8.0.00.0050.01216.86
7.4.330.0050.00015.08
7.4.320.0050.00216.54
7.4.300.0030.00316.44
7.4.290.0030.00316.49
7.4.280.0050.00316.54
7.4.270.0030.00316.30
7.4.260.0080.00016.41
7.4.250.0000.00716.40
7.4.240.0060.00116.48
7.4.230.0040.00416.48
7.4.220.0060.01216.38
7.4.210.0100.00316.48
7.4.200.0070.00016.52
7.4.160.0080.00816.36
7.4.150.0070.01017.40
7.4.140.0080.01117.86
7.4.130.0060.01216.48
7.4.120.0070.01016.46
7.4.110.0110.01516.54
7.4.100.0160.00616.57
7.4.90.0040.01216.54
7.4.80.0070.01719.39
7.4.70.0120.00316.55
7.4.60.0120.00616.65
7.4.50.0000.00816.57
7.4.40.0030.01416.55
7.4.30.0140.00316.36
7.4.00.0060.01214.77
7.3.330.0050.00013.26
7.3.320.0000.00613.10
7.3.310.0000.00816.05
7.3.300.0030.00516.20
7.3.290.0100.00716.21
7.3.280.0040.01116.22
7.3.270.0080.00817.40
7.3.260.0070.01016.46
7.3.250.0130.00616.26
7.3.240.0090.00916.20
7.3.230.0120.00616.39
7.3.210.0070.01016.21
7.3.200.0050.01316.21
7.3.190.0110.00616.32
7.3.180.0130.00616.32
7.3.170.0150.00316.38
7.3.160.0090.00616.23
7.3.120.0150.00314.52
7.3.110.0070.01314.85
7.3.100.0030.01314.77
7.3.90.0100.00614.68
7.3.80.0090.00614.77
7.3.70.0130.00314.82
7.3.60.0090.00614.39
7.3.50.0030.00614.78
7.3.40.0000.01414.81
7.3.30.0000.01014.79
7.3.20.0030.00916.40
7.3.10.0060.00316.58
7.3.00.0070.00316.57
7.2.330.0150.00316.52
7.2.320.0090.00916.69
7.2.310.0090.00916.32
7.2.300.0040.01416.68
7.2.290.0100.01316.44
7.2.250.0120.00915.11
7.2.240.0100.00714.99
7.2.230.0000.01314.75
7.2.220.0000.01114.90
7.2.210.0120.00315.00
7.2.200.0060.00914.83
7.2.190.0060.00914.69
7.2.180.0070.00714.79
7.2.170.0080.00814.71
7.2.00.0070.00719.07
7.1.330.0100.00315.78
7.1.320.0060.00615.55
7.1.310.0030.00915.88
7.1.300.0040.00415.33
7.1.290.0040.00815.55
7.1.280.0110.00415.66
7.1.270.0060.00615.68
7.1.260.0060.00315.52
7.1.100.0920.00416.05
7.1.70.0000.00717.09
7.1.60.0060.01919.50
7.1.50.0130.01316.56
7.1.00.0000.08022.30
7.0.200.0040.00416.47
7.0.60.0130.08021.66
7.0.50.0000.07017.90
7.0.40.0100.07319.96
7.0.30.0400.06720.24
7.0.20.0270.04020.03
7.0.10.0100.04320.26
7.0.00.0070.08320.20
5.6.280.0000.03321.06
5.6.210.0000.04320.73
5.6.200.0000.05018.27
5.6.190.0100.03720.53
5.6.180.0100.04320.50
5.6.170.0370.06020.46
5.6.160.0070.05020.43
5.6.150.0070.04318.16
5.6.140.0130.07318.15
5.6.130.0130.04318.25
5.6.120.0030.05021.15
5.6.110.0130.06321.01
5.6.100.0170.07320.96
5.6.90.0130.07721.01
5.6.80.0100.03720.51
5.5.350.0330.06720.45
5.5.340.0030.04017.96
5.5.330.0070.08020.40
5.5.320.0270.03320.34
5.5.310.0270.08320.26
5.5.300.0100.06718.01
5.5.290.0030.07018.04
5.5.280.0030.08020.74
5.5.270.0070.06020.95
5.5.260.0100.08020.80
5.5.250.0130.04720.57
5.5.240.0230.07020.14
5.4.450.0800.05319.47
5.4.440.0570.05019.66
5.4.430.0370.06319.55
5.4.420.0200.04719.52
5.4.410.0700.04719.46
5.4.400.0630.06019.11
5.4.390.0270.05719.20
5.4.380.0330.06019.34
5.4.370.0170.06019.01
5.4.360.0300.06019.26
5.4.350.0170.05718.85
5.4.340.0670.05719.27
5.4.320.0700.04718.99
5.4.310.0770.06719.12
5.4.300.0400.07319.28
5.4.290.0470.07719.04
5.4.280.0400.05319.14
5.4.270.0770.05719.03
5.4.260.0300.05319.09
5.4.250.0230.05719.11
5.4.240.0670.05319.00
5.4.230.0370.05719.12
5.4.220.0500.05719.11
5.4.210.0300.07319.11
5.4.200.0370.05319.22
5.4.190.0270.05019.26
5.4.180.0200.07018.98
5.4.170.0370.05719.07
5.4.160.0430.05018.82
5.4.150.0270.04319.24
5.4.140.0270.05316.27
5.4.130.0430.04316.32
5.4.120.0200.05316.27
5.4.110.0200.07016.55
5.4.100.0200.05316.64
5.4.90.0200.05016.42
5.4.80.0230.05016.44
5.4.70.0070.04016.53
5.4.60.0100.05016.51
5.4.50.0070.07316.53
5.4.40.0300.06716.53
5.4.30.0270.03716.55
5.4.20.0330.03716.55

preferences:
44.99 ms | 401 KiB | 5 Q