3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Type { } class Bar { private Type $type; public function __sleep() { return ['type']; } } class Foo { private $bar; public function __construct() { $this->bar = new Bar(); } } $foo = new Foo(); echo serialize($foo);

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.0080.00818.55
8.3.50.0070.01018.34
8.3.40.0100.00718.75
8.3.30.0070.00718.60
8.3.20.0090.00022.65
8.3.10.0070.00023.58
8.3.00.0040.00420.75
8.2.180.0040.01516.63
8.2.170.0040.01122.96
8.2.160.0140.00022.14
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0040.00426.16
8.2.110.0030.00622.07
8.2.100.0040.00819.37
8.2.90.0040.00418.03
8.2.80.0050.00318.03
8.2.70.0030.00617.93
8.2.60.0040.00418.16
8.2.50.0040.00418.10
8.2.40.0080.00022.23
8.2.30.0020.00519.16
8.2.20.0000.00718.02
8.2.10.0040.00418.85
8.2.00.0000.00719.11
8.1.280.0070.00725.92
8.1.270.0000.00822.28
8.1.260.0040.00426.35
8.1.250.0100.00028.09
8.1.240.0100.00020.38
8.1.230.0040.00821.04
8.1.220.0040.00419.12
8.1.210.0030.00620.50
8.1.200.0080.00017.35
8.1.190.0080.00517.00
8.1.180.0050.00318.10
8.1.170.0030.00518.51
8.1.160.0080.00020.19
8.1.150.0000.00818.82
8.1.140.0020.00518.73
8.1.130.0030.00520.11
8.1.120.0070.00017.38
8.1.110.0060.00317.42
8.1.100.0030.00617.24
8.1.90.0050.00317.30
8.1.80.0040.00417.44
8.1.70.0000.00717.35
8.1.60.0060.00317.48
8.1.50.0040.00417.44
8.1.40.0000.01117.33
8.1.30.0040.00417.53
8.1.20.0000.00817.60
8.1.10.0000.00817.59
8.1.00.0000.00717.41
8.0.300.0050.00321.55
8.0.290.0050.00216.75
8.0.280.0030.00318.35
8.0.270.0030.00517.35
8.0.260.0030.00520.06
8.0.250.0070.00016.91
8.0.240.0000.00616.97
8.0.230.0030.00316.94
8.0.220.0040.00416.85
8.0.210.0070.00016.73
8.0.200.0030.00316.87
8.0.190.0040.00416.86
8.0.180.0070.00016.75
8.0.170.0030.00516.84
8.0.160.0000.00816.84
8.0.150.0000.00716.65
8.0.140.0040.00416.80
8.0.130.0060.00013.27
8.0.120.0000.00816.81
8.0.110.0040.00416.69
8.0.100.0040.00416.85
8.0.90.0060.00316.77
8.0.80.0060.00916.86
8.0.70.0040.00416.86
8.0.60.0000.00716.69
8.0.50.0050.00316.86
8.0.30.0110.00817.04
8.0.20.0180.00616.97
8.0.10.0040.00417.05
8.0.00.0100.01316.82
7.4.330.0050.00015.55
7.4.320.0040.00416.46
7.4.300.0030.00316.47
7.4.290.0030.00516.48
7.4.280.0000.00716.54
7.4.270.0070.00016.57
7.4.260.0030.00313.30
7.4.250.0000.00816.56
7.4.240.0040.00416.55
7.4.230.0070.00016.31
7.4.220.0020.00516.54
7.4.210.0050.00816.49
7.4.200.0040.00416.49
7.4.130.0120.00616.40
7.4.120.0030.01716.65
7.4.110.0160.00616.45
7.4.100.0110.00716.55
7.4.90.0120.00616.40
7.4.80.0090.00919.39
7.4.70.0120.00416.46
7.4.60.0030.01416.49
7.4.50.0040.01216.44
7.4.40.0100.00716.39
7.3.330.0030.00316.23
7.3.320.0060.00013.11
7.3.310.0040.00415.95
7.3.300.0030.00316.16
7.3.290.0080.00716.16
7.3.280.0060.00916.19
7.3.260.0100.00616.47
7.3.230.0050.01316.05
7.3.210.0070.01316.15
7.3.200.0130.00316.39
7.3.190.0090.01216.07
7.3.180.0060.00916.26
7.3.170.0100.00716.32
7.3.160.0090.00916.22
7.3.120.0130.00514.67
7.3.110.0090.00914.60
7.3.100.0080.00914.63
7.3.90.0080.01114.60
7.3.80.0100.00914.45
7.3.70.0090.00714.66
7.3.60.0060.00814.51
7.3.50.0110.00614.65
7.3.40.0100.00514.69
7.3.30.0080.00714.57
7.3.20.0170.00314.57
7.3.10.0110.00614.60
7.3.00.0070.00714.60
7.2.330.0090.00916.42
7.2.320.0060.01016.21
7.2.310.0080.00816.37
7.2.300.0060.01216.25
7.2.290.0060.01616.50
7.2.240.0120.01014.91
7.2.230.0110.01014.63
7.2.220.0150.00714.82
7.2.210.0120.00514.79
7.2.200.0070.01014.82
7.2.190.0090.00914.67
7.2.180.0120.00714.61
7.2.170.0100.00914.77
7.2.160.0040.01114.74
7.2.150.0120.00814.85
7.2.140.0090.00714.74
7.2.130.0100.00814.73
7.2.120.0110.00614.83
7.2.110.0110.00714.69
7.2.100.0110.00714.80
7.2.90.0150.00714.82
7.2.80.0110.00814.91
7.2.70.0170.01014.93
7.2.60.0100.00714.74
7.2.50.0050.01214.86
7.2.40.0100.00914.83
7.2.30.0130.00614.88
7.2.20.0130.00614.79
7.2.10.0070.01214.77
7.2.00.0070.01014.58
7.1.330.0080.01013.63
7.1.320.0090.01013.57
7.1.310.0100.00813.59
7.1.300.0080.00913.65
7.1.290.0100.00513.67
7.1.280.0150.00913.57
7.1.270.0060.01013.82
7.1.260.0100.00813.65
7.1.250.0120.00413.70

preferences:
45.91 ms | 400 KiB | 5 Q