3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ protected $stuff; function setStuff(int $foo){ $this->stuff = $foo; } function getStuff(): int{ return $this->stuff; } } $x = new A; var_export($x);

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.0110.00416.38
8.3.50.0070.01017.80
8.3.40.0040.01118.55
8.3.30.0110.00418.29
8.3.20.0070.00020.39
8.3.10.0080.00023.48
8.3.00.0040.00419.26
8.2.180.0070.01118.41
8.2.170.0060.01222.96
8.2.160.0070.00720.38
8.2.150.0070.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00819.23
8.2.110.0030.00620.39
8.2.100.0120.00017.78
8.2.90.0050.00519.22
8.2.80.0000.00917.97
8.2.70.0040.00417.50
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0040.00419.34
8.2.30.0030.00620.64
8.2.20.0050.00317.61
8.2.10.0000.00817.98
8.2.00.0020.00517.99
8.1.280.0100.01025.92
8.1.270.0050.00523.97
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00023.72
8.1.230.0090.00320.93
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0060.00317.00
8.1.180.0000.00718.10
8.1.170.0040.00418.65
8.1.160.0030.00321.83
8.1.150.0070.00018.69
8.1.140.0050.00319.49
8.1.130.0030.00317.51
8.1.120.0040.00417.30
8.1.110.0030.00617.29
8.1.100.0040.00417.30
8.1.90.0000.00717.41
8.1.80.0030.00417.34
8.1.70.0000.00717.32
8.1.60.0040.00417.49
8.1.50.0070.00017.35
8.1.40.0030.00617.29
8.1.30.0000.00817.56
8.1.20.0040.00417.63
8.1.10.0030.00617.53
8.1.00.0030.00717.41
8.0.300.0060.00318.77
8.0.290.0000.00716.63
8.0.280.0000.00718.34
8.0.270.0070.00017.11
8.0.260.0000.00618.42
8.0.250.0000.00816.75
8.0.240.0000.00716.76
8.0.230.0000.00716.95
8.0.220.0000.00716.69
8.0.210.0000.00816.72
8.0.200.0000.00816.78
8.0.190.0060.00316.79
8.0.180.0040.00416.84
8.0.170.0030.00316.87
8.0.160.0030.00316.74
8.0.150.0070.00016.79
8.0.140.0000.00716.71
8.0.130.0030.00313.23
8.0.120.0040.00416.79
8.0.110.0040.00416.85
8.0.100.0000.00716.85
8.0.90.0040.00416.77
8.0.80.0040.01116.73
8.0.70.0050.00216.89
8.0.60.0070.00016.86
8.0.50.0040.00416.69
8.0.30.0090.00716.94
8.0.20.0120.00717.40
8.0.10.0070.00016.82
8.0.00.0110.00716.72
7.4.330.0050.00015.08
7.4.320.0000.00716.44
7.4.300.0000.00616.54
7.4.290.0000.00716.55
7.4.280.0050.00316.51
7.4.270.0000.00716.34
7.4.260.0030.00316.53
7.4.250.0040.00416.49
7.4.240.0040.00416.47
7.4.230.0040.00416.64
7.4.220.0080.00816.37
7.4.210.0140.00416.38
7.4.200.0070.00016.45
7.4.160.0070.01016.38
7.4.150.0030.02017.40
7.4.140.0160.00517.86
7.4.130.0080.01216.36
7.4.120.0070.01116.53
7.4.110.0110.01016.44
7.4.100.0110.00816.57
7.4.90.0060.00916.39
7.4.80.0080.00819.39
7.4.70.0060.01016.26
7.4.60.0090.00916.40
7.4.50.0060.00316.22
7.4.40.0100.00616.37
7.4.30.0230.00016.35
7.4.00.0070.00914.87
7.3.330.0000.00513.04
7.3.320.0030.00313.10
7.3.310.0080.00016.18
7.3.300.0000.00716.09
7.3.290.0030.00316.19
7.3.280.0080.01016.17
7.3.270.0070.01017.40
7.3.260.0090.00916.57
7.3.250.0040.01216.23
7.3.240.0070.01316.30
7.3.230.0060.00916.55
7.3.210.0030.01416.04
7.3.200.0090.01216.15
7.3.190.0110.00816.28
7.3.180.0100.00616.20
7.3.170.0120.00916.27
7.3.160.0040.01516.36
7.3.120.0060.01114.62
7.3.110.0070.01114.44
7.3.100.0050.00714.78
7.3.90.0110.00514.73
7.3.80.0030.00814.85
7.3.70.0070.00814.33
7.3.60.0060.00814.67
7.3.50.0070.00514.70
7.3.40.0030.01014.65
7.3.30.0070.00714.75
7.3.20.0060.00816.24
7.3.10.0110.00316.44
7.3.00.0080.00716.32
7.2.330.0120.00616.27
7.2.320.0070.01116.50
7.2.310.0090.01216.33
7.2.300.0100.00816.21
7.2.290.0120.00716.51
7.2.250.0090.00814.77
7.2.240.0080.00714.72
7.2.230.0030.01114.90
7.2.220.0050.00814.85
7.2.210.0050.00814.60
7.2.200.0020.01214.98
7.2.190.0050.00714.76
7.2.180.0050.00814.92
7.2.170.0030.00814.80
7.2.60.0000.01116.79
7.2.00.0070.00719.13
7.1.330.0090.00615.45
7.1.320.0040.00615.75
7.1.310.0040.00515.76
7.1.300.0080.00515.65
7.1.290.0050.00615.81
7.1.280.0040.01215.74
7.1.270.0040.00415.52
7.1.260.0060.00715.65
7.1.200.0100.00315.49
7.1.100.0170.00018.19
7.1.70.0040.00417.10
7.1.60.0100.01319.43
7.1.50.0080.00416.90
7.1.00.0100.07022.33
7.0.200.0790.00314.84
7.0.60.0130.07719.96
7.0.50.0030.04017.90
7.0.40.0170.05020.30
7.0.30.0200.05020.30
7.0.20.0170.04720.30
7.0.10.0030.09020.06
7.0.00.0030.04320.05
5.6.280.0000.06321.14
5.6.210.0130.07720.72
5.6.200.0030.07318.13
5.6.190.0170.07720.42
5.6.180.0400.07720.61
5.6.170.0270.04020.58
5.6.160.0070.04020.54
5.6.150.0070.08018.18
5.6.140.0100.07718.21
5.6.130.0070.08318.15
5.6.120.0070.07020.91
5.6.110.0200.06721.00
5.6.100.0130.08020.97
5.6.90.0100.07321.04
5.6.80.0170.07320.38
5.5.350.0330.07720.33
5.5.340.0100.08017.94
5.5.330.0070.05320.38
5.5.320.0270.08020.24
5.5.310.0270.07020.27
5.5.300.0170.06717.95
5.5.290.0100.03318.04
5.5.280.0030.06020.74
5.5.270.0100.07020.90
5.5.260.0070.04020.88
5.5.250.0030.05020.72
5.5.240.0100.06320.28
5.4.450.0170.05719.30
5.4.440.0100.06319.58
5.4.430.0230.04719.56
5.4.420.0100.06019.46
5.4.410.0330.06719.16
5.4.400.0130.05319.04
5.4.390.0270.04719.23
5.4.380.0200.05319.23
5.4.370.0100.05718.97
5.4.360.0100.05718.88
5.4.350.0100.05319.23
5.4.340.0070.06019.23
5.4.320.0200.04719.31
5.4.310.0130.05319.15
5.4.300.0130.05319.28
5.4.290.0270.04019.11
5.4.280.0200.05319.11
5.4.270.0230.05319.27
5.4.260.0200.05019.15
5.4.250.0130.06319.04
5.4.240.0200.05719.00
5.4.230.0130.05319.10
5.4.220.0230.04719.02
5.4.210.0270.07318.86
5.4.200.0130.05319.25
5.4.190.0130.05719.21
5.4.180.0200.05019.12
5.4.170.0130.05319.10
5.4.160.0170.05319.34
5.4.150.0230.04719.23
5.4.140.0170.04716.31
5.4.130.0130.04716.34
5.4.120.0200.04716.55
5.4.110.0200.06716.28
5.4.100.0100.05716.67
5.4.90.0130.05716.59
5.4.80.0230.05316.59
5.4.70.0130.05316.55
5.4.60.0230.06316.57
5.4.50.0170.05716.61
5.4.40.0230.04016.59
5.4.30.0130.05016.39
5.4.20.0270.05316.25
5.4.10.0200.05016.48
5.4.00.0100.05316.15

preferences:
67.59 ms | 400 KiB | 5 Q