3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AnnotatedClass { public int $x; private string $s; protected array $arr; public AnotherClass $ac; function bar(string $str, bool $b): float { if ($b && $str === "Hi") { return 3.2; } return 0.3; } }

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.0030.01718.43
8.3.50.0140.00722.00
8.3.40.0030.01718.64
8.3.30.0100.00319.14
8.3.20.0050.00220.30
8.3.10.0090.00020.07
8.3.00.0060.00319.04
8.2.180.0070.01416.32
8.2.170.0040.01422.96
8.2.160.0070.00720.38
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.18
8.2.110.0030.00622.08
8.2.100.0030.00917.78
8.2.90.0000.00719.09
8.2.80.0040.00417.97
8.2.70.0060.00317.47
8.2.60.0000.00817.80
8.2.50.0000.00818.07
8.2.40.0000.00717.94
8.2.30.0070.00019.33
8.2.20.0070.00017.44
8.2.10.0030.00517.94
8.2.00.0000.00717.49
8.1.280.0110.00425.92
8.1.270.0030.00622.14
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0080.00022.05
8.1.230.0040.00819.00
8.1.220.0080.00017.74
8.1.210.0020.00518.77
8.1.200.0070.00317.10
8.1.190.0080.00017.13
8.1.180.0000.00818.10
8.1.170.0000.00818.36
8.1.160.0000.00721.88
8.1.150.0000.00718.74
8.1.140.0040.00417.27
8.1.130.0000.00717.75
8.1.120.0040.00417.25
8.1.110.0040.00417.30
8.1.100.0030.00317.36
8.1.90.0070.00017.33
8.1.80.0040.00417.31
8.1.70.0000.00717.33
8.1.60.0060.00317.34
8.1.50.0030.00517.45
8.1.40.0080.00017.38
8.1.30.0000.00817.55
8.1.20.0000.00717.50
8.1.10.0040.00417.21
8.1.00.0070.00017.29
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0070.00018.24
8.0.270.0040.00417.05
8.0.260.0030.00317.18
8.0.250.0000.00816.88
8.0.240.0070.00016.75
8.0.230.0000.00716.74
8.0.220.0070.00016.70
8.0.210.0000.00716.79
8.0.200.0030.00316.87
8.0.190.0070.00016.85
8.0.180.0040.00416.74
8.0.170.0050.00216.68
8.0.160.0000.00716.75
8.0.150.0030.00316.70
8.0.140.0030.00516.60
8.0.130.0000.00513.16
8.0.120.0000.00716.77
8.0.110.0000.00716.83
8.0.100.0070.00016.73
8.0.90.0000.00816.64
8.0.80.0040.01316.74
8.0.70.0050.00216.81
8.0.60.0040.00416.80
8.0.50.0080.00016.56
8.0.30.0170.00616.96
8.0.20.0090.01017.40
8.0.10.0050.00316.93
8.0.00.0070.01216.45
7.4.330.0020.00215.00
7.4.320.0000.00616.38
7.4.300.0000.00616.45
7.4.290.0000.00816.43
7.4.280.0080.00016.32
7.4.270.0000.00616.33
7.4.260.0030.00316.47
7.4.250.0040.00416.36
7.4.240.0020.00516.40
7.4.230.0070.00016.29
7.4.220.0070.01016.25
7.4.210.0110.00816.25
7.4.200.0000.00716.56
7.4.160.0120.00316.41
7.4.150.0100.01017.40
7.4.140.0110.00817.86
7.4.130.0100.00716.29
7.4.120.0100.00916.43
7.4.110.0100.00716.33
7.4.100.0070.01116.30
7.4.90.0070.01016.48
7.4.80.0100.01319.39
7.4.70.0090.00916.18
7.4.60.0100.00616.28
7.4.50.0040.00416.31
7.4.40.0080.00816.42
7.4.30.0090.01116.36
7.3.330.0030.00313.23
7.3.320.0050.00013.00
7.3.310.0000.00616.02
7.3.300.0030.00316.15
7.3.290.0030.01016.22
7.3.280.0060.01116.13
7.3.270.0100.00717.40
7.3.260.0110.00716.10
7.3.250.0090.01016.27
7.3.240.0100.00816.18
7.3.230.0120.00416.39
7.3.210.0110.00716.28
7.3.200.0140.00319.39
7.3.190.0070.01016.17
7.3.180.0120.00316.09
7.3.170.0040.01116.36
7.3.160.0090.01216.27
7.2.330.0100.00716.32
7.2.320.0090.00916.49
7.2.310.0120.00616.30
7.2.300.0150.00316.46
7.2.290.0160.00616.10
5.4.320.0100.03612.51
5.4.310.0100.04412.50
5.4.300.0040.04312.51
5.4.290.0070.04612.51
5.4.280.0060.04612.40
5.4.270.0060.04012.40
5.4.260.0050.04512.40
5.4.250.0060.03912.40
5.4.240.0060.03712.40
5.4.230.0060.04012.39
5.4.220.0050.04212.39
5.4.210.0040.04112.39
5.4.200.0080.03612.39
5.4.190.0060.03512.39
5.4.180.0030.03812.39
5.4.170.0030.03912.40
5.4.160.0070.03512.39
5.4.150.0100.03312.39
5.4.140.0040.03912.08
5.4.130.0090.03312.06
5.4.120.0040.03912.02
5.4.110.0080.03512.02
5.4.100.0080.03312.02
5.4.90.0100.03412.02
5.4.80.0020.04112.02
5.4.70.0070.03412.02
5.4.60.0080.03312.02
5.4.50.0070.03512.02
5.4.40.0040.03612.00
5.4.30.0030.03812.00
5.4.20.0050.03612.00
5.4.10.0040.03712.00
5.4.00.0050.03611.50
5.3.290.0050.04212.80
5.3.280.0090.03512.71
5.3.270.0050.04112.73
5.3.260.0050.04112.72
5.3.250.0090.03512.72
5.3.240.0060.03812.72
5.3.230.0100.03612.70
5.3.220.0080.03712.68
5.3.210.0080.03912.68
5.3.200.0080.03512.68
5.3.190.0060.03812.68
5.3.180.0100.03612.68
5.3.170.0070.03712.67
5.3.160.0080.03512.67
5.3.150.0040.03912.67
5.3.140.0050.03712.66
5.3.130.0090.03912.66
5.3.120.0060.04412.66
5.3.110.0120.04112.65
5.3.100.0050.03912.12
5.3.90.0100.03512.10
5.3.80.0100.03712.09
5.3.70.0050.04212.09
5.3.60.0080.03712.07
5.3.50.0050.03612.02
5.3.40.0070.04112.02
5.3.30.0170.03911.98
5.3.20.0180.03811.76
5.3.10.0130.03611.73
5.3.00.0140.03811.71
5.2.170.0090.0349.22
5.2.160.0060.0299.21
5.2.150.0070.0299.21
5.2.140.0110.0289.20
5.2.130.0060.0359.17
5.2.120.0070.0299.17
5.2.110.0080.0339.18
5.2.100.0080.0339.17
5.2.90.0040.0399.18
5.2.80.0050.0339.17
5.2.70.0080.0319.17
5.2.60.0080.0279.13
5.2.50.0050.0329.09
5.2.40.0090.0299.06
5.2.30.0080.0319.05
5.2.20.0090.0329.03
5.2.10.0080.0298.94
5.2.00.0030.0318.80
5.1.60.0050.0248.09
5.1.50.0050.0338.08
5.1.40.0050.0258.07
5.1.30.0060.0268.41
5.1.20.0070.0248.43
5.1.10.0070.0248.16
5.1.00.0060.0258.16
5.0.50.0080.0176.64
5.0.40.0040.0236.50
5.0.30.0030.0346.31
5.0.20.0040.0276.27
5.0.10.0060.0226.25
5.0.00.0060.0326.25
4.4.90.0020.0284.78
4.4.80.0060.0154.75
4.4.70.0040.0144.76
4.4.60.0040.0134.76
4.4.50.0030.0254.77
4.4.40.0070.0274.70
4.4.30.0080.0214.76
4.4.20.0050.0244.84
4.4.10.0020.0224.85
4.4.00.0030.0274.76
4.3.110.0030.0194.67
4.3.100.0040.0184.66
4.3.90.0010.0164.63
4.3.80.0030.0284.58
4.3.70.0030.0224.63
4.3.60.0030.0204.63
4.3.50.0060.0154.63
4.3.40.0020.0284.54
4.3.30.0030.0193.30
4.3.20.0010.0163.28
4.3.10.0030.0203.24
4.3.00.0170.02016.72

preferences:
41.78 ms | 401 KiB | 5 Q