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); echo $n2->Soma();

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.0100.01016.50
8.3.50.0160.00417.43
8.3.40.0030.01418.90
8.3.30.0150.00618.87
8.3.20.0040.00418.78
8.3.10.0040.00420.26
8.3.00.0080.00019.13
8.2.180.0070.00716.75
8.2.170.0040.01122.96
8.2.160.0060.00621.25
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00419.23
8.2.110.0060.00319.45
8.2.100.0110.00017.70
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0030.00517.75
8.2.60.0030.00617.93
8.2.50.0040.00418.10
8.2.40.0000.00818.22
8.2.30.0030.00718.12
8.2.20.0060.00317.57
8.2.10.0060.00317.67
8.2.00.0000.00717.53
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0000.00928.09
8.1.240.0090.00023.97
8.1.230.0060.00617.70
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.00917.22
8.1.190.0000.00817.35
8.1.180.0030.00618.10
8.1.170.0100.00018.80
8.1.160.0030.00318.73
8.1.150.0000.00718.61
8.1.140.0040.00417.30
8.1.130.0030.00317.81
8.1.120.0030.00317.41
8.1.110.0000.00717.31
8.1.100.0000.00717.37
8.1.90.0000.00717.43
8.1.80.0000.00817.36
8.1.70.0000.00817.35
8.1.60.0060.00317.59
8.1.50.0040.00417.37
8.1.40.0040.00417.52
8.1.30.0030.00617.66
8.1.20.0050.00217.58
8.1.10.0000.00717.61
8.1.00.0000.00717.54
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00818.32
8.0.270.0050.00217.22
8.0.260.0000.00716.79
8.0.250.0040.00417.03
8.0.240.0090.00017.04
8.0.230.0030.00316.93
8.0.220.0060.00016.84
8.0.210.0000.00716.81
8.0.200.0070.00016.85
8.0.190.0000.00716.98
8.0.180.0000.00716.79
8.0.170.0060.00316.93
8.0.160.0030.00316.92
8.0.150.0030.00616.81
8.0.140.0070.00016.74
8.0.130.0000.00513.37
8.0.120.0040.00416.74
8.0.110.0040.00416.91
8.0.100.0000.00816.76
8.0.90.0000.00716.79
8.0.80.0060.01016.88
8.0.70.0080.00016.94
8.0.60.0040.00416.83
8.0.50.0040.00416.94
8.0.30.0130.00617.20
8.0.20.0070.01117.16
8.0.10.0040.00416.90
8.0.00.0120.00616.85
7.4.330.0020.00213.05
7.4.320.0050.00316.54
7.4.300.0000.00616.57
7.4.290.0040.00416.59
7.4.280.0070.00316.50
7.4.270.0000.00716.59
7.4.260.0000.00513.31
7.4.250.0040.00416.63
7.4.240.0000.00816.59
7.4.230.0030.00316.59
7.4.220.0120.01216.64
7.4.210.0070.01016.61
7.4.200.0070.00016.59
7.4.190.0020.00516.50
7.4.160.0100.00716.57
7.4.150.0030.01416.52
7.4.140.0080.01116.44
7.4.130.0070.01116.38
7.4.120.0040.01316.53
7.4.110.0120.00616.65
7.4.100.0210.00016.68
7.4.90.0140.00416.61
7.4.80.0060.01119.39
7.4.70.0120.00916.40
7.4.60.0170.00916.45
7.4.50.0030.00616.29
7.4.40.0080.00816.61
7.4.30.0160.00016.39
7.4.00.0030.01415.21
7.3.330.0030.00313.19
7.3.320.0050.00013.31
7.3.310.0030.00316.40
7.3.300.0060.00016.19
7.3.290.0110.00416.32
7.3.280.0090.00716.31
7.3.270.0120.00616.51
7.3.260.0080.01216.44
7.3.250.0130.00416.40
7.3.240.0070.01116.48
7.3.230.0100.00716.56
7.3.210.0120.00616.51
7.3.200.0030.01216.62
7.3.190.0110.01216.48
7.3.180.0110.00416.35
7.3.170.0040.01816.44
7.3.160.0060.01316.53
7.3.120.0040.00714.93
7.2.330.0030.01316.63
7.2.320.0140.00316.36
7.2.310.0130.01016.43
7.2.300.0060.01416.62
7.2.290.0140.00716.63
7.2.00.0030.00919.11
7.1.100.0040.00718.00
7.1.70.0030.00717.23
7.1.60.0100.01419.40
7.1.50.0080.00616.60
7.1.00.0030.06722.45
7.0.200.0060.00614.86
7.0.140.0000.07721.97
7.0.120.0000.07322.05
7.0.60.0000.04319.96
7.0.50.0070.05017.86
7.0.40.0270.05320.21
7.0.30.0370.06720.03
7.0.20.0300.04020.30
7.0.10.0300.04020.04
7.0.00.0330.08020.20
5.6.280.0030.07020.99
5.6.210.0070.08020.75
5.6.200.0070.08318.15
5.6.190.0370.07320.47
5.6.180.0330.06720.35
5.6.170.0330.04720.51
5.6.160.0270.07020.47
5.6.150.0370.07320.17
5.6.140.0330.07020.41
5.6.130.0230.04720.43
5.6.120.0230.08320.17
5.6.110.0300.03720.15
5.6.100.0300.06720.51
5.6.90.0300.08020.18
5.6.80.0370.07019.73
5.6.70.0270.08319.82
5.6.60.0300.05019.79
5.6.50.0270.07719.82
5.6.40.0270.07019.77
5.6.30.0330.07319.68
5.6.20.0400.07019.73
5.6.10.0270.07019.76
5.6.00.0330.07319.63
5.5.350.0200.05320.48
5.5.340.0070.08317.97
5.5.330.0300.07720.30
5.5.320.0270.04320.13
5.5.310.0330.03320.34
5.5.300.0200.04720.29
5.5.290.0370.05020.00
5.5.280.0300.03719.99
5.5.270.0300.07720.20
5.5.260.0230.05720.21
5.5.250.0400.05320.02
5.5.240.0230.04319.63
5.5.230.0300.07719.37
5.5.220.0370.06719.49
5.5.210.0330.07019.59
5.5.200.0270.05719.32
5.5.190.0370.07719.59
5.5.180.0400.06019.48
5.5.160.0330.06719.56
5.5.150.0270.08319.56
5.5.140.0330.05019.56
5.5.130.0270.08019.32
5.5.120.0300.05319.56
5.5.110.0270.05019.30
5.5.100.0300.07019.25
5.5.90.0200.05319.49
5.5.80.0370.06719.45
5.5.70.0270.08019.38
5.5.60.0370.06719.48
5.5.50.0400.06019.38
5.5.40.0300.07319.44
5.5.30.0270.08019.42
5.5.20.0330.05719.29
5.5.10.0330.06719.45
5.5.00.0300.06019.41
5.4.450.0300.07019.19
5.4.440.0330.06019.49
5.4.430.0300.06319.40
5.4.420.0200.04719.18
5.4.410.0300.07719.18
5.4.400.0270.06719.16
5.4.390.0330.06319.25
5.4.380.0300.06718.86
5.4.370.0270.06319.19
5.4.360.0300.05319.15
5.4.350.0300.05018.93
5.4.340.0300.05318.98
5.4.320.0370.06719.15
5.4.310.0400.06719.24
5.4.300.0270.05318.98
5.4.290.0230.04319.14
5.4.280.0330.04019.24
5.4.270.0230.04319.14
5.4.260.0230.04019.24
5.4.250.0270.04019.23
5.4.240.0300.06319.23
5.4.230.0330.06319.14
5.4.220.0370.06319.11
5.4.210.0230.04319.24
5.4.200.0400.06018.84
5.4.190.0400.06319.16
5.4.180.0370.06319.14
5.4.170.0270.05018.86
5.4.160.0370.06319.18
5.4.150.0270.03719.18
5.4.140.0330.06716.38
5.4.130.0370.06016.43
5.4.120.0230.04316.30
5.4.110.0370.07016.30
5.4.100.0330.06016.43
5.4.90.0370.03716.41
5.4.80.0400.05716.51
5.4.70.0270.05016.28
5.4.60.0270.05716.43
5.4.50.0300.07016.26
5.4.40.0330.05016.47
5.4.30.0230.05316.39
5.4.20.0330.07016.38
5.4.10.0330.04716.36
5.4.00.0300.04015.85
5.3.290.0300.07714.72
5.3.280.0230.08014.52
5.3.270.0270.06714.63
5.3.260.0300.04014.66
5.3.250.0330.02714.77
5.3.240.0400.06314.66
5.3.230.0430.06014.61
5.3.220.0330.05314.63
5.3.210.0270.07714.64
5.3.200.0270.07014.60
5.3.190.0330.06714.49
5.3.180.0330.06714.56
5.3.170.0330.06014.61
5.3.160.0300.07314.61
5.3.150.0270.06014.57
5.3.140.0300.05714.58
5.3.130.0330.06314.44
5.3.120.0370.06314.61
5.3.110.0270.05014.59
5.3.100.0270.04313.92
5.3.90.0270.04714.03
5.3.80.0270.03313.91
5.3.70.0230.03713.97
5.3.60.0200.04014.15
5.3.50.0300.07013.98
5.3.40.0230.04013.97
5.3.30.0270.07313.92
5.3.20.0370.06313.87
5.3.10.0200.04013.71
5.3.00.0300.06713.66
5.2.170.0230.06312.85
5.2.160.0230.04312.85
5.2.150.0230.06312.85
5.2.140.0370.05012.85
5.2.130.0270.05312.85
5.2.120.0230.03312.85
5.2.110.0230.03312.85
5.2.100.0200.03012.85
5.2.90.0270.05712.85
5.2.80.0270.05712.85
5.2.70.0230.04012.85
5.2.60.0270.06012.85
5.2.50.0170.04712.85
5.2.40.0200.05312.85
5.2.30.0200.06312.85
5.2.20.0270.05312.85
5.2.10.0230.05712.85
5.2.00.0230.05312.85
5.1.60.0230.02312.85
5.1.50.0230.03012.85
5.1.40.0170.03312.85
5.1.30.0170.03712.85
5.1.20.0170.03712.85
5.1.10.0170.04312.85
5.1.00.0230.03012.85
5.0.50.0130.03312.85
5.0.40.0070.02712.85
5.0.30.0130.06312.85
5.0.20.0100.03012.85
5.0.10.0100.04012.85
5.0.00.0100.06012.85
4.4.90.0100.02012.85
4.4.80.0100.03312.85
4.4.70.0070.02012.85
4.4.60.0100.01312.85
4.4.50.0130.03312.85
4.4.40.0130.04312.85
4.4.30.0100.02012.85
4.4.20.0100.03312.85
4.4.10.0100.02712.85
4.4.00.0100.04012.85
4.3.110.0100.03312.85
4.3.100.0100.03012.85
4.3.90.0070.02712.85
4.3.80.0100.05312.85
4.3.70.0070.03012.85
4.3.60.0070.02712.85
4.3.50.0100.02312.85
4.3.40.0100.05012.85
4.3.30.0030.02012.85
4.3.20.0070.01712.85
4.3.10.0030.02012.85
4.3.00.0030.01712.85

preferences:
56.88 ms | 400 KiB | 5 Q