3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $value; public function setValue($val) { $this->value = $val; } public function getValue() { return $this->value; } } class B extends A { public function setValue($val) { $this->value = $val; } } $a = new A; $b = new B; $a->setValue(123); $b->setValue(544); var_dump($a->getValue(), $b->getValue(), $a, $b);

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.0120.00316.75
8.3.60.0170.00316.75
8.3.50.0120.00821.93
8.3.40.0140.00718.84
8.3.30.0070.00719.14
8.3.20.0070.00020.29
8.3.10.0000.00821.77
8.3.00.0040.00419.38
8.2.180.0130.01018.41
8.2.170.0140.00022.96
8.2.160.0140.00322.08
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00819.56
8.2.110.0060.00320.52
8.2.100.0060.00617.59
8.2.90.0000.00818.03
8.2.80.0080.00017.97
8.2.70.0000.00817.93
8.2.60.0050.00317.93
8.2.50.0000.00818.10
8.2.40.0080.00020.42
8.2.30.0040.00418.02
8.2.20.0000.00817.67
8.2.10.0080.00017.94
8.2.00.0000.00717.53
8.1.280.0070.00725.92
8.1.270.0000.00818.79
8.1.260.0040.00426.35
8.1.250.0020.00528.09
8.1.240.0070.00323.92
8.1.230.0050.00519.10
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0100.00317.22
8.1.190.0060.00317.22
8.1.180.0000.00818.10
8.1.170.0040.00418.56
8.1.160.0080.00022.02
8.1.150.0000.00718.74
8.1.140.0000.00717.31
8.1.130.0000.00717.88
8.1.120.0040.00417.38
8.1.110.0000.00817.32
8.1.100.0000.00817.38
8.1.90.0040.00417.34
8.1.80.0050.00217.43
8.1.70.0000.00717.46
8.1.60.0030.00717.48
8.1.50.0080.00417.57
8.1.40.0000.00917.41
8.1.30.0040.00417.66
8.1.20.0080.00017.66
8.1.10.0090.00017.44
8.1.00.0030.00517.41
8.0.300.0090.00021.42
8.0.290.0080.00016.63
8.0.280.0030.00318.34
8.0.270.0030.00317.16
8.0.260.0030.00317.07
8.0.250.0000.00716.86
8.0.240.0030.00616.86
8.0.230.0000.00716.86
8.0.220.0000.00716.86
8.0.210.0070.00016.81
8.0.200.0050.00216.90
8.0.190.0000.00816.78
8.0.180.0040.00416.88
8.0.170.0000.00816.74
8.0.160.0080.00016.88
8.0.150.0000.00816.73
8.0.140.0040.00416.85
8.0.130.0050.00013.24
8.0.120.0000.00816.71
8.0.110.0060.00316.72
8.0.100.0000.00716.70
8.0.90.0040.00416.83
8.0.80.0060.01016.77
8.0.70.0000.00716.70
8.0.60.0050.00316.83
8.0.50.0040.00416.63
8.0.30.0120.01016.88
8.0.20.0110.00917.40
8.0.10.0000.00816.83
8.0.00.0130.00616.76
7.4.330.0000.00515.03
7.4.320.0060.00016.57
7.4.300.0000.00616.61
7.4.290.0070.00016.48
7.4.280.0050.00216.50
7.4.270.0030.00316.58
7.4.260.0000.00716.52
7.4.250.0040.00416.46
7.4.240.0040.00416.61
7.4.230.0000.00816.61
7.4.220.0070.01416.66
7.4.210.0060.00916.52
7.4.200.0030.00316.69
7.4.160.0090.00616.41
7.4.150.0170.01117.40
7.4.140.0100.01417.86
7.4.130.0090.00816.46
7.4.120.0070.00916.47
7.4.110.0180.00016.23
7.4.100.0030.01816.33
7.4.90.0090.00916.54
7.4.80.0140.00716.56
7.4.70.0130.00616.47
7.4.60.0080.00816.68
7.4.50.0040.00416.23
7.4.40.0090.00916.42
7.4.30.0150.00316.58
7.4.00.0070.00714.60
7.3.330.0000.00513.25
7.3.320.0130.00013.02
7.3.310.0080.00016.23
7.3.300.0000.00616.23
7.3.290.0000.00716.18
7.3.280.0060.01016.20
7.3.270.0090.00917.40
7.3.260.0110.00616.41
7.3.250.0110.00816.20
7.3.240.0090.00916.22
7.3.230.0090.00916.39
7.3.210.0030.01416.17
7.3.200.0100.01619.39
7.3.190.0030.01216.48
7.3.180.0100.00716.45
7.3.170.0140.00316.50
7.3.160.0140.00616.34
7.2.330.0030.01516.71
7.2.320.0140.00916.46
7.2.310.0140.00316.31
7.2.300.0130.01016.77
7.2.290.0040.01216.66
7.1.200.0000.01215.45
7.1.70.0000.00716.98
7.1.60.0090.01519.50
7.1.50.0060.01116.91
7.1.00.0100.07022.51
7.0.200.0000.00716.70
7.0.140.0000.07322.07
7.0.60.0000.08719.91
7.0.50.0130.06317.84
7.0.40.0130.03720.10
7.0.30.0170.08320.07
7.0.20.0170.05020.25
7.0.10.0170.05320.22
7.0.00.0030.08720.23
5.6.280.0070.07021.11
5.6.210.0170.07020.71
5.6.200.0030.04018.25
5.6.190.0030.08320.76
5.6.180.0200.05720.32
5.6.170.0230.08320.51
5.6.160.0100.04020.45
5.6.150.0100.04018.16
5.6.140.0100.07718.21
5.6.130.0070.07318.16
5.6.120.0070.05721.05
5.6.110.0100.08721.05
5.6.100.0030.08721.03
5.6.90.0030.05321.13
5.6.80.0070.08020.40
5.5.350.0100.03320.47
5.5.340.0130.03017.99
5.5.330.0100.07720.41
5.5.320.0130.08320.13
5.5.310.0300.05020.36
5.5.300.0030.04018.02
5.5.290.0130.07317.93
5.5.280.0100.03720.68
5.5.270.0030.06020.97
5.5.260.0200.06720.88
5.5.250.0030.04020.61
5.5.240.0070.07720.19
5.4.450.0700.04719.48
5.4.440.0800.05319.46
5.4.430.0770.05019.54
5.4.420.0670.06719.45
5.4.410.1030.05319.36
5.4.400.0170.06718.67
5.4.390.0270.05318.74
5.4.380.0230.06018.54
5.4.370.0370.04718.70
5.4.360.0330.04318.79
5.4.350.0300.05018.84
5.4.340.0130.06318.80
5.4.320.0230.05318.62
5.4.310.0200.06018.70
5.4.300.0230.05018.76
5.4.290.0230.05018.48
5.4.280.0170.06018.83
5.4.270.0270.05318.80
5.4.260.0200.05718.56
5.4.250.0130.06018.80
5.4.240.0170.06018.78
5.4.230.0200.05318.77
5.4.220.0130.06318.46
5.4.210.0200.05718.71
5.4.200.0330.05716.64
5.4.190.0300.05318.73
5.4.180.0330.04318.51
5.4.170.0230.05718.59
5.4.160.0330.07018.76
5.4.150.0430.05718.60
5.4.140.0130.06016.35
5.4.130.0270.05016.26
5.4.120.0370.04016.48
5.4.110.0300.04316.35
5.4.100.0300.04316.45
5.4.90.0200.05316.18
5.4.80.0270.04716.28
5.4.70.0330.05316.17
5.4.60.0200.05316.27
5.4.50.0230.05316.24
5.4.40.0330.04316.39
5.4.30.0270.04716.20
5.4.20.0300.04716.16
5.4.10.0270.04716.24
5.4.00.0370.04715.75
5.3.290.0270.06014.84
5.3.280.0230.05714.62
5.3.270.0230.05314.64
5.3.260.0200.06014.71
5.3.250.0200.05714.64
5.3.240.0130.06014.63
5.3.230.0170.05714.65
5.3.220.0230.05314.57
5.3.210.0300.04714.70
5.3.200.0270.05314.59
5.3.190.0300.04714.63
5.3.180.0100.06714.56
5.3.170.0130.05714.59
5.3.160.0370.04314.67
5.3.150.0230.05014.61
5.3.140.0230.05314.54
5.3.130.0270.05314.65
5.3.120.0230.05314.61
5.3.110.0270.05314.65
5.3.100.0200.05314.08
5.3.90.0200.05314.21
5.3.80.0300.05314.19
5.3.70.0200.05714.16
5.3.60.0170.05714.23
5.3.50.0370.05014.01
5.3.40.0300.04714.02
5.3.30.0330.04013.91
5.3.20.0200.05313.81
5.3.10.0300.04713.64
5.3.00.0270.04313.81
5.2.170.0030.05711.18
5.2.160.0200.04011.26
5.2.150.0230.03711.22
5.2.140.0200.04311.23
5.2.130.0270.03011.10
5.2.120.0130.04311.18
5.2.110.0170.04311.16
5.2.100.0230.03311.21
5.2.90.0200.05711.11
5.2.80.0230.05711.18
5.2.70.0130.05011.14
5.2.60.0170.04711.29
5.2.50.0200.04011.13
5.2.40.0170.03711.12
5.2.30.0170.04011.00
5.2.20.0170.04010.98
5.2.10.0200.03710.94
5.2.00.0170.04010.72
5.1.60.0170.04310.19
5.1.50.0130.03710.02
5.1.40.0170.03010.19
5.1.30.0170.03310.39
5.1.20.0170.03310.38
5.1.10.0170.03310.11
5.1.00.0230.02710.10
5.0.50.0070.0338.60
5.0.40.0100.0278.41
5.0.30.0100.0478.26
5.0.20.0100.0378.24
5.0.10.0130.0308.20
5.0.00.0130.0408.15
4.4.90.0130.0177.29
4.4.80.0070.0277.29
4.4.70.0130.0177.29
4.4.60.0070.0237.29
4.4.50.0100.0207.29
4.4.40.0070.0337.29
4.4.30.0100.0207.29
4.4.20.0100.0207.29
4.4.10.0070.0237.29
4.4.00.0170.0277.29
4.3.110.0070.0237.29
4.3.100.0170.0107.29
4.3.90.0030.0237.29
4.3.80.0100.0307.29
4.3.70.0070.0237.29
4.3.60.0100.0207.29
4.3.50.0100.0207.29
4.3.40.0070.0337.29
4.3.30.0000.0277.29
4.3.20.0030.0237.29
4.3.10.0070.0207.29
4.3.00.0030.0279.30

preferences:
67.84 ms | 401 KiB | 5 Q