3v4l.org

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

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.0130.00319.45
8.3.140.0000.00818.95
8.3.130.0030.00618.51
8.3.120.0080.00019.00
8.3.110.0000.01120.94
8.3.100.0070.00324.06
8.3.90.0000.00826.77
8.3.80.0080.00016.38
8.3.70.0090.01218.30
8.3.60.0120.00916.75
8.3.50.0170.00217.34
8.3.40.0150.00618.47
8.3.30.0070.00718.54
8.3.20.0120.00321.65
8.3.10.0000.00821.78
8.3.00.0030.00519.56
8.2.250.0140.00416.46
8.2.240.0060.00318.56
8.2.230.0070.01022.58
8.2.220.0030.00637.54
8.2.210.0070.00726.77
8.2.200.0060.00316.63
8.2.190.0140.00016.58
8.2.180.0170.00018.16
8.2.170.0110.00318.79
8.2.160.0070.00722.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00419.76
8.2.110.0050.00522.24
8.2.100.0040.00817.66
8.2.90.0080.00017.63
8.2.80.0040.00418.48
8.2.70.0090.00017.91
8.2.60.0000.00717.63
8.2.50.0080.00017.55
8.2.40.0040.00420.50
8.2.30.0000.00719.36
8.2.20.0060.00317.98
8.2.10.0030.00617.85
8.2.00.0000.00917.80
8.1.300.0130.00618.29
8.1.290.0100.00030.84
8.1.280.0100.01025.92
8.1.270.0040.00424.66
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00623.83
8.1.230.0050.00520.28
8.1.220.0000.00717.74
8.1.210.0080.00018.77
8.1.200.0060.00317.23
8.1.190.0050.00517.00
8.1.180.0050.00318.10
8.1.170.0000.00818.71
8.1.160.0040.00418.60
8.1.150.0050.00318.88
8.1.140.0020.00517.57
8.1.130.0020.00518.36
8.1.120.0070.00317.86
8.1.110.0050.00717.90
8.1.100.0080.00417.87
8.1.90.0080.00417.72
8.1.80.0080.00517.70
8.1.70.0120.00117.76
8.1.60.0100.00617.89
8.1.50.0120.00517.85
8.1.40.0090.00717.83
8.1.30.0070.00817.90
8.1.20.0110.00517.91
8.1.10.0100.00617.70
8.1.00.0120.00317.70
8.0.300.0060.00318.77
8.0.290.0050.00316.63
8.0.280.0030.00318.31
8.0.270.0000.00717.06
8.0.260.0070.00717.84
8.0.250.0030.00817.32
8.0.240.0080.00317.35
8.0.230.0080.00217.33
8.0.220.0060.00417.10
8.0.210.0110.00217.09
8.0.200.0070.00617.22
8.0.190.0120.00217.16
8.0.180.0080.00517.09
8.0.170.0090.00417.14
8.0.160.0050.00717.11
8.0.150.0090.00417.00
8.0.140.0020.01017.05
8.0.130.0040.00915.86
8.0.120.0080.00617.11
8.0.110.0100.00317.05
8.0.100.0100.00217.09
8.0.90.0070.00516.98
8.0.80.0090.00616.96
8.0.70.0060.00616.97
8.0.60.0090.00316.99
8.0.50.0050.00416.97
8.0.30.0100.00716.92
8.0.20.0090.00717.19
8.0.10.0100.00716.97
8.0.00.0080.00916.96
7.4.330.0090.00015.56
7.4.320.0060.00316.61
7.4.300.0120.00316.80
7.4.290.0080.00516.83
7.4.280.0060.00416.85
7.4.270.0090.00316.77
7.4.260.0040.00616.64
7.4.250.0060.00616.68
7.4.240.0060.00616.77
7.4.230.0110.00316.85
7.4.220.0050.00516.83
7.4.210.0040.00816.74
7.4.200.0070.00316.76
7.4.190.0070.00416.86
7.4.180.0070.00416.89
7.4.160.0070.00816.68
7.4.150.0080.00516.80
7.4.140.0100.00617.13
7.4.130.0090.00516.46
7.4.120.0080.00816.48
7.4.110.0100.00416.48
7.4.100.0080.00816.48
7.4.90.0090.00816.43
7.4.80.0100.00616.74
7.4.70.0090.00616.45
7.4.60.0100.00816.40
7.4.50.0090.00616.39
7.4.40.0070.00916.41
7.4.30.0090.00716.38
7.4.20.0060.01016.42
7.4.10.0090.00716.46
7.4.00.0100.00616.30
7.3.330.0070.00515.51
7.3.320.0060.00515.57
7.3.310.0080.00516.62
7.3.300.0070.00516.49
7.3.290.0060.00516.44
7.3.280.0080.00516.42
7.3.270.0070.00616.50
7.3.260.0070.00916.35
7.3.250.0100.00516.42
7.3.240.0110.00916.38
7.3.230.0070.00816.41
7.3.220.0110.00516.39
7.3.210.0100.00616.33
7.3.200.0080.00816.35
7.3.190.0090.00816.31
7.3.180.0090.00916.32
7.3.170.0090.00716.37
7.3.160.0090.00716.29
7.3.150.0110.00616.39
7.3.140.0080.00816.30
7.3.130.0090.00816.30
7.3.120.0100.00716.29
7.3.110.0100.00716.10
7.3.100.0100.00715.86
7.3.90.0090.00815.89
7.3.80.0090.00815.75
7.3.70.0080.00715.63
7.3.60.0110.00615.54
7.3.50.0100.00715.41
7.3.40.0120.00615.37
7.3.30.0080.00815.43
7.3.20.0140.00716.03
7.3.10.0100.00716.02
7.3.00.0120.00815.98
7.2.340.0150.00616.38
7.2.330.0130.00916.44
7.2.320.0140.00816.43
7.2.310.0140.00816.51
7.2.300.0130.00816.33
7.2.290.0120.00816.42
7.2.280.0130.00716.40
7.2.270.0160.00816.34
7.2.260.0150.00916.42
7.2.250.0140.00716.34
7.2.240.0120.00716.20
7.2.230.0110.00916.06
7.2.220.0110.00815.96
7.2.210.0100.00815.97
7.2.200.0100.00815.76
7.2.190.0100.00815.62
7.2.180.0090.00915.58
7.2.170.0090.00815.46
7.2.160.0100.00715.48
7.2.150.0120.00816.19
7.2.140.0120.00816.19
7.2.130.0270.00816.09
7.2.120.0310.00816.04
7.2.110.0190.00916.12
7.2.100.0220.00716.07
7.2.90.0200.00916.09
7.2.80.0200.00816.12
7.2.70.0230.00916.02
7.2.60.0210.00816.12
7.2.50.0180.00816.08
7.2.40.0220.00816.13
7.2.30.0200.00716.21
7.2.20.0210.00816.18
7.2.10.0240.00716.19
7.2.00.0220.00916.17
7.1.330.0130.00815.40
7.1.320.0180.00615.09
7.1.310.0130.00715.11
7.1.300.0150.00715.09
7.1.290.0230.00915.19
7.1.280.0150.00715.06
7.1.270.0140.00715.05
7.1.260.0160.00515.06
7.1.250.0240.00715.00
7.1.240.0330.00914.96
7.1.230.0230.00814.95
7.1.220.0210.00714.95
7.1.210.0240.00714.95
7.1.200.0230.00714.96
7.1.190.0240.00814.95
7.1.180.0210.00714.90
7.1.170.0210.00814.87
7.1.160.0200.00914.95
7.1.150.0270.00715.05
7.1.140.0260.00715.05
7.1.130.0260.00815.03
7.1.120.0240.00715.05
7.1.110.0220.00715.05
7.1.100.0280.00715.03
7.1.90.0250.01015.05
7.1.80.0230.00815.00
7.1.70.0220.00914.95
7.1.60.0210.01016.21
7.1.50.0210.00916.21
7.1.40.0190.00916.26
7.1.30.0240.00816.23
7.1.20.0240.00716.19
7.1.10.0190.00814.90
7.1.00.0180.01014.89
7.0.330.0240.00814.54
7.0.320.0140.00815.14
7.0.310.0130.00815.17
7.0.300.0130.00715.21
7.0.290.0210.00715.19
7.0.280.0130.00915.15
7.0.270.0130.00815.16
7.0.260.0130.00715.16
7.0.250.0150.00715.24
7.0.240.0130.00815.32
7.0.230.0130.00815.23
7.0.220.0140.00515.20
7.0.210.0170.00615.25
7.0.200.0150.00615.24
7.0.190.0160.00615.20
7.0.180.0130.00815.22
7.0.170.0140.00715.19
7.0.160.0140.00715.18
7.0.150.0150.00715.19
7.0.140.0150.00715.16
7.0.130.0130.00715.22
7.0.120.0120.00915.25
7.0.110.0140.00715.24
7.0.100.0120.00915.19
7.0.90.0150.00415.18
7.0.80.0230.00615.14
7.0.70.0130.00815.18
7.0.60.0150.00615.18
7.0.50.0150.00615.16
7.0.40.0130.00815.25
7.0.30.0130.00715.16
7.0.20.0120.00815.16
7.0.10.0150.00715.18
7.0.00.0120.00715.12
5.6.400.0120.00814.87
5.6.390.0130.00914.73
5.6.380.0140.00814.68
5.6.370.0140.00815.73
5.6.360.0150.00815.71
5.6.350.0130.00915.69
5.6.340.0120.01115.73
5.6.330.0130.00915.67
5.6.320.0120.01115.69
5.6.310.0130.00915.71
5.6.300.0160.00615.68
5.6.290.0120.01115.72
5.6.280.0110.01015.75
5.6.270.0120.01015.72
5.6.260.0140.00815.65
5.6.250.0130.00815.64
5.6.240.0120.00915.64
5.6.230.0130.01015.69
5.6.220.0150.00915.67
5.6.210.0100.01115.68
5.6.200.0120.00815.66
5.6.190.0160.00515.70
5.6.180.0160.00615.76
5.6.170.0120.00915.70
5.6.160.0120.01015.74
5.6.150.0130.00815.74
5.6.140.0140.00715.75
5.6.130.0110.01215.74
5.6.120.0120.00915.72
5.6.110.0150.00715.64
5.6.100.0120.00815.61
5.6.90.0110.00915.59
5.6.80.0120.00815.64
5.6.70.0100.01115.67
5.6.60.0120.00815.65
5.6.50.0130.00815.64
5.6.40.0120.00915.57
5.6.30.0100.01215.61
5.6.20.0140.00815.61
5.6.10.0120.00815.62
5.6.00.0110.01115.62

preferences:
58.52 ms | 403 KiB | 5 Q