3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test implements Serializable { public $test; public $test2; public function serialize() { $this->test = "cccc"; return serialize($this); } } $o = new Test(); $o->test = "aaaa"; $o->test2 = "bbbbb"; echo serialize($o);

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.40.0040.01418.72
8.3.30.0070.00718.57
8.3.20.0000.00720.34
8.3.10.0070.00021.68
8.3.00.0000.00723.54
8.2.170.0090.00622.96
8.2.160.0100.00320.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00820.86
8.2.120.0050.00326.35
8.2.110.0040.00421.07
8.2.100.0000.01217.93
8.2.90.0000.00719.17
8.2.80.0000.00817.97
8.2.70.0040.00717.49
8.2.60.0000.00817.91
8.2.50.0030.00518.09
8.2.40.0050.00522.33
8.2.30.0030.00319.34
8.2.20.0030.00517.56
8.2.10.0050.00317.88
8.2.00.0030.00618.05
8.1.270.0050.00222.20
8.1.260.0000.00728.09
8.1.250.0050.00328.09
8.1.240.0100.00022.40
8.1.230.0080.00417.70
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.00
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0030.00618.64
8.1.160.0030.00320.68
8.1.150.0040.00418.73
8.1.140.0040.00419.49
8.1.130.0000.00717.50
8.1.120.0030.00317.29
8.1.110.0000.00717.29
8.1.100.0030.00617.35
8.1.90.0000.00817.41
8.1.80.0050.00217.32
8.1.70.0070.00017.37
8.1.60.0070.00017.58
8.1.50.0080.00017.43
8.1.40.0070.00017.39
8.1.30.0000.00817.52
8.1.20.0070.00017.41
8.1.10.0000.00717.39
8.1.00.0040.00417.32
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.27
8.0.270.0030.00317.13
8.0.260.0040.00417.11
8.0.250.0070.00216.94
8.0.240.0000.00716.86
8.0.230.0040.00416.85
8.0.220.0090.00016.87
8.0.210.0040.00416.93
8.0.200.0000.00616.82
8.0.190.0040.00416.97
8.0.180.0080.00316.86
8.0.170.0000.00716.95
8.0.160.0040.00416.84
8.0.150.0110.00616.78
8.0.140.0040.00416.75
8.0.130.0060.00013.24
8.0.120.0000.00816.88
8.0.110.0040.00416.89
8.0.100.0000.00716.75
8.0.90.0080.00016.87
8.0.80.0070.01416.81
8.0.70.0070.00016.75
8.0.60.0040.00416.89
8.0.50.0000.00716.84
8.0.30.0070.01417.06
8.0.20.0140.00817.40
8.0.10.0000.00817.00
8.0.00.0070.01116.67
7.4.330.0030.00316.85
7.4.320.0000.00616.34
7.4.300.0000.00716.57
7.4.290.0000.00716.44
7.4.280.0000.00816.50
7.4.270.0000.00716.55
7.4.260.0000.00716.50
7.4.250.0040.00416.37
7.4.240.0000.00716.54
7.4.230.0030.00316.42
7.4.220.0120.00616.53
7.4.210.0060.01216.39
7.4.200.0000.00716.41
7.4.160.0140.00616.53
7.4.150.0100.01017.40
7.4.140.0120.00917.86
7.4.130.0060.01216.44
7.4.120.0110.00816.47
7.4.110.0060.01116.27
7.4.100.0180.00316.46
7.4.90.0100.00716.46
7.4.80.0060.01219.39
7.4.70.0100.00716.27
7.4.60.0070.01316.62
7.4.50.0030.00916.24
7.4.40.0120.00616.51
7.4.30.0140.00416.50
7.4.00.0090.00614.71
7.3.330.0000.00513.03
7.3.320.0020.00213.06
7.3.310.0080.00016.23
7.3.300.0000.00616.11
7.3.290.0050.01016.23
7.3.280.0060.01116.20
7.3.270.0070.01117.40
7.3.260.0120.00916.26
7.3.250.0100.00616.42
7.3.240.0120.01216.26
7.3.230.0060.01016.39
7.3.210.0140.00316.24
7.3.200.0080.00816.27
7.3.190.0070.01016.46
7.3.180.0090.00916.43
7.3.170.0120.00616.27
7.3.160.0110.00516.45
7.2.330.0170.00416.38
7.2.320.0140.00716.63
7.2.310.0080.01316.53
7.2.300.0060.01216.36
7.2.290.0080.00816.43
7.2.60.0060.01016.56
7.2.00.0100.00619.28
7.1.200.0190.00415.39
7.1.100.0040.01118.06
7.1.70.0030.00716.75
7.1.60.0140.01119.40
7.1.50.0120.00916.95
7.1.00.0000.08022.54
7.0.200.0260.00714.89
7.0.60.0300.07719.93
7.0.50.0100.08717.83
7.0.40.0100.08320.31
7.0.30.0130.05020.32
7.0.20.0230.08020.15
7.0.10.0070.05320.15
7.0.00.0170.08020.30
5.6.280.0000.06720.87
5.6.210.0000.04320.70
5.6.200.0100.05718.20
5.6.190.0130.08320.64
5.6.180.0330.07020.47
5.6.170.0270.03020.50
5.6.160.0030.08720.57
5.6.150.0070.04718.18
5.6.140.0200.06718.15
5.6.130.0070.05718.16
5.6.120.0030.04321.01
5.6.110.0130.07720.96
5.6.100.0130.08021.11
5.6.90.0070.05020.91
5.6.80.0070.08720.28
5.5.350.0270.05320.32
5.5.340.0100.06017.99
5.5.330.0030.08320.41
5.5.320.0230.05020.30
5.5.310.0230.05320.19
5.5.300.0030.05018.00
5.5.290.0070.05017.96
5.5.280.0100.07320.79
5.5.270.0070.07320.94
5.5.260.0100.06020.86
5.5.250.0100.08020.77
5.5.240.0200.03720.21

preferences:
44.18 ms | 400 KiB | 5 Q