3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $test; public function __construct() { $this->test = 1; } protected function increaseTest() { $this->test++; } public function getTest() { return $this->test; } } class TestChild extends Test { public function increase() { $this->increaseTest(); } } $test = new TestChild(); echo $test->getTest() . "\n"; $test->increase(); echo $test->getTest() . "\n";

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.0070.00718.18
8.3.50.0040.01118.17
8.3.40.0070.01118.79
8.3.30.0070.00719.09
8.3.20.0070.00020.07
8.3.10.0040.00423.61
8.3.00.0030.00519.23
8.2.180.0090.00618.38
8.2.170.0130.00722.96
8.2.160.0060.00922.10
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00420.93
8.2.110.0060.00620.35
8.2.100.0060.00617.91
8.2.90.0040.00417.75
8.2.80.0040.00418.77
8.2.70.0050.00318.05
8.2.60.0040.00418.09
8.2.50.0060.00318.10
8.2.40.0000.00821.02
8.2.30.0000.00819.34
8.2.20.0040.00417.85
8.2.10.0050.00218.11
8.2.00.0070.00017.68
8.1.270.0040.00419.05
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.69
8.1.230.0090.00320.98
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0070.00417.48
8.1.190.0080.00017.23
8.1.180.0000.00819.02
8.1.170.0080.00018.59
8.1.160.0070.00019.04
8.1.150.0070.00018.80
8.1.140.0020.00517.44
8.1.130.0040.00417.79
8.1.120.0030.00717.35
8.1.110.0000.00817.29
8.1.100.0070.00017.45
8.1.90.0000.00717.46
8.1.80.0040.00417.47
8.1.70.0040.00417.51
8.1.60.0030.00617.46
8.1.50.0040.00417.51
8.1.40.0040.00417.47
8.1.30.0050.00317.67
8.1.20.0070.00017.58
8.1.10.0040.00417.55
8.1.00.0040.00417.39
8.0.300.0040.00418.77
8.0.290.0000.00816.74
8.0.280.0050.00218.44
8.0.270.0030.00317.17
8.0.260.0030.00317.21
8.0.250.0030.00316.93
8.0.240.0000.00616.91
8.0.230.0030.00316.99
8.0.220.0020.00516.88
8.0.210.0030.00316.89
8.0.200.0040.00416.91
8.0.190.0040.00416.88
8.0.180.0000.00716.82
8.0.170.0040.00316.80
8.0.160.0070.00016.86
8.0.150.0040.00416.77
8.0.140.0080.00016.75
8.0.130.0000.00513.28
8.0.120.0000.00916.82
8.0.110.0070.00016.83
8.0.100.0040.00416.80
8.0.90.0030.00316.69
8.0.80.0100.00716.95
8.0.70.0030.00416.78
8.0.60.0000.00816.89
8.0.50.0000.00816.71
8.0.30.0090.01116.79
8.0.20.0130.00617.40
8.0.10.0060.00316.84
8.0.00.0050.01216.59
7.4.330.0000.00515.03
7.4.320.0030.00316.48
7.4.300.0030.00316.59
7.4.290.0040.00416.54
7.4.280.0030.00516.48
7.4.270.0030.00316.48
7.4.260.0000.00716.61
7.4.250.0040.00416.48
7.4.240.0050.00216.51
7.4.230.0030.00316.61
7.4.220.0130.00716.52
7.4.210.0110.00716.66
7.4.200.0030.00316.63
7.4.160.0040.01416.37
7.4.150.0150.00617.40
7.4.140.0120.00717.86
7.4.130.0060.01416.46
7.4.120.0100.00716.49
7.4.110.0120.01216.38
7.4.100.0030.01316.46
7.4.90.0070.01016.55
7.4.80.0070.01019.39
7.4.70.0070.00716.48
7.4.60.0060.01116.41
7.4.50.0040.00416.46
7.4.40.0070.01016.61
7.4.30.0100.01416.38
7.4.00.0070.00714.54
7.3.330.0020.00213.16
7.3.320.0020.00213.18
7.3.310.0040.00416.41
7.3.300.0030.00316.32
7.3.290.0070.00616.29
7.3.280.0100.00816.35
7.3.270.0070.01017.40
7.3.260.0090.00816.58
7.3.250.0120.00516.33
7.3.240.0130.00316.28
7.3.230.0070.01016.39
7.3.210.0100.00716.54
7.3.200.0070.01119.39
7.3.190.0130.00316.59
7.3.180.0060.01216.23
7.3.170.0090.00916.27
7.3.160.0110.00516.46
7.2.330.0090.00916.61
7.2.320.0050.01316.60
7.2.310.0030.01616.52
7.2.300.0150.00816.49
7.2.290.0110.00716.37
7.2.00.0000.01319.59
7.1.100.0060.00918.22
7.1.70.0040.00417.12
7.1.60.0100.01419.22
7.1.50.0090.00316.98
7.1.00.0000.08022.40
7.0.200.0000.00716.73
7.0.140.0000.05321.92
7.0.60.0030.04019.91
7.0.50.0030.05317.83
7.0.40.0200.03720.14
7.0.30.0230.07720.03
7.0.20.0300.08020.30
7.0.10.0070.04020.26
7.0.00.0030.04720.23
5.6.280.0100.06721.08
5.6.210.0100.07720.61
5.6.200.0130.07318.23
5.6.190.0030.05020.48
5.6.180.0430.07020.39
5.6.170.0370.06320.55
5.6.160.0100.08020.39
5.6.150.0070.08318.23
5.6.140.0100.06018.14
5.6.130.0030.08318.13
5.6.120.0000.07721.02
5.6.110.0130.07721.09
5.6.100.0030.04720.98
5.6.90.0030.08021.04
5.6.80.0000.06320.29
5.5.350.0230.07720.39
5.5.340.0070.07717.99
5.5.330.0100.06320.29
5.5.320.0300.08020.51
5.5.310.0330.07720.32
5.5.300.0030.08318.00
5.5.290.0070.06017.95
5.5.280.0030.05720.81
5.5.270.0100.07720.73
5.5.260.0230.06320.73
5.5.250.0170.07720.78
5.5.240.0030.05320.27
5.4.450.0800.05319.38
5.4.440.0700.06319.47
5.4.430.0800.05319.59
5.4.420.0800.05019.41
5.4.410.0730.05019.31
5.4.400.0400.05319.19
5.4.390.0700.05718.99
5.4.380.0370.07018.68
5.4.370.0400.05718.68
5.4.360.0600.04718.62
5.4.350.0170.07018.50
5.4.340.0430.06318.75
5.4.320.0370.07318.52
5.4.310.0500.04018.73
5.4.300.0300.05318.65
5.4.290.0300.05018.49
5.4.280.0470.04318.79
5.4.270.0500.06018.73
5.4.260.0370.05018.72
5.4.250.0370.06718.75
5.4.240.0330.05718.45
5.4.230.0330.05318.68
5.4.220.0300.06018.64
5.4.210.0270.05718.55
5.4.200.0300.05316.79
5.4.190.0400.05318.70
5.4.180.0330.05718.45
5.4.170.0300.06018.70
5.4.160.0300.06718.73
5.4.150.0330.06318.71
5.4.140.0370.05016.23
5.4.130.0330.04316.29
5.4.120.0230.08016.17
5.4.110.0570.06016.25
5.4.100.0430.06016.44
5.4.90.0400.04716.25
5.4.80.0400.08016.43
5.4.70.0270.06016.44
5.4.60.0330.06716.27
5.4.50.0400.05716.21
5.4.40.0500.06016.16
5.4.30.0400.07016.22
5.4.20.0500.05716.23
5.4.10.0370.07016.14
5.4.00.0370.05315.69
5.3.290.0400.06714.70
5.3.280.0370.05014.78
5.3.270.0370.05014.65
5.3.260.0500.06014.83
5.3.250.0400.08014.84
5.3.240.0400.05714.80
5.3.230.0370.07014.64
5.3.220.0370.05714.57
5.3.210.0470.07014.75
5.3.200.0330.05714.67
5.3.190.0270.06314.55
5.3.180.0330.07014.68
5.3.170.0430.07314.60
5.3.160.0430.07014.73
5.3.150.0170.07714.61
5.3.140.0430.06314.76
5.3.130.0330.05714.59
5.3.120.0400.06314.60
5.3.110.0470.06314.54
5.3.100.0500.05714.10
5.3.90.0330.05714.19
5.3.80.0270.06314.14
5.3.70.0500.05014.06
5.3.60.0570.05314.23
5.3.50.0500.05314.20
5.3.40.0400.05314.06
5.3.30.0370.05313.94
5.3.20.0330.05713.86
5.3.10.0500.04713.64
5.3.00.0400.05713.81
5.2.170.0470.06011.36
5.2.160.0300.04011.21
5.2.150.0230.04311.17
5.2.140.0370.05711.18
5.2.130.0270.05311.14
5.2.120.0530.04311.21
5.2.110.0430.05711.17
5.2.100.0430.04011.33
5.2.90.0270.05311.11
5.2.80.0270.06711.14
5.2.70.0300.06711.23
5.2.60.0370.04711.13
5.2.50.0170.04711.04
5.2.40.0170.05011.03
5.2.30.0170.04711.20
5.2.20.0370.03010.96
5.2.10.0230.04710.89
5.2.00.0300.06010.77
5.1.60.0270.04710.12
5.1.50.0230.04310.06
5.1.40.0300.03310.00
5.1.30.0170.04010.32
5.1.20.0170.04010.39
5.1.10.0230.03710.18
5.1.00.0200.04010.12
5.0.50.0100.0338.73
5.0.40.0100.0308.62
5.0.30.0170.0438.34
5.0.20.0130.0308.26
5.0.10.0100.0308.21
5.0.00.0170.0538.34
4.4.90.0200.0236.90
4.4.80.0230.0236.90
4.4.70.0100.0336.90
4.4.60.0130.0336.90
4.4.50.0130.0236.90
4.4.40.0170.0376.90
4.4.30.0170.0276.90
4.4.20.0200.0336.90
4.4.10.0130.0306.90
4.4.00.0100.0436.90
4.3.110.0070.0376.90
4.3.100.0070.0236.90
4.3.90.0130.0206.90
4.3.80.0130.0306.90
4.3.70.0170.0236.90
4.3.60.0200.0176.90
4.3.50.0130.0206.90
4.3.40.0130.0306.90
4.3.30.0030.0276.90
4.3.20.0070.0276.90
4.3.10.0030.0236.90
4.3.00.0130.0277.30

preferences:
61.09 ms | 400 KiB | 5 Q