3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(): ?int { return 1; } function bar(): ?int { 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.00717.34
8.3.140.0040.00420.77
8.3.130.0080.00018.29
8.3.120.0040.00818.85
8.3.110.0040.00420.94
8.3.100.0080.00016.52
8.3.90.0140.00426.77
8.3.80.0080.00418.43
8.3.70.0070.01016.63
8.3.60.0120.00316.38
8.3.50.0110.00517.36
8.3.40.0090.00618.60
8.3.30.0110.00418.51
8.3.20.0080.00021.73
8.3.10.0040.00421.61
8.3.00.0080.00019.43
8.2.250.0060.00916.80
8.2.240.0090.00918.61
8.2.230.0060.00322.58
8.2.220.0040.00424.06
8.2.210.0100.01026.77
8.2.200.0030.00618.16
8.2.190.0080.00816.58
8.2.180.0100.00725.92
8.2.170.0190.00018.71
8.2.160.0100.00322.96
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00721.01
8.2.110.0090.00020.58
8.2.100.0080.00419.52
8.2.90.0060.00317.78
8.2.80.0030.00617.97
8.2.70.0030.00617.68
8.2.60.0030.00617.80
8.2.50.0070.00018.05
8.2.40.0090.00317.71
8.2.30.0080.00418.51
8.2.20.0010.00717.78
8.2.10.0050.00717.71
8.2.00.0070.00218.11
8.1.300.0060.00319.45
8.1.290.0060.00330.84
8.1.280.0150.00325.92
8.1.270.0030.00523.92
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0070.00323.73
8.1.230.0040.00721.03
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0040.00417.00
8.1.180.0080.00018.10
8.1.170.0000.00818.10
8.1.160.0050.00618.11
8.1.150.0060.00518.24
8.1.140.0050.00717.58
8.1.130.0050.00817.44
8.1.120.0070.00517.42
8.1.110.0070.00617.43
8.1.100.0080.00417.43
8.1.90.0110.00317.43
8.1.80.0100.00517.48
8.1.70.0070.00417.41
8.1.60.0120.00117.48
8.1.50.0070.00617.48
8.1.40.0070.00517.50
8.1.30.0050.00717.57
8.1.20.0070.00317.54
8.1.10.0080.00517.39
8.1.00.0070.00417.40
8.0.300.0070.00019.60
8.0.290.0000.00816.58
8.0.280.0030.00817.96
8.0.270.0090.00217.41
8.0.260.0030.00617.58
8.0.250.0080.00317.16
8.0.240.0090.00317.19
8.0.230.0080.00417.16
8.0.220.0050.00717.22
8.0.210.0100.00217.20
8.0.200.0060.00517.02
8.0.190.0070.00517.08
8.0.180.0100.00217.05
8.0.170.0080.00317.05
8.0.160.0080.00417.02
8.0.150.0060.00517.00
8.0.140.0070.00517.00
8.0.130.0060.00415.87
8.0.120.0070.00417.00
8.0.110.0080.00417.02
8.0.100.0050.00617.03
8.0.90.0060.00517.05
8.0.80.0080.00517.01
8.0.70.0100.00216.90
8.0.60.0060.00716.98
8.0.50.0050.00616.74
8.0.30.0110.00816.91
8.0.20.0110.00916.92
8.0.10.0130.00916.94
8.0.00.0130.00816.94
7.4.330.0080.00016.58
7.4.320.0070.00417.06
7.4.300.0060.00716.75
7.4.290.0100.00316.86
7.4.280.0060.00416.90
7.4.270.0100.00316.70
7.4.260.0080.00616.77
7.4.250.0100.00116.74
7.4.240.0080.00416.69
7.4.230.0060.00616.70
7.4.220.0090.00316.55
7.4.210.0110.00416.67
7.4.200.0090.00316.73
7.4.190.0100.00516.88
7.4.180.0080.00616.85
7.4.160.0140.00716.54
7.4.150.0100.00816.55
7.4.140.0130.00816.95
7.4.130.0110.00916.49
7.4.120.0130.00716.46
7.4.110.0130.00816.49
7.4.100.0130.00816.53
7.4.90.0150.00716.47
7.4.80.0130.01016.99
7.4.70.0130.01016.82
7.4.60.0120.00816.81
7.4.50.0120.00816.77
7.4.40.0110.01016.76
7.4.30.0120.00816.68
7.4.20.0110.00916.60
7.4.10.0120.00916.56
7.4.00.0100.00916.50
7.3.330.0080.00415.59
7.3.320.0090.00215.69
7.3.310.0080.00416.56
7.3.300.0060.00616.59
7.3.290.0100.00216.70
7.3.280.0100.00716.43
7.3.270.0100.00816.41
7.3.260.0120.00916.53
7.3.250.0140.00816.53
7.3.240.0120.00916.45
7.3.230.0130.00916.45
7.3.220.0140.00916.37
7.3.210.0130.00916.41
7.3.200.0130.00816.78
7.3.190.0120.00916.77
7.3.180.0110.01016.71
7.3.170.0130.00816.74
7.3.160.0110.00916.74
7.3.150.0130.00816.59
7.3.140.0110.00916.58
7.3.130.0110.00916.58
7.3.120.0100.00916.48
7.3.110.0100.00916.12
7.3.100.0100.00916.10
7.3.90.0100.00816.05
7.3.80.0100.00815.93
7.3.70.0100.00815.89
7.3.60.0110.00815.88
7.3.50.0090.00915.77
7.3.40.0090.00915.78
7.3.30.0080.01015.69
7.3.20.0240.00815.91
7.3.10.0240.00815.89
7.3.00.0180.00915.82
7.2.340.0160.00916.48
7.2.330.0140.01116.42
7.2.320.0150.00916.83
7.2.310.0170.00716.77
7.2.300.0150.01016.80
7.2.290.0140.00916.79
7.2.280.0130.01016.67
7.2.270.0140.00916.66
7.2.260.0130.01016.66
7.2.250.0130.00916.54
7.2.240.0120.00816.21
7.2.230.0120.00916.18
7.2.220.0110.01016.08
7.2.210.0120.00816.00
7.2.200.0110.01015.98
7.2.190.0110.01015.93
7.2.180.0120.00815.87
7.2.170.0110.00915.88
7.2.160.0120.00815.78
7.2.150.0150.01016.05
7.2.140.0180.00916.10
7.2.130.0310.00816.01
7.2.120.0310.00816.03
7.2.110.0300.00916.01
7.2.100.0360.00815.98
7.2.90.0290.00815.95
7.2.80.0260.00915.97
7.2.70.0230.00815.96
7.2.60.0190.00915.97
7.2.50.0250.00815.98
7.2.40.0240.00916.00
7.2.30.0210.00916.00
7.2.20.0200.00915.95
7.2.10.0250.01015.96
7.2.00.0250.00915.91
7.1.330.0130.01115.52
7.1.320.0140.00915.33
7.1.310.0150.00815.27
7.1.300.0150.00815.18
7.1.290.0140.00815.21
7.1.280.0140.00915.12
7.1.270.0190.00815.04
7.1.260.0390.00915.07
7.1.250.0370.00714.98
7.1.240.0270.00814.95
7.1.230.0200.00914.95
7.1.220.0290.00814.94
7.1.210.0310.00814.89
7.1.200.0330.00814.95
7.1.190.0260.00814.93
7.1.180.0210.00914.92
7.1.170.0260.00814.89
7.1.160.0200.00814.91
7.1.150.0230.00814.94
7.1.140.0260.00814.93
7.1.130.0290.00814.90
7.1.120.0250.00914.90
7.1.110.0210.00814.91
7.1.100.0210.00814.89
7.1.90.0220.00814.88
7.1.80.0240.00914.93
7.1.70.0210.00914.87
7.1.60.0230.00815.59
7.1.50.0230.00915.59
7.1.40.0260.00815.54
7.1.30.0230.00915.52
7.1.20.0260.00915.50
7.1.10.0210.00814.91
7.1.00.0220.00814.84
7.0.330.0350.00714.58
7.0.320.0180.00814.89
7.0.310.0330.00914.88
7.0.300.0190.00814.84
7.0.290.0260.00814.84
7.0.280.0190.00814.83
7.0.270.0250.00714.79
7.0.260.0230.00914.78
7.0.250.0220.00914.83
7.0.240.0210.00814.81
7.0.230.0200.00914.82
7.0.220.0200.00914.87
7.0.210.0190.00814.84
7.0.200.0190.00814.81
7.0.190.0190.00914.84
7.0.180.0240.00914.83
7.0.170.0240.00914.80
7.0.160.0210.00914.78
7.0.150.0220.00814.81
7.0.140.0260.00814.83
7.0.130.0230.00714.82
7.0.120.0210.00814.82
7.0.110.0210.00914.83
7.0.100.0200.00914.80
7.0.90.0220.00814.82
7.0.80.0200.00714.79
7.0.70.0210.00814.80
7.0.60.0210.00814.82
7.0.50.0210.00814.80
7.0.40.0230.00814.81
7.0.30.0230.00714.84
7.0.20.0210.00814.83
7.0.10.0210.00814.84
7.0.00.0190.00914.81
5.6.400.0140.00915.16
5.6.390.0130.01115.13
5.6.380.0120.00915.08
5.6.370.0150.01015.38
5.6.360.0150.00915.41
5.6.350.0140.01115.34
5.6.340.0150.00915.38
5.6.330.0140.01015.33
5.6.320.0140.01015.38
5.6.310.0140.00915.34
5.6.300.0140.01215.49
5.6.290.0150.01115.51
5.6.280.0150.01115.47
5.6.270.0140.01215.50
5.6.260.0140.01115.51
5.6.250.0140.01115.46
5.6.240.0150.01215.48
5.6.230.0140.01115.48
5.6.220.0150.01015.48
5.6.210.0140.01215.48
5.6.200.0150.01115.51
5.6.190.0150.01115.51
5.6.180.0150.01015.50
5.6.170.0150.01215.48
5.6.160.0140.01115.47
5.6.150.0160.01115.49
5.6.140.0150.01115.51
5.6.130.0150.01115.49
5.6.120.0150.01115.45
5.6.110.0150.01115.46
5.6.100.0140.01115.43
5.6.90.0140.01115.47
5.6.80.0130.01215.40
5.6.70.0130.01115.40
5.6.60.0140.01115.40
5.6.50.0130.01015.36
5.6.40.0120.01215.41
5.6.30.0130.01115.41
5.6.20.0130.01215.39
5.6.10.0130.01115.40
5.6.00.0130.01115.37

preferences:
48.67 ms | 403 KiB | 5 Q