3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { const TEST = "hjhdshdskhsd"; private $test; public function __construct($testParam = self::TEST) { $this->test = $testParam; } public function getTesting() { return $this->test; } } $t = new Test(); echo $t->getTesting();

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.0090.00618.09
8.3.60.0140.00318.28
8.3.50.0090.00922.11
8.3.40.0070.00718.78
8.3.30.0070.01419.04
8.3.20.0040.00420.33
8.3.10.0060.00321.77
8.3.00.0000.00819.20
8.2.180.0040.01418.41
8.2.170.0090.00622.96
8.2.160.0140.00020.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00021.06
8.2.110.0120.00922.13
8.2.100.0030.00917.78
8.2.90.0040.00417.63
8.2.80.0040.00418.75
8.2.70.0050.00317.93
8.2.60.0080.00018.16
8.2.50.0040.00418.10
8.2.40.0050.00521.02
8.2.30.0070.00019.15
8.2.20.0030.00517.57
8.2.10.0030.00518.00
8.2.00.0030.00517.68
8.1.280.0070.01525.92
8.1.270.0060.00918.99
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00623.91
8.1.230.0040.00817.75
8.1.220.0040.00417.78
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.13
8.1.180.0040.00418.93
8.1.170.0060.00318.57
8.1.160.0040.00419.02
8.1.150.0040.00318.75
8.1.140.0030.00617.30
8.1.130.0090.00017.81
8.1.120.0000.00717.46
8.1.110.0000.00717.42
8.1.100.0040.00417.42
8.1.90.0070.00017.35
8.1.80.0070.00017.39
8.1.70.0000.00717.44
8.1.60.0030.00617.61
8.1.50.0080.00017.45
8.1.40.0000.00817.55
8.1.30.0080.00017.65
8.1.20.0050.00217.54
8.1.10.0090.00017.62
8.1.00.0000.00917.57
8.0.300.0040.00418.77
8.0.290.0000.00816.62
8.0.280.0080.00018.45
8.0.270.0040.00417.17
8.0.260.0000.00717.36
8.0.250.0000.00716.86
8.0.240.0030.00316.95
8.0.230.0070.00016.90
8.0.220.0030.00316.82
8.0.210.0000.00616.71
8.0.200.0000.00716.82
8.0.190.0000.00716.93
8.0.180.0000.00716.84
8.0.170.0040.00416.83
8.0.160.0030.00316.79
8.0.150.0030.00316.68
8.0.140.0000.00816.68
8.0.130.0060.00013.23
8.0.120.0080.00016.81
8.0.110.0030.00516.83
8.0.100.0000.00816.65
8.0.90.0030.00516.71
8.0.80.0150.00616.72
8.0.70.0030.00516.77
8.0.60.0040.00416.82
8.0.50.0070.00016.76
8.0.30.0110.01217.00
8.0.20.0110.01017.42
8.0.10.0080.00016.75
8.0.00.0120.00816.66
7.4.330.0030.00315.06
7.4.320.0030.00316.50
7.4.300.0000.00616.61
7.4.290.0000.00716.50
7.4.280.0070.00016.48
7.4.270.0030.00316.41
7.4.260.0000.00716.64
7.4.250.0040.00416.61
7.4.240.0050.00216.62
7.4.230.0000.00716.62
7.4.220.0030.01516.40
7.4.210.0070.00716.59
7.4.200.0030.00316.25
7.4.160.0000.01616.49
7.4.150.0120.00617.40
7.4.140.0090.00917.86
7.4.130.0070.01016.55
7.4.120.0160.00816.40
7.4.110.0090.00916.26
7.4.100.0100.00916.46
7.4.90.0070.01016.57
7.4.80.0110.00519.39
7.4.70.0110.00416.53
7.4.60.0030.01316.60
7.4.50.0080.00016.61
7.4.40.0070.01016.42
7.4.30.0070.01116.49
7.4.00.0030.01314.79
7.3.330.0000.00613.24
7.3.320.0000.00513.23
7.3.310.0070.00016.28
7.3.300.0000.00616.22
7.3.290.0100.00616.27
7.3.280.0090.00916.25
7.3.270.0110.00717.40
7.3.260.0110.00616.30
7.3.250.0090.00916.33
7.3.240.0150.00316.28
7.3.230.0140.00716.45
7.3.210.0060.01116.19
7.3.200.0100.00619.39
7.3.190.0090.00616.31
7.3.180.0060.01116.37
7.3.170.0030.01216.40
7.3.160.0040.01216.29
7.2.330.0140.00516.70
7.2.320.0100.00916.83
7.2.310.0100.00716.61
7.2.300.0150.00816.75
7.2.290.0090.01316.76
7.2.00.0000.01119.38
7.1.100.0180.00615.89
7.1.70.0120.00416.94
7.1.60.0060.01619.22
7.1.50.0100.00716.90
7.1.00.0070.07322.51
7.0.200.0030.01016.76
7.0.140.0000.07321.92
7.0.110.0070.08019.94
7.0.100.0130.04019.95
7.0.90.0000.05719.96
7.0.80.0130.06720.09
7.0.70.0100.08019.98
7.0.60.0070.08020.03
7.0.50.0100.08020.34
7.0.40.0030.08320.06
7.0.30.0030.09020.06
7.0.20.0030.07720.22
7.0.10.0030.06020.04
7.0.00.0130.07020.19
5.6.280.0000.07721.16
5.6.250.0070.06720.69
5.6.240.0130.07320.63
5.6.230.0170.06320.65
5.6.220.0100.07720.61
5.6.210.0170.06020.57
5.6.200.0100.07020.96
5.6.190.0130.08021.12
5.6.180.0070.08021.22
5.6.170.0000.07321.13
5.6.160.0070.07721.04
5.6.150.0130.07721.27
5.6.140.0000.08021.15
5.6.130.0170.06321.15
5.6.120.0070.06721.29
5.6.110.0070.08021.26
5.6.100.0170.07320.98
5.6.90.0170.07320.95
5.6.80.0070.08020.54
5.6.70.0000.08320.53
5.6.60.0070.07020.52
5.6.50.0070.08020.51
5.6.40.0130.07020.41
5.6.30.0070.04720.30
5.6.20.0130.07020.47
5.6.10.0130.07020.50
5.6.00.0130.04020.43
5.5.380.0070.07720.55
5.5.370.0030.06320.38
5.5.360.0170.06320.44
5.5.350.0170.07320.39
5.5.340.0070.08020.79
5.5.330.0130.04321.05
5.5.320.0030.08320.82
5.5.310.0100.04320.90
5.5.300.0100.07720.94
5.5.290.0170.08320.78
5.5.280.0100.07720.83
5.5.270.0130.07720.80
5.5.260.0070.06720.77
5.5.250.0030.08720.84
5.5.240.0100.07720.28
5.5.230.0070.07720.27
5.5.220.0100.07020.29
5.5.210.0030.08320.27
5.5.200.0070.05320.26
5.5.190.0100.05720.25
5.5.180.0070.05020.22
5.5.160.0100.07320.30
5.5.150.0100.07020.16
5.5.140.0070.04320.34
5.5.130.0100.04320.16
5.5.120.0130.07020.30
5.5.110.0000.09020.21
5.5.100.0100.06720.15
5.5.90.0070.07020.14
5.5.80.0130.07020.26
5.5.70.0030.07020.20
5.5.60.0070.07320.18
5.5.50.0100.06720.10
5.5.40.0030.07720.24
5.5.30.0030.07720.05
5.5.20.0070.07020.26
5.5.10.0070.05020.19
5.5.00.0100.07720.24
5.4.450.0070.06319.31
5.4.440.0130.07719.27
5.4.430.0100.05719.63
5.4.420.0030.07719.32
5.4.410.0000.08019.34
5.4.400.0100.06319.01
5.4.390.0070.07719.18
5.4.380.0030.04019.01
5.4.370.0130.03718.99
5.4.360.0100.07319.01
5.4.350.0030.08018.97
5.4.340.0030.07719.04
5.4.320.0100.07319.09
5.4.310.0100.07019.32
5.4.300.0030.08319.10
5.4.290.0030.08019.31
5.4.280.0070.07719.31
5.4.270.0170.07319.08
5.4.260.0070.07719.24
5.4.250.0030.07719.04
5.4.240.0100.04719.31
5.4.230.0000.06019.01
5.4.220.0070.07719.00
5.4.210.0100.06319.00
5.4.200.0130.07019.01
5.4.190.0030.05019.17
5.4.180.0100.06019.08
5.4.170.0130.06018.94
5.4.160.0100.07719.00
5.4.150.0070.04719.08
5.4.140.0130.05716.39
5.4.130.0100.07316.35
5.4.120.0100.05316.46
5.4.110.0130.06316.26
5.4.100.0030.06716.50
5.4.90.0070.05016.55
5.4.80.0070.04016.56
5.4.70.0030.07016.54
5.4.60.0030.07716.39
5.4.50.0030.05716.29
5.4.40.0030.06316.57
5.4.30.0070.07316.44
5.4.20.0100.06316.39
5.4.10.0070.07316.53
5.4.00.0170.06315.77
5.3.290.0100.08014.69
5.3.280.0100.06714.73
5.3.270.0100.07714.63
5.3.260.0100.07314.61
5.3.250.0070.05714.69
5.3.240.0130.07014.59
5.3.230.0070.05014.72
5.3.220.0100.05714.58
5.3.210.0100.06714.57
5.3.200.0030.06014.55
5.3.190.0070.08014.60
5.3.180.0030.08014.69
5.3.170.0070.07014.59
5.3.160.0030.08014.55
5.3.150.0000.05314.70
5.3.140.0000.04314.63
5.3.130.0100.06714.52
5.3.120.0100.07014.67
5.3.110.0070.07314.55
5.3.100.0070.07014.04
5.3.90.0070.07014.00
5.3.80.0100.07014.11
5.3.70.0070.03714.04
5.3.60.0000.07314.02
5.3.50.0070.06713.96
5.3.40.0170.06314.01
5.3.30.0030.06014.04
5.3.20.0000.08013.70
5.3.10.0070.05713.80
5.3.00.0030.07013.77
5.2.170.0130.05311.16
5.2.160.0070.06011.14
5.2.150.0070.06011.17
5.2.140.0030.06311.23
5.2.130.0000.06311.19
5.2.120.0030.06011.18
5.2.110.0000.06011.14
5.2.100.0070.03011.10
5.2.90.0070.05711.09
5.2.80.0030.05011.10
5.2.70.0030.06711.23
5.2.60.0070.03311.05
5.2.50.0070.05011.02
5.2.40.0030.05711.00
5.2.30.0070.06011.05
5.2.20.0100.05710.93
5.2.10.0030.06310.94
5.2.00.0000.06310.86
5.1.60.0070.05010.06
5.1.50.0030.05710.16
5.1.40.0030.0509.95
5.1.30.0000.05710.31
5.1.20.0030.05710.35
5.1.10.0030.05710.05
5.1.00.0070.04710.05
5.0.50.0170.0338.61
5.0.40.0000.0408.49
5.0.30.0030.0638.22
5.0.20.0000.0438.37
5.0.10.0030.0408.17
5.0.00.0000.0608.14
4.4.90.0000.0307.91
4.4.80.0030.0337.91
4.4.70.0030.0377.91
4.4.60.0070.0307.91
4.4.50.0070.0337.91
4.4.40.0000.0537.91
4.4.30.0030.0207.91
4.4.20.0070.0307.91
4.4.10.0030.0337.91
4.4.00.0130.0407.91
4.3.110.0070.0237.91
4.3.100.0070.0307.91
4.3.90.0030.0337.91
4.3.80.0030.0537.91
4.3.70.0030.0307.91
4.3.60.0030.0337.91
4.3.50.0030.0377.91
4.3.40.0030.0437.91
4.3.30.0030.0277.91
4.3.20.0000.0277.91
4.3.10.0070.0307.91
4.3.00.0000.0377.91

preferences:
49.56 ms | 401 KiB | 5 Q