3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Nunber{ public $a; public $b; function Soma(){ return $this->a+$this->b; } } $n = new Nunber; $n->a = 5; $n->b = 6; $s = serialize($n); #echo "$n->Soma()<br>"; $n2 = unserialize($s); print_r($s);

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.0130.00716.50
8.3.50.0090.01117.20
8.3.40.0090.00918.70
8.3.30.0160.00318.45
8.3.20.0080.00018.56
8.3.10.0050.00320.54
8.3.00.0040.00419.25
8.2.180.0070.00716.50
8.2.170.0140.00022.96
8.2.160.0100.00721.11
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00819.38
8.2.110.0030.00619.36
8.2.100.0080.00317.78
8.2.90.0050.00319.08
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0030.00617.68
8.2.50.0030.00518.10
8.2.40.0070.00018.22
8.2.30.0060.00318.01
8.2.20.0040.00417.51
8.2.10.0080.00017.64
8.2.00.0040.00417.66
8.1.280.0130.01025.92
8.1.270.0090.00022.02
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0070.00324.03
8.1.230.0080.00317.83
8.1.220.0070.00017.74
8.1.210.0000.00918.77
8.1.200.0030.00617.35
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0090.00018.63
8.1.160.0000.00718.79
8.1.150.0040.00418.59
8.1.140.0020.00517.39
8.1.130.0000.00717.88
8.1.120.0000.00817.34
8.1.110.0000.00717.36
8.1.100.0040.00317.38
8.1.90.0000.00717.40
8.1.80.0050.00317.36
8.1.70.0050.00317.43
8.1.60.0120.00017.53
8.1.50.0040.00417.38
8.1.40.0070.00017.50
8.1.30.0000.00817.55
8.1.20.0080.00017.52
8.1.10.0000.00717.53
8.1.00.0000.00717.46
8.0.300.0080.00019.11
8.0.290.0000.00816.88
8.0.280.0000.00718.40
8.0.270.0070.00017.08
8.0.260.0070.00016.71
8.0.250.0080.00016.98
8.0.240.0000.00716.93
8.0.230.0030.00316.96
8.0.220.0030.00316.79
8.0.210.0050.00216.91
8.0.200.0040.00416.96
8.0.190.0000.00716.89
8.0.180.0030.00316.88
8.0.170.0030.00616.84
8.0.160.0000.00716.96
8.0.150.0060.00316.81
8.0.140.0050.00316.84
8.0.130.0000.00513.37
8.0.120.0030.00616.89
8.0.110.0040.00416.85
8.0.100.0000.00716.82
8.0.90.0040.00416.95
8.0.80.0070.00716.87
8.0.70.0000.00716.78
8.0.60.0050.00216.93
8.0.50.0040.00416.89
8.0.30.0070.01216.94
8.0.20.0160.00616.96
8.0.10.0040.00416.88
8.0.00.0100.00916.78
7.4.330.0050.00012.88
7.4.320.0000.00716.35
7.4.300.0000.00616.39
7.4.290.0030.00316.44
7.4.280.0040.00416.47
7.4.270.0040.00416.56
7.4.260.0030.00313.21
7.4.250.0040.00416.54
7.4.240.0000.00816.41
7.4.230.0030.00316.53
7.4.220.0060.01216.60
7.4.210.0080.00816.44
7.4.200.0050.00316.57
7.4.190.0030.00316.52
7.4.160.0060.01016.30
7.4.150.0090.01216.40
7.4.140.0130.00716.39
7.4.130.0130.00516.41
7.4.120.0120.00716.47
7.4.110.0070.01416.37
7.4.100.0090.00916.61
7.4.90.0150.00916.53
7.4.80.0140.00919.39
7.4.70.0090.01216.52
7.4.60.0090.01816.38
7.4.50.0000.00616.25
7.4.40.0070.00716.30
7.4.30.0030.01316.41
7.4.00.0070.00714.79
7.3.330.0070.00013.09
7.3.320.0000.00513.07
7.3.310.0000.00616.29
7.3.300.0030.00316.27
7.3.290.0040.01016.22
7.3.280.0120.00616.19
7.3.270.0100.00616.37
7.3.260.0100.00716.48
7.3.250.0110.00716.33
7.3.240.0090.01216.46
7.3.230.0110.00616.38
7.3.210.0130.00316.43
7.3.200.0100.00616.63
7.3.190.0070.01016.21
7.3.180.0090.00616.36
7.3.170.0060.01216.27
7.3.160.0080.00816.54
7.3.120.0090.00914.53
7.2.330.0130.01016.71
7.2.320.0150.00316.49
7.2.310.0140.00916.46
7.2.300.0130.01216.57
7.2.290.0080.00816.29
7.2.00.0030.00619.30
7.1.100.0060.01017.56
7.1.70.0050.00516.91
7.1.60.0130.01319.40
7.1.50.0070.01416.82
7.1.00.0070.07322.36
7.0.200.0080.00614.98
7.0.140.0000.07721.92
7.0.120.0070.07022.06
7.0.60.0100.04720.00
7.0.50.0070.07717.95
7.0.40.0030.04320.24
7.0.30.0270.06320.30
7.0.20.0270.07320.33
7.0.10.0200.08720.16
7.0.00.0070.09020.05
5.6.280.0000.07320.91
5.6.210.0100.07720.49
5.6.200.0100.08018.29
5.6.190.0100.08020.75
5.6.180.0270.08020.48
5.6.170.0270.06720.48
5.6.160.0070.03720.71
5.6.150.0030.04018.27
5.6.140.0030.08318.15
5.6.130.0070.07718.14
5.6.120.0130.07721.05
5.6.110.0200.05321.08
5.6.100.0130.08021.01
5.6.90.0100.08720.99
5.6.80.0230.06720.45
5.6.70.2030.03020.37
5.5.350.0330.07720.43
5.5.340.0100.08017.99
5.5.330.0070.07320.57
5.5.320.0200.04020.14
5.5.310.0300.06020.30
5.5.300.0030.08718.07
5.5.290.0130.07318.03
5.5.280.0070.05020.88
5.5.270.0030.07720.81
5.5.260.0170.08020.73
5.5.250.0070.07020.79
5.5.240.0030.08320.16
5.4.450.0270.07319.39
5.4.440.0100.05319.55
5.4.430.0170.04719.46
5.4.420.0300.05019.28
5.4.410.0200.05319.35
5.4.400.0270.06719.32
5.4.390.0170.07318.87
5.4.380.0170.08019.09
5.4.370.0230.06318.99
5.4.360.0300.06319.24
5.4.350.0170.04019.19
5.4.340.0230.05718.86
5.4.320.0230.06319.20
5.4.310.0130.04319.07
5.4.300.0270.07718.89
5.4.290.0170.06318.99
5.4.280.0330.07018.88
5.4.270.0200.06718.89
5.4.260.0230.04718.87
5.4.250.0130.04719.08
5.4.240.0230.07319.26
5.4.230.0200.04319.13
5.4.220.0270.04318.84
5.4.210.0270.06719.21
5.4.200.0270.06318.86
5.4.190.0270.02719.08
5.4.180.0230.07018.84
5.4.170.0270.05718.86
5.4.160.0270.07019.11
5.4.150.0170.05019.04
5.4.140.0200.05016.29
5.4.130.0130.05316.32
5.4.120.0270.06716.35
5.4.110.0230.07316.27
5.4.100.0170.06316.54
5.4.90.0200.07316.34
5.4.80.0130.07016.33
5.4.70.0270.06316.26
5.4.60.0170.07016.33
5.4.50.0270.06716.34
5.4.40.0200.04716.43
5.4.30.0230.04316.23
5.4.20.0370.03316.53
5.4.10.0230.06716.53
5.4.00.0230.07316.00
5.3.290.0170.05014.67
5.3.280.0200.03714.82
5.3.270.0230.07014.66
5.3.260.0300.06714.62
5.3.250.0200.04714.69
5.3.240.0200.07714.50
5.3.230.0230.07314.75
5.3.220.0270.07014.58
5.3.210.0300.05714.47
5.3.200.0270.07014.49
5.3.190.0230.07314.75
5.3.180.0200.07714.72
5.3.170.0230.05014.54
5.3.160.0270.04014.61
5.3.150.0230.03314.55
5.3.140.0200.07014.57
5.3.130.0330.04014.47
5.3.120.0230.07014.66
5.3.110.0170.04314.52
5.3.100.0200.07714.13
5.3.90.0300.06714.24
5.3.80.0330.04714.14
5.3.70.0170.05714.14
5.3.60.0200.05313.98
5.3.50.0300.06314.00
5.3.40.0200.07014.04
5.3.30.0270.06313.84
5.3.20.0270.06013.67
5.3.10.0200.04713.58
5.3.00.0130.04013.57
5.2.170.0130.05013.04
5.2.160.0170.04313.04
5.2.150.0200.06013.04
5.2.140.0230.03313.04
5.2.130.0230.05713.04
5.2.120.0230.05313.04
5.2.110.0170.04713.04
5.2.100.0170.02313.04
5.2.90.0230.05713.04
5.2.80.0170.06313.04
5.2.70.0200.06013.04
5.2.60.0130.04013.04
5.2.50.0230.04013.04
5.2.40.0230.05313.04
5.2.30.0170.04713.04
5.2.20.0200.05313.04
5.2.10.0170.03313.04
5.2.00.0300.04313.04
5.1.60.0130.04313.04
5.1.50.0170.04713.04
5.1.40.0200.04713.04
5.1.30.0300.02013.04
5.1.20.0170.05313.04
5.1.10.0200.04013.04
5.1.00.0170.03013.04
5.0.50.0070.04713.04
5.0.40.0030.02713.04
5.0.30.0100.04013.04
5.0.20.0070.04713.04
5.0.10.0070.04013.04
5.0.00.0100.04713.04
4.4.90.0100.02013.04
4.4.80.0100.02013.04
4.4.70.0070.03313.04
4.4.60.0070.03013.04
4.4.50.0130.02713.04
4.4.40.0130.05313.04
4.4.30.0130.03013.04
4.4.20.0170.02713.04
4.4.10.0100.01713.04
4.4.00.0070.03013.04
4.3.110.0100.03013.04
4.3.100.0070.02013.04
4.3.90.0070.03713.04
4.3.80.0070.05713.04
4.3.70.0030.01713.04
4.3.60.0070.01713.04
4.3.50.0030.03313.04
4.3.40.0070.04713.04
4.3.30.0070.01713.04
4.3.20.0000.02713.04
4.3.10.0030.03713.04
4.3.00.0030.02313.04

preferences:
46.3 ms | 401 KiB | 5 Q