3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Number { private int|float $number; public function setNumber(int|float $number): void { $this->number = $number; } public function getNumber(): int|float { return $this->number; } }

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.4.10.0100.01019.30
8.3.140.0070.00016.48
8.3.130.0040.00418.37
8.3.120.0060.01218.90
8.3.110.0030.00616.63
8.3.100.0040.00424.06
8.3.90.0120.00626.77
8.3.80.0080.00319.36
8.3.70.0070.01118.30
8.3.60.0140.00716.50
8.3.50.0090.00824.43
8.3.40.0120.00318.71
8.3.30.0090.00618.60
8.3.20.0000.00724.18
8.3.10.0050.00324.66
8.3.00.0050.00226.16
8.2.250.0140.00016.31
8.2.240.0040.00718.74
8.2.230.0000.00820.94
8.2.220.0040.01537.54
8.2.210.0080.00026.77
8.2.200.0030.00618.88
8.2.190.0070.01416.58
8.2.180.0160.00625.92
8.2.170.0150.00018.83
8.2.160.0100.00722.96
8.2.150.0030.00525.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.23
8.2.110.0040.00420.43
8.2.100.0030.00720.49
8.1.300.0040.00416.18
8.1.290.0030.00630.84
8.1.280.0110.00425.92
8.1.270.0050.00323.99
8.1.260.0160.00326.35
8.1.250.0070.01028.09
8.1.240.0090.00020.38
8.1.230.0070.00318.45
8.0.00.0120.01216.50
7.4.130.0080.01316.58
7.4.120.0170.00916.36
7.4.110.0110.00916.25
7.4.100.0140.00916.29
7.4.90.0140.00516.35
7.4.80.0090.01116.36
7.4.70.0120.00916.26
7.4.60.0130.00916.27
7.4.50.0110.00916.32
7.4.40.0110.00916.26
7.4.30.0110.01016.28
7.4.20.0120.00916.26
7.4.10.0100.01016.25
7.4.00.0100.00916.34
7.3.250.0150.00916.34
7.3.240.0100.01416.41
7.3.230.0120.00616.35
7.3.220.0110.00916.24
7.3.210.0090.01116.25
7.3.200.0130.00616.34
7.3.190.0110.01116.17
7.3.180.0110.00916.21
7.3.170.0100.00916.21
7.3.160.0100.01016.20
7.3.150.0120.00916.20
7.3.140.0110.00916.20
7.3.130.0110.00916.18
7.3.120.0120.00916.18
7.3.110.0110.00916.18
7.3.100.0110.00916.17
7.3.90.0110.00916.19
7.3.80.0120.00916.17
7.3.70.0110.00916.14
7.3.60.0120.00916.13
7.3.50.0110.01016.15
7.3.40.0110.00916.16
7.3.30.0120.00916.16
7.3.20.0120.00916.27
7.3.10.0130.00816.28
7.3.00.0120.01016.25
7.2.340.0190.00716.24
7.2.330.0130.00616.33
7.2.320.0120.00916.39
7.2.310.0110.01016.29
7.2.300.0100.01016.33
7.2.290.0110.01016.31
7.2.280.0110.01016.29
7.2.270.0110.01016.28
7.2.260.0120.00916.27
7.2.250.0120.00916.31
7.2.240.0110.01016.27
7.2.230.0110.01016.29
7.2.220.0110.01016.28
7.2.210.0110.01016.27
7.2.200.0110.01016.26
7.2.190.0110.00916.26
7.2.180.0130.00916.23
7.2.170.0110.01116.26
7.2.160.0110.01016.30
7.2.150.0150.00916.44
7.2.140.0140.01016.45
7.2.130.0150.00916.42
7.2.120.0140.00816.36
7.2.110.0130.01016.43
7.2.100.0130.00916.40
7.2.90.0150.01016.38
7.2.80.0150.01016.39
7.2.70.0130.01016.35
7.2.60.0140.01016.38
7.2.50.0130.01016.36
7.2.40.0130.01016.41
7.2.30.0160.00916.44
7.2.20.0120.01116.40
7.2.10.0130.01016.43
7.2.00.0120.01016.41
7.1.330.0240.01215.38
7.1.320.0220.01115.41
7.1.310.0300.01015.48
7.1.300.0270.00815.46
7.1.290.0270.01015.25
7.1.280.0240.00715.22
7.1.270.0290.00715.12
7.1.260.0210.01215.18
7.1.250.0210.00715.46
7.1.240.0230.00915.27
7.1.230.0220.01615.19
7.1.220.0260.01215.20
7.1.210.0290.00615.29
7.1.200.0250.00915.29
7.1.190.0990.00315.13
7.1.180.1130.01315.25
7.1.170.0220.01415.15
7.1.160.0220.01115.27
7.1.150.0190.00915.40
7.1.140.0210.01115.48
7.1.130.0230.01015.36
7.1.120.0190.01115.16
7.1.110.0220.01115.36
7.1.100.0250.01215.38
7.1.90.0590.00915.17
7.1.80.0210.00915.14
7.1.70.0170.01415.34
7.1.60.0210.01015.16
7.1.50.0180.01215.29
7.1.40.0180.00915.53
7.1.30.0300.00515.47
7.1.20.0320.00015.32
7.1.10.0260.00815.42
7.1.00.0290.00715.35
7.0.330.0170.01015.03
7.0.320.0240.00814.86
7.0.310.0250.00715.03
7.0.300.0190.01014.95
7.0.290.0260.00915.02
7.0.280.0330.00014.89
7.0.270.0170.01414.96
7.0.260.0280.00715.24
7.0.250.0240.00715.07
7.0.240.0250.00914.92
7.0.230.0230.01015.03
7.0.220.0270.00714.97
7.0.210.0220.00715.16
7.0.200.0120.01515.03
7.0.190.0160.01314.98
7.0.180.0180.01114.87
7.0.170.0270.00414.88
7.0.160.0290.00015.07
7.0.150.0200.00815.12
7.0.140.0180.00915.03
7.0.130.0310.00415.21
7.0.120.0260.00314.93
7.0.110.0390.00915.11
7.0.100.0240.00914.99
7.0.90.0210.01414.92
7.0.80.0180.01415.05
7.0.70.0210.00915.13
7.0.60.0130.01614.98
7.0.50.0240.00414.89
7.0.40.0230.00815.09
7.0.30.0190.01014.89
7.0.20.0140.01415.15
7.0.10.0180.01115.05
7.0.00.0210.00714.91
5.6.400.0160.01615.61
5.6.390.0150.01515.67
5.6.380.0220.01615.58
5.6.370.0230.01115.59
5.6.360.0270.00715.66
5.6.350.0220.00915.63
5.6.340.0160.01615.93
5.6.330.0110.02115.81
5.6.320.0300.00815.80
5.6.310.0270.00615.77
5.6.300.0270.00615.97
5.6.290.0210.01415.77
5.6.280.0250.01115.90
5.6.270.0110.01915.67
5.6.260.0240.00615.78
5.6.250.0290.00715.63
5.6.240.0210.01415.65
5.6.230.0120.02115.53
5.6.220.0100.02015.97
5.6.210.0260.00815.53
5.6.200.0210.01615.40
5.6.190.0250.01115.85
5.6.180.0250.01315.73
5.6.170.0150.01615.72
5.6.160.0230.01115.76
5.6.150.0190.01615.94
5.6.140.0230.01015.82
5.6.130.0170.02015.73
5.6.120.0170.02015.84
5.6.110.0310.00615.74
5.6.100.0260.00615.63
5.6.90.0160.01315.41
5.6.80.0180.01415.63
5.6.70.0230.01015.62
5.6.60.0240.00815.54
5.6.50.0270.00315.68
5.6.40.0190.01115.56
5.6.30.0190.01115.52
5.6.20.0170.01115.38
5.6.10.0160.01115.88
5.6.00.0190.01015.56
5.5.380.0220.01015.79
5.5.370.0180.01515.78
5.5.360.0250.00715.72
5.5.350.0180.01015.73
5.5.340.0280.00615.47
5.5.330.0310.00415.67
5.5.320.0180.01215.70
5.5.310.0280.00815.66
5.5.300.0260.00815.73
5.5.290.0320.00715.68
5.5.280.0270.00915.67
5.5.270.0240.01615.43
5.5.260.0280.00715.56
5.5.250.0210.01015.51
5.5.240.0230.01015.65
5.5.230.0290.00715.49
5.5.220.0230.00815.51
5.5.210.0150.01315.59
5.5.200.0250.00315.63
5.5.190.0240.01015.43
5.5.180.0250.00415.50
5.5.170.0160.01515.50
5.5.160.0160.01315.70
5.5.150.0250.00715.76
5.5.140.0210.01115.52
5.5.130.0220.01615.52
5.5.120.0200.01315.86
5.5.110.0200.01215.64
5.5.100.0120.02015.61
5.5.90.0310.00315.55
5.5.80.0170.01415.71
5.5.70.0230.00915.48
5.5.60.0290.00615.52
5.5.50.0240.00315.47
5.5.40.0270.00415.54
5.5.30.0220.01115.68
5.5.20.0130.01915.51
5.5.10.0180.01115.55
5.5.00.0200.01215.41
5.4.450.0200.01012.64
5.4.440.0200.01012.40
5.4.430.0220.00912.36
5.4.420.0130.00912.46
5.4.410.0150.01512.58
5.4.400.0230.00412.43
5.4.390.0130.01312.48
5.4.380.0150.00812.55
5.4.370.0200.00312.35
5.4.360.0110.01012.28
5.4.350.0210.00412.49
5.4.340.0120.00912.47
5.4.330.0160.01012.28
5.4.320.0180.00912.22
5.4.310.0250.00412.34
5.4.300.0210.00012.20
5.4.290.0160.00812.30
5.4.280.0180.00712.29
5.4.270.0160.01412.32
5.4.260.0180.00912.67
5.4.250.0200.00712.55
5.4.240.0130.00912.44
5.4.230.0190.00812.56
5.4.220.0170.00712.40
5.4.210.0210.00312.63
5.4.200.0170.00412.22
5.4.190.0210.00512.34
5.4.180.0090.01412.21
5.4.170.0190.00412.27
5.4.160.0130.01012.26
5.4.150.0180.00912.21
5.4.140.0110.01112.42
5.4.130.0210.00012.43
5.4.120.0130.00912.31
5.4.110.0110.01112.38
5.4.100.0130.01012.18
5.4.90.0220.00612.50
5.4.80.0170.00712.39
5.4.70.0210.00612.21
5.4.60.0150.00712.32
5.4.50.0220.00012.43
5.4.40.0160.00812.44
5.4.30.0140.01112.37
5.4.20.0160.00512.50
5.4.10.0160.00712.30
5.4.00.0170.00712.39
5.3.290.0170.00912.92
5.3.280.0180.00912.64
5.3.270.0180.00612.73
5.3.260.0140.01012.86
5.3.250.0170.00912.85
5.3.240.0110.01412.60
5.3.230.0130.00912.67
5.3.220.0210.00912.64
5.3.210.0110.01212.78
5.3.200.0170.00912.79
5.3.190.0140.00712.84
5.3.180.0190.00512.86
5.3.170.0160.00812.96
5.3.160.0160.00812.98
5.3.150.0210.00712.82
5.3.140.0180.00912.91
5.3.130.0230.00012.81
5.3.120.0140.01012.77
5.3.110.0200.00712.91
5.3.100.0120.01212.93
5.3.90.0190.00913.11
5.3.80.0190.00412.88
5.3.70.0160.00612.77
5.3.60.0160.01112.89
5.3.50.0160.01012.68
5.3.40.0140.01112.69
5.3.30.0090.01212.81
5.3.20.0140.00712.68
5.3.10.0120.00912.64
5.3.00.0170.00712.49
5.2.170.0100.01312.18
5.2.160.0120.00812.18
5.2.150.0130.00612.18
5.2.140.0140.00712.18
5.2.130.0120.00612.18
5.2.120.0140.01112.18
5.2.110.0170.00712.18
5.2.100.0070.01412.18
5.2.90.0150.00612.18
5.2.80.0180.00312.18
5.2.70.0120.01212.18
5.2.60.0090.00912.18
5.2.50.0080.01112.18
5.2.40.0060.01312.18
5.2.30.0200.00012.18
5.2.20.0150.00312.18
5.2.10.0170.00412.18
5.2.00.0100.01012.18
5.1.60.0110.00612.18
5.1.50.0120.00412.18
5.1.40.0040.01312.18
5.1.30.0140.00412.18
5.1.20.0000.01612.18
5.1.10.0080.00812.18
5.1.00.0200.00312.18
5.0.50.0130.00512.18
5.0.40.0050.00912.18
5.0.30.0070.01012.18
5.0.20.0140.00312.18
5.0.10.0110.00412.18
5.0.00.0080.00612.18
4.4.90.0060.00412.18
4.4.80.0060.00312.18
4.4.70.0060.00312.18
4.4.60.0090.00012.18
4.4.50.0030.00612.18
4.4.40.0090.00012.18
4.4.30.0090.00012.18
4.4.20.0040.00412.18
4.4.10.0120.00012.18
4.4.00.0040.00412.18
4.3.110.0040.00412.18
4.3.100.0100.00012.18
4.3.90.0060.00612.18
4.3.80.0050.00512.18
4.3.70.0030.00712.18
4.3.60.0000.01112.18
4.3.50.0050.00512.18
4.3.40.0040.00412.18
4.3.30.0070.00312.18
4.3.20.0050.00512.18
4.3.10.0060.00312.18
4.3.00.0080.00012.18

preferences:
47.86 ms | 403 KiB | 5 Q