3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Math { public int $x; public int $y; public function __construct($x, $y) { $this->x = $x; $this->y = $y; } public function add() { return $this->x + $this->y; } public function __set($key, $val) { $this->x = $val; } } $math = new Math(5,10); unset($math->x); echo $math->add();

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.5.30.0100.01017.49
8.5.20.0130.00620.26
8.5.10.0090.00820.05
8.5.00.0090.01220.33
8.4.180.0130.00825.58
8.4.170.0140.00823.75
8.4.160.0150.00723.72
8.4.150.0080.00516.90
8.4.140.0120.00817.93
8.4.130.0150.00517.88
8.4.120.0080.01222.26
8.4.110.0110.00822.71
8.4.100.0100.01017.82
8.4.90.0170.00320.65
8.4.80.0060.00218.60
8.4.70.0100.00519.07
8.4.60.0100.01120.68
8.4.50.0130.00418.66
8.4.40.0190.00020.59
8.4.30.0110.00718.03
8.4.20.0100.01017.92
8.4.10.0120.00318.02
8.3.300.0120.00820.70
8.3.290.0130.00920.70
8.3.280.0140.00718.43
8.3.270.0130.00716.41
8.3.260.0130.00616.92
8.3.250.0090.00919.00
8.3.240.0040.00516.61
8.3.230.0040.00616.83
8.3.220.0090.00819.06
8.3.210.0120.00616.85
8.3.200.0060.00316.56
8.3.190.0050.00317.19
8.3.180.0140.00618.66
8.3.170.0090.00917.04
8.3.160.0120.00618.50
8.3.150.0100.00716.82
8.3.140.0050.00316.70
8.3.130.0060.01018.69
8.3.120.0000.00819.06
8.3.110.0000.00820.94
8.3.100.0000.00924.06
8.3.90.0000.01126.77
8.3.80.0030.00616.63
8.3.70.0100.01016.63
8.3.60.0060.01216.63
8.3.50.0140.00521.21
8.3.40.0130.00718.61
8.3.30.0070.01118.98
8.3.20.0070.00020.29
8.3.10.0000.00721.85
8.3.00.0060.00321.02
8.2.300.0100.00918.75
8.2.290.0050.00516.70
8.2.280.0120.00920.52
8.2.270.0160.00016.85
8.2.260.0030.00517.28
8.2.250.0050.00516.61
8.2.240.0060.00317.32
8.2.230.0060.00322.58
8.2.220.0040.00837.54
8.2.210.0100.00726.77
8.2.200.0030.00616.88
8.2.190.0090.00616.63
8.2.180.0140.00316.88
8.2.170.0090.00622.96
8.2.160.0100.00320.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00022.31
8.2.120.0080.00626.35
8.2.110.0060.00619.21
8.2.100.0080.00418.04
8.2.90.0050.00319.18
8.2.80.0000.00817.97
8.2.70.0090.00017.63
8.2.60.0040.00417.80
8.2.50.0060.00318.10
8.2.40.0070.00220.48
8.2.30.0050.00320.57
8.2.20.0000.00917.69
8.2.10.0080.00017.89
8.2.00.0040.00418.14
8.1.340.0140.01219.98
8.1.330.0100.01016.41
8.1.320.0110.00918.20
8.1.310.0090.00618.33
8.1.300.0060.00316.37
8.1.290.0070.00318.88
8.1.280.0140.00325.92
8.1.270.0060.00323.92
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0070.00320.87
8.1.230.0080.00317.83
8.1.220.0000.00917.74
8.1.210.0050.00318.77
8.1.200.0000.00917.36
8.1.190.0040.00417.11
8.1.180.0000.00818.10
8.1.170.0000.00818.46
8.1.160.0050.00320.90
8.1.150.0070.00218.86
8.1.140.0070.00019.49
8.1.130.0050.00317.52
8.1.120.0000.00717.42
8.1.110.0000.00817.22
8.1.100.0030.00517.39
8.1.90.0030.00517.38
8.1.80.0000.00817.35
8.1.70.0000.00717.42
8.1.60.0040.00417.48
8.1.50.0050.00517.43
8.1.40.0040.00417.41
8.1.30.0050.00317.52
8.1.20.0030.00617.64
8.1.10.0050.00317.51
8.1.00.0000.00817.45
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.31
8.0.270.0080.00017.11
8.0.260.0030.00317.05
8.0.250.0070.00016.95
8.0.240.0030.00516.97
8.0.230.0040.00416.93
8.0.220.0040.00416.87
8.0.210.0030.00416.90
8.0.200.0030.00616.86
8.0.190.0040.00416.92
8.0.180.0000.00816.98
8.0.170.0000.00816.85
8.0.160.0050.00316.93
8.0.150.0030.00316.74
8.0.140.0070.00016.83
8.0.130.0030.00313.34
8.0.120.0000.00816.88
8.0.110.0040.00416.91
8.0.100.0030.00316.80
8.0.90.0040.00416.73
8.0.80.0060.00916.78
8.0.70.0000.00716.76
8.0.60.0000.00716.88
8.0.50.0060.00316.80
8.0.30.0080.00917.01
8.0.20.0080.01117.40
8.0.10.0000.00817.07
8.0.00.0080.00916.93
7.4.330.0020.00215.08
7.4.320.0030.00316.52
7.4.300.0030.00316.53
7.4.290.0060.00016.46
7.4.280.0040.00416.45
7.4.270.0030.00316.49
7.4.260.0000.00716.56
7.4.250.0040.00416.58
7.4.240.0030.00316.62
7.4.230.0000.00816.64
7.4.220.0030.01616.64
7.4.210.0090.00816.53
7.4.200.0000.00816.57
7.4.160.0000.01616.38
7.4.150.0070.01117.40
7.4.140.0090.00917.86
7.4.130.0110.01016.60
7.4.120.0090.00816.57
7.4.110.0100.00716.47
7.4.100.0040.01316.52
7.4.90.0030.01316.67
7.4.80.0030.01419.39
7.4.70.0030.01316.38
7.4.60.0070.01016.57
7.4.50.0040.01216.71
7.4.40.0110.00616.52
7.4.30.0070.01416.61
7.3.330.0000.00613.07
7.3.320.0000.00513.11
7.3.310.0030.00316.11
7.3.300.0030.00316.08
7.3.290.0050.00216.02
7.3.280.0120.00716.20
7.3.270.0200.00317.40
7.3.260.0110.01116.39
7.3.250.0110.01116.32
7.3.240.0090.00816.25
7.3.230.0150.00316.39
7.3.210.0060.01016.35
7.3.200.0090.01116.23
7.3.190.0130.00316.25
7.3.180.0040.01216.20
7.3.170.0140.00516.07
7.3.160.0080.00816.23
7.2.330.0140.00316.41
7.2.320.0060.01316.55
7.2.310.0140.00316.63
7.2.300.0150.00316.22
7.2.290.0030.01316.50
7.0.40.0500.06320.32
7.0.30.0470.05320.14
7.0.20.0530.07020.18
7.0.10.0500.08320.29
7.0.00.0700.05320.38
5.6.190.0330.07020.61
5.6.180.0500.06020.62
5.6.170.0430.06720.62
5.6.160.0430.06320.60
5.6.150.0400.06020.44
5.6.140.0500.07020.44
5.6.130.0600.07020.21
5.6.120.0230.05320.27
5.6.110.0100.05720.32
5.6.100.0130.07020.34
5.6.90.0470.06020.35
5.6.80.0530.05319.66
5.6.70.0100.05719.82
5.6.60.0430.06019.65
5.6.50.0530.05719.80
5.6.40.0500.05319.57
5.6.30.0400.06719.71
5.6.20.0600.06019.67
5.6.10.0630.06319.66
5.6.00.0530.05319.67
5.5.330.0230.07320.25
5.5.320.0530.06020.28
5.5.310.0470.05320.42
5.5.300.0330.06720.01
5.5.290.0670.05720.18
5.5.280.0130.06020.23
5.5.270.0030.06320.13
5.5.260.0470.05720.16
5.5.250.0470.06020.02
5.5.240.0500.05719.59
5.5.230.0130.05319.59
5.5.220.0270.06019.46
5.5.210.0300.06319.54
5.5.200.0370.06019.46
5.5.190.0400.05319.52
5.5.180.0500.06019.74
5.5.160.0400.06019.48
5.5.150.0570.06319.46
5.5.140.0230.06319.52
5.5.130.0000.07019.54
5.5.120.0230.06319.50
5.5.110.0400.06019.51
5.5.100.0470.04319.36
5.5.90.0430.05019.48
5.5.80.0500.04719.49
5.5.70.0330.06319.36
5.5.60.0370.05319.35
5.5.50.0430.06719.63
5.5.40.0430.04719.38
5.5.30.0270.06319.36
5.5.20.0470.05319.49
5.5.10.0400.06319.35
5.5.00.0430.05319.45

preferences:
46.4 ms | 1595 KiB | 5 Q