3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Base { private $foo; public function setFoo($foo) { $this->foo = $foo; } public function foo() { return $this->foo; } } class Foo extends Base { public function foo() { return ' - '.parent::foo(); } } $obj = new Foo(); $obj->setFoo('yay'); var_dump($obj->foo());

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.0080.00616.75
8.3.50.0170.00322.12
8.3.40.0070.00718.74
8.3.30.0040.01119.13
8.3.20.0040.00420.46
8.3.10.0080.00023.71
8.3.00.0040.00419.38
8.2.180.0080.00816.38
8.2.170.0090.00622.96
8.2.160.0100.00320.47
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00022.06
8.2.110.0060.00322.24
8.2.100.0110.00017.91
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0000.00819.81
8.2.30.0000.00817.94
8.2.20.0000.00817.56
8.2.10.0020.00517.94
8.2.00.0000.00817.79
8.1.280.0100.00625.92
8.1.270.0060.00323.99
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0030.00623.75
8.1.230.0070.00319.16
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0060.00617.43
8.1.180.0050.00518.10
8.1.170.0080.00018.66
8.1.160.0050.00221.99
8.1.150.0040.00418.50
8.1.140.0000.00717.39
8.1.130.0070.00017.75
8.1.120.0070.00017.43
8.1.110.0070.00017.38
8.1.100.0030.00517.41
8.1.90.0000.00717.25
8.1.80.0050.00217.39
8.1.70.0000.00717.29
8.1.60.0030.00617.63
8.1.50.0000.00817.53
8.1.40.0050.00317.58
8.1.30.0000.00817.57
8.1.20.0070.00017.68
8.1.10.0040.00417.46
8.1.00.0000.00817.51
8.0.300.0040.00420.73
8.0.290.0000.00717.30
8.0.280.0070.00018.36
8.0.270.0000.00817.26
8.0.260.0000.00618.46
8.0.250.0000.00716.99
8.0.240.0000.00816.94
8.0.230.0070.00016.91
8.0.220.0000.00716.85
8.0.210.0070.00016.89
8.0.200.0030.00316.89
8.0.190.0020.00516.89
8.0.180.0050.00316.86
8.0.170.0050.00316.97
8.0.160.0050.00316.79
8.0.150.0070.00416.86
8.0.140.0040.00416.94
8.0.130.0000.00513.31
8.0.120.0040.00416.86
8.0.110.0040.00416.86
8.0.100.0040.00416.86
8.0.90.0030.00516.83
8.0.80.0060.01016.80
8.0.70.0040.00416.82
8.0.60.0080.00016.77
8.0.50.0040.00416.84
8.0.30.0070.01217.14
8.0.20.0110.00817.40
8.0.10.0000.00716.91
8.0.00.0050.01216.82
7.4.330.0000.00515.00
7.4.320.0070.00016.53
7.4.300.0060.00016.52
7.4.290.0030.00316.65
7.4.280.0030.00516.52
7.4.270.0000.00716.40
7.4.260.0030.00316.46
7.4.250.0040.00416.50
7.4.240.0020.00516.57
7.4.230.0070.00016.68
7.4.220.0130.00316.57
7.4.210.0060.01016.60
7.4.200.0000.00716.64
7.4.190.0000.00716.55
7.4.160.0160.00016.57
7.4.150.0110.00917.40
7.4.140.0060.01217.86
7.4.130.0100.00716.63
7.4.120.0100.00716.59
7.4.110.0000.01716.38
7.4.100.0120.01216.71
7.4.90.0150.00616.70
7.4.80.0110.00719.39
7.4.70.0110.00716.47
7.4.60.0140.00416.55
7.4.50.0080.00016.57
7.4.40.0070.01716.42
7.4.30.0060.01016.66
7.4.00.0070.00714.93
7.3.330.0050.00013.35
7.3.320.0030.00313.36
7.3.310.0000.00716.35
7.3.300.0000.00716.30
7.3.290.0070.01116.37
7.3.280.0110.00716.35
7.3.270.0100.00717.40
7.3.260.0040.01216.32
7.3.250.0090.00916.45
7.3.240.0060.01116.34
7.3.230.0060.01116.45
7.3.210.0110.00616.37
7.3.200.0140.00319.39
7.3.190.0160.00316.41
7.3.180.0060.01016.34
7.3.170.0100.00616.63
7.3.160.0120.00816.34
7.3.120.0110.00714.71
7.3.110.0070.01114.87
7.3.100.0060.00914.82
7.3.90.0090.00914.88
7.3.80.0070.00714.61
7.3.70.0030.01014.80
7.3.60.0090.00614.83
7.3.50.0040.00714.63
7.3.40.0030.00614.69
7.3.30.0130.00314.66
7.3.20.0150.00016.48
7.3.10.0030.01016.69
7.3.00.0100.00616.75
7.2.330.0090.00916.74
7.2.320.0070.01816.71
7.2.310.0150.00316.54
7.2.300.0130.00916.70
7.2.290.0110.00716.39
7.2.240.0100.00715.11
7.2.230.0040.01514.97
7.2.220.0030.01614.79
7.2.210.0090.00914.92
7.2.200.0050.00515.10
7.2.190.0090.00615.08
7.2.180.0150.00315.11
7.2.170.0060.00915.02
7.2.160.0060.00915.08
7.2.150.0060.00616.91
7.2.140.0080.00416.90
7.2.130.0030.01416.80
7.2.120.0040.01416.78
7.2.110.0150.00116.67
7.2.100.0060.00616.89
7.2.90.0060.00617.14
7.2.80.0070.00716.95
7.2.70.0120.00016.63
7.2.60.0030.01216.98
7.2.50.0090.00616.82
7.2.40.0060.01217.07
7.2.30.0040.01116.83
7.2.20.0070.01016.94
7.2.10.0110.00416.90
7.2.00.0030.00818.02
7.1.330.0060.00915.70
7.1.320.0090.00315.69
7.1.310.0090.00615.69
7.1.300.0040.01415.55
7.1.290.0100.00715.97
7.1.280.0050.00815.75
7.1.270.0060.00915.98
7.1.260.0060.00615.99
7.1.250.0100.00715.80
7.1.200.0070.00315.73
7.1.100.0000.01118.18
7.1.70.0040.00417.04
7.1.60.0150.01119.46
7.1.50.0190.01334.86
7.1.00.0070.07322.57
7.0.200.0000.00816.79
7.0.140.0070.06322.21
7.0.60.0100.03720.01
7.0.50.0070.05317.88
7.0.40.0130.08320.11
7.0.30.0200.05020.19
7.0.20.0100.05320.25
7.0.10.0030.08720.05
7.0.00.0030.04020.16
5.6.280.0100.06721.15
5.6.210.0030.05020.48
5.6.200.0000.07318.19
5.6.190.0030.09320.50
5.6.180.0400.07320.64
5.6.170.0100.04720.55
5.6.160.0070.04020.61
5.6.150.0100.05318.18
5.6.140.0100.03318.17
5.6.130.0100.07318.27
5.6.120.0030.04021.03
5.6.110.0070.03721.09
5.6.100.0100.03721.00
5.6.90.0130.06721.10
5.6.80.0070.07720.40
5.5.350.0330.07020.43
5.5.340.0070.07017.99
5.5.330.0000.04320.38
5.5.320.0100.08320.20
5.5.310.0300.03720.27
5.5.300.0100.03018.05
5.5.290.0070.06317.96
5.5.280.0130.08320.69
5.5.270.0070.06720.87
5.5.260.0030.07320.89
5.5.250.0030.04320.59
5.5.240.0030.07320.36
5.4.450.0270.05319.71
5.4.440.0100.06719.45
5.4.430.0300.07319.47
5.4.420.0300.05019.58
5.4.410.0270.05319.21
5.4.400.0270.05019.19
5.4.390.0230.05319.28
5.4.380.0170.05318.77
5.4.370.0170.04318.62
5.4.360.0170.04318.73
5.4.350.0100.05718.73
5.4.340.0130.05018.84
5.4.320.0070.03512.50
5.4.310.0080.03612.50
5.4.300.0060.04112.50
5.4.290.0110.04912.50
5.4.280.0080.04612.40
5.4.270.0080.04712.39
5.4.260.0050.05112.40
5.4.250.0040.05512.40
5.4.240.0090.04712.40
5.4.230.0120.04912.39
5.4.220.0120.04512.39
5.4.210.0060.05112.39
5.4.200.0100.04712.39
5.4.190.0070.05112.39
5.4.180.0090.04612.38
5.4.170.0070.05012.40
5.4.160.0110.04512.39
5.4.150.0060.04912.39
5.4.140.0080.05112.07
5.4.130.0100.04412.06
5.4.120.0080.04812.02
5.4.110.0120.03912.02
5.4.100.0090.04512.02
5.4.90.0080.04912.02
5.4.80.0090.05012.02
5.4.70.0080.04912.01
5.4.60.0140.04112.01
5.4.50.0080.05012.01
5.4.40.0110.04412.00
5.4.30.0080.04412.00
5.4.20.0070.04812.00
5.4.10.0090.04312.00
5.4.00.0080.04911.49
5.3.290.0060.04012.80
5.3.280.0080.04812.71
5.3.270.0070.05312.73
5.3.260.0110.04712.72
5.3.250.0060.05312.72
5.3.240.0090.04912.71
5.3.230.0070.05012.71
5.3.220.0100.04612.68
5.3.210.0120.04812.68
5.3.200.0080.04812.68
5.3.190.0060.05112.68
5.3.180.0100.03812.67
5.3.170.0100.03312.67
5.3.160.0090.03612.67
5.3.150.0080.03712.67
5.3.140.0090.03712.66
5.3.130.0070.04412.66
5.3.120.0080.03812.66
5.3.110.0130.04912.66
5.3.100.0120.05712.12
5.3.90.0140.06212.11
5.3.80.0110.04612.09
5.3.70.0060.03912.09
5.3.60.0120.04412.08
5.3.50.0080.03812.03
5.3.40.0060.04012.03
5.3.30.0050.03911.99
5.3.20.0060.03711.77
5.3.10.0060.03811.73
5.3.00.0080.03511.72
5.2.170.0050.0319.23
5.2.160.0050.0299.23
5.2.150.0030.0319.22
5.2.140.0030.0319.22
5.2.130.0050.0339.18
5.2.120.0040.0289.18
5.2.110.0070.0289.19
5.2.100.0030.0309.18
5.2.90.0050.0299.18
5.2.80.0030.0339.18
5.2.70.0080.0279.18
5.2.60.0060.0299.13
5.2.50.0040.0319.10
5.2.40.0080.0259.07
5.2.30.0070.0349.05
5.2.20.0040.0289.04
5.2.10.0040.0288.95
5.2.00.0030.0318.81
5.1.60.0040.0268.09
5.1.50.0050.0278.09
5.1.40.0040.0258.07
5.1.30.0070.0258.42
5.1.20.0040.0288.45
5.1.10.0050.0298.17
5.1.00.0080.0258.17
5.0.50.0010.0256.64
5.0.40.0050.0186.50
5.0.30.0050.0306.32
5.0.20.0040.0196.28
5.0.10.0040.0206.26
5.0.00.0020.0336.25
4.4.90.0030.0164.78
4.4.80.0010.0184.75
4.4.70.0060.0134.75
4.4.60.0020.0174.76
4.4.50.0050.0144.77
4.4.40.0070.0214.71
4.4.30.0030.0154.75
4.4.20.0010.0184.84
4.4.10.0040.0174.85
4.4.00.0020.0264.76
4.3.110.0010.0174.67
4.3.100.0020.0164.66
4.3.90.0010.0164.63
4.3.80.0020.0244.58
4.3.70.0050.0124.63
4.3.60.0050.0124.63
4.3.50.0020.0164.63
4.3.40.0010.0254.54
4.3.30.0010.0173.28
4.3.20.0010.0173.26
4.3.10.0030.0153.22
4.3.00.0000.0277.34

preferences:
50.66 ms | 401 KiB | 5 Q