3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function foobar(): int { return 1.0; } var_dump(foobar());

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.0030.00617.56
8.3.140.0060.00317.11
8.3.130.0110.00716.86
8.3.120.0070.01018.87
8.3.110.0080.00020.94
8.3.100.0050.00524.06
8.3.90.0000.00826.77
8.3.80.0090.00017.97
8.3.70.0120.00316.50
8.3.60.0040.01118.52
8.3.50.0110.01121.21
8.3.40.0040.01118.67
8.3.30.0110.00419.00
8.3.20.0090.00620.04
8.3.10.0050.00221.69
8.3.00.0050.00319.02
8.2.250.0040.00416.86
8.2.240.0030.01417.11
8.2.230.0080.00022.58
8.2.220.0060.00337.54
8.2.210.0070.00026.77
8.2.200.0060.00318.29
8.2.190.0150.00018.35
8.2.180.0110.01116.63
8.2.170.0130.00322.96
8.2.160.0070.00720.48
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.07
8.2.110.0060.00321.12
8.2.100.0090.00317.91
8.2.90.0080.00017.78
8.2.80.0040.00418.16
8.2.70.0040.00417.63
8.2.60.0040.00417.63
8.2.50.0040.00419.23
8.2.40.0090.00017.75
8.2.30.0000.00718.18
8.2.20.0000.00717.55
8.2.10.0000.00817.98
8.2.00.0040.00417.73
8.1.300.0050.00318.21
8.1.290.0030.00730.84
8.1.280.0110.00425.92
8.1.270.0060.00318.63
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0090.00022.42
8.1.230.0120.00022.63
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0000.00817.23
8.1.190.0050.00317.10
8.1.180.0080.00018.10
8.1.170.0030.00519.00
8.1.160.0040.00421.93
8.1.150.0070.00018.77
8.1.140.0030.00617.23
8.1.130.0000.00717.67
8.1.120.0030.00317.35
8.1.110.0000.00817.25
8.1.100.0030.00317.28
8.1.90.0040.00417.33
8.1.80.0050.00217.21
8.1.70.0000.00717.31
8.1.60.0050.00217.42
8.1.50.0000.00917.45
8.1.40.0030.00617.45
8.1.30.0000.00917.54
8.1.20.0060.00317.57
8.1.10.0050.00317.57
8.1.00.0040.00417.32
8.0.300.0040.00419.98
8.0.290.0020.00516.75
8.0.280.0040.00418.37
8.0.270.0040.00416.66
8.0.260.0000.00617.23
8.0.250.0030.00516.84
8.0.240.0030.00316.93
8.0.230.0050.00216.82
8.0.220.0000.00716.87
8.0.210.0030.00316.88
8.0.200.0000.00616.98
8.0.190.0040.00416.98
8.0.180.0040.00416.89
8.0.170.0040.00416.97
8.0.160.0030.00516.91
8.0.150.0040.00416.87
8.0.140.0000.00716.87
8.0.130.0030.00313.35
8.0.120.0000.00916.77
8.0.110.0070.00016.79
8.0.100.0050.00216.85
8.0.90.0070.00016.75
8.0.80.0040.01316.82
8.0.70.0040.00416.73
8.0.60.0000.00716.91
8.0.50.0000.00816.92
8.0.30.0130.00717.14
8.0.20.0110.00817.40
8.0.10.0050.00316.79
8.0.00.0070.01216.80
7.4.330.0040.00015.03
7.4.320.0000.00616.51
7.4.300.0030.00316.42
7.4.290.0050.00216.43
7.4.280.0040.00416.42
7.4.270.0030.00316.45
7.4.260.0000.00716.27
7.4.250.0040.00416.53
7.4.240.0030.00316.48
7.4.230.0030.00316.46
7.4.220.0160.01016.60
7.4.210.0090.00716.50
7.4.200.0000.00716.46
7.4.160.0120.00416.47
7.4.150.0200.00417.40
7.4.140.0130.00517.86
7.4.130.0120.00516.46
7.4.120.0140.00316.51
7.4.110.0120.00616.63
7.4.100.0180.00016.51
7.4.90.0070.01116.43
7.4.80.0060.01519.39
7.4.70.0140.00316.52
7.4.60.0030.01216.39
7.4.50.0080.00016.39
7.4.40.0060.01816.19
7.4.30.0090.00916.43
7.4.00.0030.01014.74
7.3.330.0000.00513.36
7.3.320.0050.00013.13
7.3.310.0000.00716.18
7.3.300.0070.00016.16
7.3.290.0030.00316.15
7.3.280.0110.00616.21
7.3.270.0100.00717.40
7.3.260.0070.01016.27
7.3.250.0160.00516.29
7.3.240.0120.00916.28
7.3.230.0150.00316.39
7.3.210.0030.01516.49
7.3.200.0130.00319.39
7.3.190.0120.00416.49
7.3.180.0100.00616.36
7.3.170.0070.01016.51
7.3.160.0040.01116.57
7.2.330.0090.01216.38
7.2.320.0060.01116.54
7.2.310.0090.00916.26
7.2.300.0130.00316.23
7.2.290.0070.01416.52
7.2.60.0000.01516.92
7.1.200.0150.00315.43
7.1.70.0050.00217.20
7.1.60.0100.01419.57
7.1.50.0090.00916.57
7.1.00.0030.07722.45
7.0.200.0000.00916.69
7.0.140.0000.05722.08
7.0.60.0070.08019.97
7.0.50.0070.06717.87
7.0.40.0030.05720.11
7.0.30.0300.07720.21
7.0.20.0300.07720.09
7.0.10.0070.04720.22
7.0.00.0000.04720.14
5.6.280.0000.07720.91
5.6.210.0030.06320.48
5.6.200.0100.03718.15
5.6.190.0100.08020.61
5.6.180.0270.04720.34
5.6.170.0230.03320.55
5.6.160.0030.09320.41
5.6.150.0000.04718.29
5.6.140.0070.05718.27
5.6.130.0030.04718.17
5.6.120.0100.08021.06
5.6.110.0000.09320.99
5.6.100.0100.06021.09
5.6.90.0130.06321.02
5.6.80.0270.06320.44
5.5.350.0000.03320.44
5.5.340.0030.08018.09
5.5.330.0000.05020.57
5.5.320.3200.03720.36
5.5.310.0270.07720.36
5.5.300.0170.03717.95
5.5.290.0070.07717.94
5.5.280.0030.04020.73
5.5.270.0100.08020.78
5.5.260.0100.05720.79
5.5.250.0130.06020.58
5.5.240.0100.06320.27
5.4.450.0100.04719.48
5.4.440.0030.09019.57
5.4.430.0070.04019.47
5.4.420.0100.03319.32
5.4.410.0070.06019.31
5.4.400.0070.04018.86
5.4.390.0100.06319.15
5.4.380.0100.05719.08
5.4.370.0000.04318.98
5.4.360.0030.08019.08
5.4.350.0130.06019.24
5.4.340.0130.05318.98
5.4.320.0070.07719.16
5.4.310.0030.05019.20
5.4.300.0030.05719.11
5.4.290.0230.06018.92
5.4.280.0130.07319.24
5.4.270.0100.08019.14
5.4.260.0070.04718.87
5.4.250.0200.03319.24
5.4.240.0130.06319.23
5.4.230.0030.05019.13
5.4.220.0000.04318.84
5.4.210.0100.04318.96
5.4.200.0070.07719.00
5.4.190.0030.06319.16
5.4.180.0030.03719.19
5.4.170.0070.04719.11
5.4.160.0000.07019.22
5.4.150.0030.05718.84
5.4.140.0030.04716.46
5.4.130.0070.04016.54
5.4.120.0130.07016.45
5.4.110.0100.07016.59
5.4.100.0100.07316.48
5.4.90.0030.04016.35
5.4.80.0130.06016.57
5.4.70.0070.07016.42
5.4.60.0070.06716.28
5.4.50.0030.04716.46
5.4.40.0170.06016.39
5.4.30.0200.03716.35
5.4.20.0030.05016.30
5.4.10.0070.05016.43
5.4.00.0030.03715.85
5.3.290.0100.06714.72
5.3.280.0030.04314.62
5.3.270.0030.08014.49
5.3.260.0100.04714.66
5.3.250.0030.05314.61
5.3.240.0130.06714.60
5.3.230.0130.04014.54
5.3.220.0100.05014.45
5.3.210.0100.03314.56
5.3.200.0000.05014.48
5.3.190.0070.03314.45
5.3.180.0070.07314.57
5.3.170.0070.04314.57
5.3.160.0030.07314.48
5.3.150.0130.06014.56
5.3.140.0100.07314.62
5.3.130.0070.07714.59
5.3.120.0070.04014.55
5.3.110.0070.04314.55
5.3.100.0000.04014.20
5.3.90.0070.04314.06
5.3.80.0070.07314.06
5.3.70.0030.04314.19
5.3.60.0100.05013.99
5.3.50.0070.07314.02
5.3.40.0100.04713.91
5.3.30.0070.05713.95
5.3.20.0070.07013.76
5.3.10.0070.05313.65
5.3.00.0070.06013.69
5.2.170.0030.03011.21
5.2.160.0100.02311.16
5.2.150.0030.06311.09
5.2.140.0000.06311.10
5.2.130.0030.02711.07
5.2.120.0100.05311.05
5.2.110.0070.02711.16
5.2.100.0030.06311.24
5.2.90.0070.05711.25
5.2.80.0000.04311.10
5.2.70.0070.04711.10
5.2.60.0000.05311.06
5.2.50.0130.05710.96
5.2.40.0030.02711.06
5.2.30.0030.05011.04
5.2.20.0000.03311.02
5.2.10.0070.04710.75
5.2.00.0000.07010.87
5.1.60.0030.0309.97
5.1.50.0000.0609.90
5.1.40.0070.05010.09
5.1.30.0070.03010.34
5.1.20.0030.02310.36
5.1.10.0000.03010.13
5.1.00.0000.06010.13
5.0.50.0030.0238.52
5.0.40.0030.0378.39
5.0.30.0030.0638.26
5.0.20.0100.0278.25
5.0.10.0030.0308.18
5.0.00.0030.0638.30
4.4.90.0030.0337.13
4.4.80.0100.0107.13
4.4.70.0000.0237.13
4.4.60.0070.0137.13
4.4.50.0000.0377.13
4.4.40.0070.0507.13
4.4.30.0100.0307.13
4.4.20.0070.0307.13
4.4.10.0000.0277.13
4.4.00.0100.0477.13
4.3.110.0000.0277.13
4.3.100.0030.0207.13
4.3.90.0030.0337.13
4.3.80.0030.0307.13
4.3.70.0000.0177.13
4.3.60.0000.0177.13
4.3.50.0000.0207.13
4.3.40.0030.0277.13
4.3.30.0000.0207.13
4.3.20.0000.0177.13
4.3.10.0000.0207.13
4.3.00.0000.0337.13

preferences:
63.28 ms | 403 KiB | 5 Q