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.60.0030.01416.25
8.3.50.0120.00622.04
8.3.40.0000.01518.93
8.3.30.0140.00019.04
8.3.20.0080.00020.24
8.3.10.0030.00521.87
8.3.00.0080.00020.64
8.2.180.0130.00618.50
8.2.170.0150.00022.96
8.2.160.0130.00722.16
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0030.01219.40
8.2.110.0080.00020.39
8.2.100.0040.00717.91
8.2.90.0000.00819.09
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0030.00617.80
8.2.50.0040.00418.07
8.2.40.0090.00017.91
8.2.30.0050.00318.09
8.2.20.0030.00517.61
8.2.10.0050.00318.00
8.2.00.0050.00217.74
8.1.280.0070.00725.92
8.1.270.0080.00018.70
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0070.00323.84
8.1.230.0080.00419.16
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0060.00317.10
8.1.190.0080.00017.13
8.1.180.0040.00418.10
8.1.170.0000.00818.71
8.1.160.0070.00021.95
8.1.150.0040.00418.69
8.1.140.0080.00017.25
8.1.130.0030.00517.70
8.1.120.0030.00317.32
8.1.110.0050.00317.24
8.1.100.0060.00317.34
8.1.90.0040.00417.36
8.1.80.0040.00417.34
8.1.70.0030.00317.38
8.1.60.0030.00517.38
8.1.50.0000.00717.52
8.1.40.0080.00017.34
8.1.30.0030.00517.54
8.1.20.0040.00417.66
8.1.10.0000.00717.52
8.1.00.0040.00417.38
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0070.00018.39
8.0.270.0040.00417.10
8.0.260.0030.00317.16
8.0.250.0000.00716.80
8.0.240.0040.00416.85
8.0.230.0000.00716.95
8.0.220.0030.00316.80
8.0.210.0030.00316.79
8.0.200.0030.00317.00
8.0.190.0060.00316.98
8.0.180.0060.00316.81
8.0.170.0000.00816.84
8.0.160.0040.00416.90
8.0.150.0070.00016.73
8.0.140.0050.00216.89
8.0.130.0000.00813.27
8.0.120.0000.00716.88
8.0.110.0040.00416.83
8.0.100.0000.00716.77
8.0.90.0080.00016.75
8.0.80.0100.01016.92
8.0.70.0040.00416.88
8.0.60.0040.00416.90
8.0.50.0000.00716.76
8.0.30.0180.01117.12
8.0.20.0130.01017.40
8.0.10.0000.00716.84
8.0.00.0090.00716.81
7.4.330.0000.00515.03
7.4.320.0000.00616.39
7.4.300.0000.00716.36
7.4.290.0030.00516.57
7.4.280.0040.00416.43
7.4.270.0070.00016.41
7.4.260.0040.00416.51
7.4.250.0040.00416.39
7.4.240.0020.00516.56
7.4.230.0030.00316.50
7.4.220.0140.00416.32
7.4.210.0030.01216.46
7.4.200.0080.00016.40
7.4.160.0040.01116.54
7.4.150.0110.00817.40
7.4.140.0070.01117.86
7.4.130.0100.01016.68
7.4.120.0110.00616.49
7.4.110.0070.01116.41
7.4.100.0060.01516.44
7.4.90.0070.01016.66
7.4.80.0140.00919.39
7.4.70.0070.01016.63
7.4.60.0030.02016.24
7.4.50.0040.00416.22
7.4.40.0060.01016.58
7.4.30.0090.00916.43
7.4.00.0040.00814.71
7.3.330.0000.00513.23
7.3.320.0050.00013.35
7.3.310.0040.00416.34
7.3.300.0040.00416.37
7.3.290.0080.00716.34
7.3.280.0090.00916.37
7.3.270.0080.01117.40
7.3.260.0060.01116.58
7.3.250.0060.01316.47
7.3.240.0030.01316.41
7.3.230.0090.01316.70
7.3.210.0060.00916.25
7.3.200.0090.00919.39
7.3.190.0090.00716.67
7.3.180.0090.00616.55
7.3.170.0100.01016.39
7.3.160.0060.00916.26
7.2.330.0080.01216.61
7.2.320.0110.00616.53
7.2.310.0030.01316.65
7.2.300.0050.01116.36
7.2.290.0090.01416.43
7.2.60.0040.00816.10
7.2.00.0040.00819.32
7.1.200.0090.00315.71
7.1.100.0070.00717.86
7.1.70.0030.00717.06
7.1.60.0120.01219.46
7.1.50.0200.01734.83
7.1.00.0030.07722.54
7.0.200.0440.00614.77
7.0.140.0000.07322.12
7.0.60.0100.05019.86
7.0.50.0100.03717.97
7.0.40.0100.06320.27
7.0.30.0130.05320.08
7.0.20.0300.07720.25
7.0.10.0070.07320.11
7.0.00.0070.04020.12
5.6.280.0070.07021.08
5.6.210.0030.06320.75
5.6.200.0070.05018.19
5.6.190.0070.04320.39
5.6.180.3230.04320.47
5.6.170.0230.04320.54
5.6.160.0030.05720.54
5.6.150.0070.08318.18
5.6.140.0070.07318.27
5.6.130.0030.06018.25
5.6.120.0070.04020.89
5.6.110.0070.04021.14
5.6.100.0170.06721.04
5.6.90.0000.04720.98
5.6.80.0070.07020.38
5.6.70.0300.06720.40
5.5.350.0170.07020.47
5.5.340.0270.03318.02
5.5.330.0030.08720.43
5.5.320.0400.07020.27
5.5.310.0400.05020.34
5.5.300.0030.04017.98
5.5.290.0070.03717.94
5.5.280.0000.09320.96
5.5.270.0130.08020.87
5.5.260.0100.05720.84
5.5.250.0070.04020.70
5.5.240.0270.07020.27
5.4.450.0800.05719.16
5.4.440.1000.06019.59
5.4.430.1230.06019.38
5.4.420.0800.05319.46
5.4.410.0700.06019.25
5.4.400.0770.05019.15
5.4.390.1070.05318.81
5.4.380.1030.05318.52
5.4.370.1030.06018.56
5.4.360.1070.05318.59
5.4.350.0930.05318.62
5.4.340.1000.04318.50
5.4.320.0930.06318.49
5.4.310.1070.04718.70
5.4.300.1070.04718.80
5.4.290.0900.06018.73
5.4.280.0930.06018.75
5.4.270.1100.05718.74
5.4.260.1330.05718.45
5.4.250.1030.05318.59
5.4.240.1100.05718.52
5.4.230.0930.05018.57
5.4.220.1000.04318.73
5.4.210.1100.05318.45
5.4.200.0970.05316.56
5.4.190.0930.06318.68
5.4.180.0900.06718.44
5.4.170.0970.05718.77
5.4.160.1100.04318.50
5.4.150.0870.05318.68
5.4.140.0970.05316.27
5.4.130.0970.05016.29
5.4.120.1170.06016.45
5.4.110.1030.05016.33
5.4.100.1030.05016.19
5.4.90.1070.06016.27
5.4.80.1000.06316.24
5.4.70.0930.04716.34
5.4.60.0900.05016.30
5.4.50.1000.05716.19
5.4.40.0870.05716.19
5.4.30.0770.05716.19
5.4.20.1030.05316.38
5.4.10.1130.04316.30
5.4.00.0900.04715.88
5.3.290.0930.04714.89
5.3.280.0770.05014.73
5.3.270.0670.05014.63
5.3.260.0770.05714.61
5.3.250.0770.05714.71
5.3.240.0770.05314.64
5.3.230.1130.04714.64
5.3.220.0870.04314.75
5.3.210.0770.04714.80
5.3.200.0830.05314.63
5.3.190.0870.05314.61
5.3.180.0830.04714.77
5.3.170.0770.05314.68
5.3.160.0900.06014.67
5.3.150.0900.06014.79
5.3.140.0770.05314.59
5.3.130.0770.05714.53
5.3.120.1400.04014.55
5.3.110.0900.05014.76
5.3.100.0970.06714.07
5.3.90.0830.06714.05
5.3.80.0930.05014.04
5.3.70.1100.05014.08
5.3.60.0970.07014.14
5.3.50.0830.06014.00
5.3.40.0900.05714.09
5.3.30.0870.07014.12
5.3.20.0730.05713.80
5.3.10.0970.04313.73
5.3.00.0870.05713.69
5.2.170.1000.04711.21
5.2.160.0930.05311.23
5.2.150.0670.04711.35
5.2.140.0700.03311.25
5.2.130.0570.04711.31
5.2.120.0530.04011.09
5.2.110.0800.03711.10
5.2.100.0800.05011.14
5.2.90.0670.04711.12
5.2.80.0800.05011.15
5.2.70.0570.05011.12
5.2.60.0770.05011.20
5.2.50.0930.03711.02
5.2.40.0570.05011.22
5.2.30.0730.04711.18
5.2.20.0770.03311.07
5.2.10.0800.04710.98
5.2.00.0830.04710.93
5.1.60.0730.04010.13
5.1.50.0800.03310.11
5.1.40.0700.02710.10
5.1.30.0670.03710.38
5.1.20.0600.03710.59
5.1.10.0570.04010.15
5.1.00.0600.04010.10
5.0.50.0270.0308.56
5.0.40.0270.0338.59
5.0.30.0430.0408.27
5.0.20.0370.0278.23
5.0.10.0200.0308.36
5.0.00.0370.0478.21
4.4.90.0370.0236.73
4.4.80.0500.0306.73
4.4.70.0270.0236.73
4.4.60.0270.0136.73
4.4.50.0300.0136.73
4.4.40.0400.0276.73
4.4.30.0370.0236.73
4.4.20.0400.0306.73
4.4.10.0230.0276.73
4.4.00.0400.0276.73
4.3.110.0330.0276.73
4.3.100.0200.0306.73
4.3.90.0300.0176.73
4.3.80.0300.0376.73
4.3.70.0070.0276.73
4.3.60.0300.0236.73
4.3.50.0370.0306.73
4.3.40.0270.0476.73
4.3.30.0170.0236.73
4.3.20.0230.0236.73
4.3.10.0100.0236.73
4.3.00.0000.0237.06

preferences:
36.44 ms | 401 KiB | 5 Q