3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $var; function __construct($var) { $this->var = $var; } public function printVar() { echo $this->var; } } (new Test(5))->printVar();

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.0040.01116.50
8.3.50.0140.00822.11
8.3.40.0130.00318.84
8.3.30.0070.00718.58
8.3.20.0040.00421.90
8.3.10.0080.00021.77
8.3.00.0040.00419.85
8.2.180.0140.00716.38
8.2.170.0090.00922.96
8.2.160.0070.00719.07
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00526.16
8.2.120.0080.00021.05
8.2.110.0060.00319.27
8.2.100.0090.00318.09
8.2.90.0080.00019.05
8.2.80.0080.00017.97
8.2.70.0030.00717.38
8.2.60.0050.00318.03
8.2.50.0040.00418.10
8.2.40.0040.00422.27
8.2.30.0090.00319.30
8.2.20.0000.00717.61
8.2.10.0050.00317.85
8.2.00.0050.00218.11
8.1.280.0130.00925.92
8.1.270.0030.00624.66
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0090.00024.05
8.1.230.0090.00317.71
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0060.00318.55
8.1.160.0030.00322.15
8.1.150.0040.00418.76
8.1.140.0030.00319.35
8.1.130.0000.00819.09
8.1.120.0000.00717.29
8.1.110.0040.00317.37
8.1.100.0000.00717.27
8.1.90.0000.00817.28
8.1.80.0080.00017.42
8.1.70.0030.00317.43
8.1.60.0040.00417.59
8.1.50.0000.00817.38
8.1.40.0040.00417.55
8.1.30.0000.00817.63
8.1.20.0030.00617.67
8.1.10.0000.00717.56
8.1.00.0060.00317.41
8.0.300.0050.00218.77
8.0.290.0040.00416.58
8.0.280.0070.00018.50
8.0.270.0120.00017.25
8.0.260.0000.00716.74
8.0.250.0040.00416.98
8.0.240.0030.00316.79
8.0.230.0000.00716.78
8.0.220.0070.00016.64
8.0.210.0040.00416.63
8.0.200.0060.00016.71
8.0.190.0000.00816.86
8.0.180.0000.00716.79
8.0.170.0040.00416.66
8.0.160.0040.00416.75
8.0.150.0070.00016.65
8.0.140.0070.00016.62
8.0.130.0030.00313.14
8.0.120.0040.00416.69
8.0.110.0000.00716.73
8.0.100.0000.00716.77
8.0.90.0000.00716.87
8.0.80.0030.01316.81
8.0.70.0040.00416.88
8.0.60.0000.00716.81
8.0.50.0000.00816.63
8.0.30.0100.01016.92
8.0.20.0100.00917.40
8.0.10.0040.00416.98
8.0.00.0110.00816.95
7.4.330.0000.00515.08
7.4.320.0060.00016.38
7.4.300.0000.00616.38
7.4.290.0000.00716.49
7.4.280.0040.00416.48
7.4.270.0070.00016.50
7.4.260.0070.00016.42
7.4.250.0040.00416.39
7.4.240.0030.00316.50
7.4.230.0030.00316.38
7.4.220.0060.01216.54
7.4.210.0100.01016.51
7.4.200.0080.00016.44
7.4.160.0100.00516.31
7.4.150.0100.01317.40
7.4.140.0070.01017.86
7.4.130.0090.00816.50
7.4.120.0070.00916.42
7.4.110.0080.01116.50
7.4.100.0130.00316.30
7.4.90.0090.00916.31
7.4.80.0130.00319.39
7.4.70.0070.01316.46
7.4.60.0130.00316.48
7.4.50.0090.00616.30
7.4.40.0040.01516.34
7.4.30.0140.00316.26
7.4.00.0070.00714.93
7.3.330.0000.00613.23
7.3.320.0060.00013.23
7.3.310.0070.00016.26
7.3.300.0070.00016.07
7.3.290.0030.01216.21
7.3.280.0090.00816.21
7.3.270.0040.01517.40
7.3.260.0110.00716.25
7.3.250.0080.01016.45
7.3.240.0120.00816.35
7.3.230.0100.01116.39
7.3.210.0080.00816.10
7.3.200.0130.01016.37
7.3.190.0130.00316.25
7.3.180.0100.01016.54
7.3.170.0100.00616.38
7.3.160.0110.01116.49
7.2.330.0100.01016.68
7.2.320.0060.01216.69
7.2.310.0070.01416.61
7.2.300.0100.00716.70
7.2.290.0100.00916.74
7.2.60.0070.01016.69
7.2.00.0000.00919.55
7.1.200.0030.00715.79
7.1.70.0060.00616.54
7.1.60.0000.01419.75
7.1.00.0000.08022.36
7.0.200.0200.01014.68
7.0.90.0100.06320.04
7.0.80.0070.06720.12
7.0.70.0170.05319.88
7.0.60.0100.06320.03
7.0.50.0170.06720.26
7.0.40.0130.07320.33
7.0.30.0070.07720.33
7.0.20.0170.05720.45
7.0.10.0170.06320.38
7.0.00.0230.06020.34
5.6.240.0100.08020.79
5.6.230.0100.06320.68
5.6.220.0070.06320.75
5.6.210.0170.05320.70
5.6.200.0230.06721.12
5.6.190.0170.06021.07
5.6.180.0130.06021.02
5.6.170.0230.07021.03
5.6.160.0300.06321.12
5.6.150.0170.06021.08
5.6.140.0130.05721.09
5.6.130.0200.05721.09
5.6.120.0200.05321.09
5.6.110.0070.06721.09
5.6.100.0170.06021.19
5.6.90.0170.07721.09
5.6.80.0070.05720.45
5.6.70.0130.05320.56
5.6.60.0130.06020.45
5.6.50.0170.05720.46
5.6.40.0100.06320.50
5.6.30.0170.05020.45
5.6.20.0100.05720.39
5.6.10.0170.05720.42
5.6.00.0100.05720.43

preferences:
66.76 ms | 401 KiB | 5 Q