3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(): float { return 1.2; } foo();

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.20.0160.00319.23
8.4.10.0060.01019.60
8.3.150.0150.00618.59
8.3.140.0160.00017.12
8.3.130.0040.00418.28
8.3.120.0060.00318.78
8.3.110.0050.00320.94
8.3.100.0000.00924.06
8.3.90.0030.00726.77
8.3.80.0030.00618.43
8.3.70.0150.00416.58
8.3.60.0100.01016.63
8.3.50.0040.00917.39
8.3.40.0140.00718.54
8.3.30.0040.01118.46
8.3.20.0060.01221.73
8.3.10.0040.00421.86
8.3.00.0060.00319.67
8.2.270.0140.00418.85
8.2.260.0090.00916.66
8.2.250.0040.00418.43
8.2.240.0060.00318.71
8.2.230.0130.00322.58
8.2.220.0060.00337.54
8.2.210.0060.00326.77
8.2.200.0100.00316.38
8.2.190.0070.01016.58
8.2.180.0110.00718.43
8.2.170.0070.01018.84
8.2.160.0060.00922.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00420.66
8.2.110.0040.00422.20
8.2.100.0060.00619.39
8.2.90.0050.00319.14
8.2.80.0000.00819.41
8.2.70.0040.00417.50
8.2.60.0040.00417.50
8.2.50.0060.00318.10
8.2.40.0000.00720.59
8.2.30.0070.00019.30
8.2.20.0060.00317.83
8.2.10.0050.00717.66
8.2.00.0000.00817.98
8.1.310.0100.00718.32
8.1.300.0080.00819.21
8.1.290.0030.00630.84
8.1.280.0150.00025.92
8.1.270.0030.00524.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0000.01023.91
8.1.230.0060.00619.17
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0040.00417.13
8.1.190.0030.00616.97
8.1.180.0060.00318.10
8.1.170.0000.00918.75
8.1.160.0050.00218.63
8.1.150.0070.00018.94
8.1.140.0050.00317.56
8.1.130.0030.00318.92
8.1.120.0070.00017.33
8.1.110.0050.00617.21
8.1.100.0030.00517.35
8.1.90.0040.00717.31
8.1.80.0050.00317.35
8.1.70.0020.00717.28
8.1.60.0020.00717.46
8.1.50.0080.00217.41
8.1.40.0070.00217.41
8.1.30.0070.00317.48
8.1.20.0040.00417.57
8.1.10.0040.00617.29
8.1.00.0050.00417.23
8.0.300.0090.00018.77
8.0.290.0040.00416.92
8.0.280.0050.00218.32
8.0.270.0070.00016.64
8.0.260.0030.00317.03
8.0.250.0030.00316.82
8.0.240.0060.00116.79
8.0.230.0020.00716.76
8.0.220.0020.00516.76
8.0.210.0070.00216.77
8.0.200.0050.00316.81
8.0.190.0080.00016.82
8.0.180.0070.00216.73
8.0.170.0030.00516.70
8.0.160.0000.00916.64
8.0.150.0020.00616.67
8.0.140.0050.00416.71
8.0.130.0050.00414.95
8.0.120.0030.00516.74
8.0.110.0000.00916.76
8.0.100.0010.00616.74
8.0.90.0040.00416.67
8.0.80.0080.00816.75
8.0.70.0040.00416.80
8.0.60.0070.00316.73
8.0.50.0060.00516.63
8.0.30.0090.00816.76
8.0.20.0080.00917.16
8.0.10.0080.00316.69
8.0.00.0120.00616.68
7.4.330.0000.00515.55
7.4.320.0050.00316.32
7.4.300.0060.00316.52
7.4.290.0040.00616.32
7.4.280.0090.00316.35
7.4.270.0080.00316.30
7.4.260.0050.00516.43
7.4.250.0050.00716.28
7.4.240.0090.00116.20
7.4.230.0070.00416.13
7.4.220.0040.00616.21
7.4.210.0090.01016.38
7.4.200.0040.00716.38
7.4.190.0120.00216.33
7.4.180.0070.00416.11
7.4.160.0080.00716.42
7.4.150.0170.00015.99
7.4.140.0080.00917.56
7.4.130.0080.00816.15
7.4.120.0090.00716.33
7.4.110.0050.00916.08
7.4.100.0070.00916.21
7.4.90.0070.00916.34
7.4.80.0110.00517.04
7.4.70.0100.00816.19
7.4.60.0110.00516.21
7.4.50.0100.00716.30
7.4.40.0100.00616.18
7.4.30.0070.00916.13
7.4.20.0110.00616.20
7.4.10.0090.00716.25
7.4.00.0080.00915.80
7.3.330.0040.00714.58
7.3.320.0080.00214.56
7.3.310.0090.00216.14
7.3.300.0040.00716.06
7.3.290.0070.00416.17
7.3.280.0100.00516.23
7.3.270.0100.00316.05
7.3.260.0070.01216.30
7.3.250.0080.00816.20
7.3.240.0090.01016.26
7.3.230.0110.00516.13
7.3.220.0110.00416.16
7.3.210.0130.00416.21
7.3.200.0130.00516.27
7.3.190.0080.00816.28
7.3.180.0080.00816.22
7.3.170.0090.00716.28
7.3.160.0100.00616.18
7.3.150.0090.00716.16
7.3.140.0070.01016.24
7.3.130.0090.00816.25
7.3.120.0100.00715.90
7.3.110.0100.00815.86
7.3.100.0100.00815.76
7.3.90.0080.00815.62
7.3.80.0100.00615.67
7.3.70.0100.00715.76
7.3.60.0080.00915.72
7.3.50.0090.00715.44
7.3.40.0090.00715.38
7.3.30.0080.00715.39
7.3.20.0200.00715.63
7.3.10.0180.00715.60
7.3.00.0150.00915.65
7.2.340.0100.00416.00
7.2.330.0110.00916.34
7.2.320.0060.01016.26
7.2.310.0130.00416.39
7.2.300.0130.00516.35
7.2.290.0080.00816.34
7.2.280.0090.00916.38
7.2.270.0100.00716.28
7.2.260.0090.00916.40
7.2.250.0100.00915.99
7.2.240.0100.00715.88
7.2.230.0100.00715.79
7.2.220.0090.00815.84
7.2.210.0100.00615.91
7.2.200.0070.01115.85
7.2.190.0080.01015.87
7.2.180.0100.00515.45
7.2.170.0090.00715.50
7.2.160.0080.00915.58
7.2.150.0150.00815.67
7.2.140.0160.00715.70
7.2.130.0130.01015.76
7.2.120.0170.00815.65
7.2.110.0210.00815.67
7.2.100.0200.00615.69
7.2.90.0180.00815.68
7.2.80.0170.00815.71
7.2.70.0160.00915.75
7.2.60.0160.00915.80
7.2.50.0170.00815.70
7.2.40.0210.00915.81
7.2.30.0180.00815.83
7.2.20.0210.00715.87
7.2.10.0240.00715.74
7.2.00.0230.01015.77
7.1.330.0100.00915.40
7.1.320.0120.00815.23
7.1.310.0120.00815.26
7.1.300.0160.00715.17
7.1.290.0120.00815.22
7.1.280.0160.00614.73
7.1.270.0130.00814.72
7.1.260.0150.00714.74
7.1.250.0150.00714.66
7.1.240.0200.00714.50
7.1.230.0240.00714.47
7.1.220.0190.00814.49
7.1.210.0250.00814.44
7.1.200.0180.00814.60
7.1.190.0170.00814.51
7.1.180.0250.00614.49
7.1.170.0210.00814.50
7.1.160.0260.00714.67
7.1.150.0180.00814.71
7.1.140.0270.00914.66
7.1.130.0230.00814.62
7.1.120.0240.00814.63
7.1.110.0160.00814.61
7.1.100.0180.00914.65
7.1.90.0180.00914.65
7.1.80.0170.00914.67
7.1.70.0190.00914.51
7.1.60.0200.00915.69
7.1.50.0290.01015.77
7.1.40.0170.00815.67
7.1.30.0270.00815.64
7.1.20.0210.01115.69
7.1.10.0190.00814.47
7.1.00.0300.00814.52
7.0.330.0180.00814.28
7.0.320.0130.01114.63
7.0.310.0170.00714.80
7.0.300.0120.01014.80
7.0.290.0220.01014.99
7.0.280.0260.00614.84
7.0.270.0230.00815.02
7.0.260.0210.00814.98
7.0.250.0200.00714.93
7.0.240.0220.00814.95
7.0.230.0150.00915.03
7.0.220.0170.00915.00
7.0.210.0230.00614.86
7.0.200.0110.01014.90
7.0.190.0140.01014.84
7.0.180.0250.00714.79
7.0.170.0260.00914.84
7.0.160.0110.01114.80
7.0.150.0280.00614.79
7.0.140.0300.00714.84
7.0.130.0250.00814.86
7.0.120.0140.00814.92
7.0.110.0200.01014.79
7.0.100.0230.00514.79
7.0.90.0170.01014.85
7.0.80.0240.00614.78
7.0.70.0250.00614.86
7.0.60.0160.00814.78
7.0.50.0220.00814.81
7.0.40.0180.00914.83
7.0.30.0210.00814.87
7.0.20.0180.00814.79
7.0.10.0140.00814.85
7.0.00.0120.01014.80
5.6.400.0120.01014.81
5.6.390.0130.00914.79
5.6.380.0110.01014.65
5.6.370.0120.01015.22
5.6.360.0140.00815.27
5.6.350.0150.00915.26
5.6.340.0100.01115.25
5.6.330.0130.00915.13
5.6.320.0120.01015.30
5.6.310.0150.00715.28
5.6.300.0160.01615.85
5.6.290.0150.01415.89
5.6.280.0130.01815.89
5.6.270.0140.01715.88
5.6.260.0130.01815.97
5.6.250.0140.01615.87
5.6.240.0130.01915.93
5.6.230.0150.01715.84
5.6.220.0150.01615.94
5.6.210.0130.01815.82
5.6.200.0130.01615.96
5.6.190.0140.01415.87
5.6.180.0130.01615.89
5.6.170.0130.01615.82
5.6.160.0120.01715.85
5.6.150.0120.01615.79
5.6.140.0130.01715.86
5.6.130.0140.01615.94
5.6.120.0150.01615.84
5.6.110.0150.01615.84
5.6.100.0140.01615.83
5.6.90.0150.01315.81
5.6.80.0150.01415.74
5.6.70.0150.01715.67
5.6.60.0170.01315.69
5.6.50.0140.01415.71
5.6.40.0150.01415.75
5.6.30.0130.01715.77
5.6.20.0150.01715.73
5.6.10.0160.01515.74
5.6.00.0180.01415.70

preferences:
31.2 ms | 403 KiB | 5 Q