3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $x; private $y; public function setX($x) { $this->x = $x; } public function setY($y) { $this->y = $y; } } class Bar extends Foo { public function __construct($x, $y) { $this->x = $x; $this->y = $y; } } $bar = new Bar(4,2); var_dump($bar); $bar->setX(8); $bar->setY(4); var_dump($bar);

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.70.0060.00918.31
8.3.60.0180.00318.68
8.3.50.0140.00521.94
8.3.40.0060.01518.83
8.3.30.0100.00318.94
8.3.20.0060.00320.34
8.3.10.0030.00521.83
8.3.00.0060.00320.71
8.2.190.0110.00416.63
8.2.180.0130.00618.29
8.2.170.0060.00918.89
8.2.160.0100.01022.96
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.66
8.2.110.0040.00419.39
8.2.100.0110.00018.09
8.2.90.0000.00818.80
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0100.00017.78
8.2.50.0000.00818.07
8.2.40.0040.00517.97
8.2.30.0000.00717.93
8.2.20.0040.00417.56
8.2.10.0030.00517.88
8.2.00.0070.00017.50
8.1.280.0140.00425.92
8.1.270.0000.00818.76
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00019.09
8.1.230.0100.00019.21
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0100.00017.36
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0000.00818.49
8.1.160.0000.00721.83
8.1.150.0030.00718.75
8.1.140.0030.00617.39
8.1.130.0070.00017.79
8.1.120.0000.00717.38
8.1.110.0080.00017.32
8.1.100.0030.00517.39
8.1.90.0040.00417.34
8.1.80.0070.00017.33
8.1.70.0000.00717.24
8.1.60.0060.00317.66
8.1.50.0040.00417.54
8.1.40.0040.00417.59
8.1.30.0050.00317.56
8.1.20.0000.00717.68
8.1.10.0080.00017.48
8.1.00.0040.00417.34
8.0.300.0070.00018.77
8.0.290.0030.00616.75
8.0.280.0050.00318.39
8.0.270.0000.00717.33
8.0.260.0030.00317.21
8.0.250.0030.00316.88
8.0.240.0040.00416.94
8.0.230.0000.00716.78
8.0.220.0000.00716.75
8.0.210.0000.00716.79
8.0.200.0030.00316.91
8.0.190.0000.00816.93
8.0.180.0000.00816.86
8.0.170.0000.00716.91
8.0.160.0030.00516.90
8.0.150.0000.00716.74
8.0.140.0040.00416.68
8.0.130.0070.00013.20
8.0.120.0080.00016.77
8.0.110.0000.00716.76
8.0.100.0040.00416.75
8.0.90.0040.00416.87
8.0.80.0080.00816.90
8.0.70.0040.00416.70
8.0.60.0000.00716.86
8.0.50.0070.00016.80
8.0.30.0080.01416.84
8.0.20.0080.01317.40
8.0.10.0040.00416.82
8.0.00.0070.01016.69
7.4.330.0060.00015.03
7.4.320.0000.00616.47
7.4.300.0000.00716.56
7.4.290.0080.00016.55
7.4.280.0040.00416.60
7.4.270.0030.00316.65
7.4.260.0000.00716.55
7.4.250.0040.00416.61
7.4.240.0030.00416.61
7.4.230.0000.00716.54
7.4.220.0040.01516.52
7.4.210.0070.01416.55
7.4.200.0000.00716.54
7.4.160.0040.01216.43
7.4.150.0060.01217.40
7.4.140.0110.00817.86
7.4.130.0140.00916.55
7.4.120.0100.00816.54
7.4.110.0110.00716.35
7.4.100.0040.01516.50
7.4.90.0100.01316.50
7.4.80.0130.00319.39
7.4.70.0090.00616.38
7.4.60.0120.00416.61
7.4.50.0030.00616.51
7.4.40.0060.01116.42
7.4.30.0090.01416.53
7.4.00.0060.00914.83
7.3.330.0030.00313.19
7.3.320.0050.00013.27
7.3.310.0030.00316.34
7.3.300.0030.00316.29
7.3.290.0080.00716.21
7.3.280.0080.01016.21
7.3.270.0110.00917.40
7.3.260.0100.00716.24
7.3.250.0080.01216.46
7.3.240.0170.00016.54
7.3.230.0200.00416.53
7.3.210.0070.01016.33
7.3.200.0110.00919.39
7.3.190.0030.01216.16
7.3.180.0100.00716.27
7.3.170.0080.01116.32
7.3.160.0080.00816.41
7.3.10.0170.00016.54
7.3.00.0100.00615.91
7.2.330.0030.01616.42
7.2.320.0060.01216.65
7.2.310.0150.00416.62
7.2.300.0000.01616.75
7.2.290.0040.01416.43
7.2.130.0070.00716.53
7.2.120.0000.01416.62
7.2.110.0040.01416.59
7.2.100.0070.00616.21
7.2.90.0000.01416.82
7.2.80.0090.00316.51
7.2.70.0120.00616.61
7.2.60.0080.00916.88
7.2.50.0120.00516.55
7.2.40.0130.00716.45
7.2.30.0070.01016.55
7.2.20.0170.00616.94
7.2.10.0040.01616.54
7.2.00.0050.01117.98
7.1.250.0040.00815.40
7.1.100.0110.00318.24
7.1.70.0040.00417.28
7.1.60.0070.01319.46
7.1.50.0110.01416.89
7.1.00.0070.07722.33
7.0.200.0250.00314.73
7.0.140.0000.04021.92
7.0.60.0070.06319.95
7.0.50.0130.07317.87
7.0.40.0100.08720.11
7.0.30.0230.06720.15
7.0.20.0270.04320.12
7.0.10.0070.04320.09
7.0.00.0030.09020.06
5.6.280.0030.07321.11
5.6.210.0130.08020.63
5.6.200.0130.07718.16
5.6.190.0070.05720.62
5.6.180.0200.04020.64
5.6.170.0230.08020.48
5.6.160.0100.08320.54
5.6.150.0030.07718.17
5.6.140.0030.08718.29
5.6.130.0070.08018.21
5.6.120.0070.04020.98
5.6.110.0070.05321.04
5.6.100.0100.06721.15
5.6.90.0100.05020.99
5.6.80.0100.08020.39
5.5.350.0270.06320.41
5.5.340.0170.07017.93
5.5.330.0030.06320.30
5.5.320.0000.08720.27
5.5.310.0330.06720.30
5.5.300.0130.06018.05
5.5.290.0100.07318.08
5.5.280.0070.04020.98
5.5.270.0070.05020.96
5.5.260.0100.07020.73
5.5.250.0200.06720.69
5.5.240.0070.07020.36
5.4.450.0670.05019.28
5.4.440.0670.06019.38
5.4.430.0370.05719.63
5.4.420.0300.06019.19
5.4.410.0730.05719.48
5.4.400.0700.06019.29
5.4.390.1130.06018.77
5.4.380.1300.06018.76
5.4.370.1130.04318.52
5.4.360.0970.05718.58
5.4.350.1170.04718.60
5.4.340.1300.06718.76
5.4.320.1070.05318.63
5.4.310.0900.06318.84
5.4.300.0970.05718.78
5.4.290.0970.05318.74
5.4.280.1070.05018.70
5.4.270.1000.05018.46
5.4.260.1000.06318.72
5.4.250.0900.06718.83
5.4.240.1070.04718.53
5.4.230.1130.05318.73
5.4.220.1030.07318.51
5.4.210.0900.05018.73
5.4.200.0870.05716.51
5.4.190.0930.04718.73
5.4.180.0900.05018.82
5.4.170.1030.06018.66
5.4.160.0970.05318.57
5.4.150.0870.06018.54
5.4.140.0970.06016.31
5.4.130.0800.05716.29
5.4.120.1000.04716.21
5.4.110.1000.05316.32
5.4.100.1130.04016.33
5.4.90.0970.05316.21
5.4.80.0970.05016.20
5.4.70.1070.04716.34
5.4.60.0970.06316.39
5.4.50.1000.04016.26
5.4.40.0900.05316.34
5.4.30.0870.05016.39
5.4.20.1130.04316.27
5.4.10.0970.05316.19
5.4.00.1070.04715.73
5.3.290.0970.06014.84
5.3.280.0930.06014.82
5.3.270.1030.04714.65
5.3.260.0930.06014.71
5.3.250.1170.03714.59
5.3.240.0930.05714.78
5.3.230.1100.04714.64
5.3.220.1030.05014.59
5.3.210.1130.05014.67
5.3.200.1100.04714.63
5.3.190.0900.06714.63
5.3.180.1030.06014.59
5.3.170.1070.04314.77
5.3.160.0930.04314.61
5.3.150.0900.05014.70
5.3.140.1100.04714.56
5.3.130.0870.05714.61
5.3.120.0870.05714.77
5.3.110.1030.04714.61
5.3.100.1030.07314.07
5.3.90.1070.07314.13
5.3.80.1100.04014.02
5.3.70.1000.05014.19
5.3.60.1030.05314.07
5.3.50.0970.04313.96
5.3.40.0870.05714.00
5.3.30.1070.04713.96
5.3.20.1070.05713.68
5.3.10.1200.06013.88
5.3.00.1230.05313.64
5.2.170.0800.04311.26
5.2.160.0870.03711.26
5.2.150.0870.04011.28
5.2.140.0830.03311.16
5.2.130.0770.05011.16
5.2.120.0900.03311.21
5.2.110.0800.04711.24
5.2.100.0770.03711.11
5.2.90.0670.05311.34
5.2.80.0700.05011.20
5.2.70.0730.05011.14
5.2.60.0870.04011.18
5.2.50.0770.04711.07
5.2.40.0570.04711.04
5.2.30.0800.04711.05
5.2.20.0670.04711.07
5.2.10.0770.04310.91
5.2.00.0630.04310.82
5.1.60.0600.03710.18
5.1.50.0600.04010.18
5.1.40.0600.03710.12
5.1.30.0670.03010.44
5.1.20.0630.03310.36
5.1.10.0530.04310.25
5.1.00.0630.03310.08
5.0.50.0270.0338.68
5.0.40.0300.0308.49
5.0.30.0300.0438.28
5.0.20.0300.0278.19
5.0.10.0270.0338.20
5.0.00.0330.0408.35
4.4.90.0330.0206.73
4.4.80.0270.0236.73
4.4.70.0300.0206.73
4.4.60.0300.0236.73
4.4.50.0300.0276.73
4.4.40.0370.0306.73
4.4.30.0370.0206.73
4.4.20.0330.0206.73
4.4.10.0300.0236.73
4.4.00.0330.0376.73
4.3.110.0330.0236.73
4.3.100.0370.0236.73
4.3.90.0400.0176.73
4.3.80.0270.0376.73
4.3.70.0330.0206.73
4.3.60.0500.0206.73
4.3.50.0370.0236.73
4.3.40.0470.0306.73
4.3.30.0230.0206.73
4.3.20.0170.0236.73
4.3.10.0200.0236.73
4.3.00.0030.01314.47

preferences:
36.71 ms | 401 KiB | 5 Q