3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(string $bar = null) { } foo(''); foo(null);

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.3.140.0110.00718.97
8.3.130.0100.00018.27
8.3.120.0160.00419.12
8.3.110.0060.00620.94
8.3.100.0030.00624.06
8.3.90.0180.00026.77
8.3.80.0060.00317.97
8.3.70.0120.00618.27
8.3.60.0120.00916.63
8.3.50.0170.00517.36
8.3.40.0110.00418.71
8.3.30.0100.00718.55
8.3.20.0000.00821.63
8.3.10.0110.00421.77
8.3.00.0050.00319.67
8.2.250.0000.01518.06
8.2.240.0060.00318.70
8.2.230.0090.00022.58
8.2.220.0030.00637.54
8.2.210.0110.00726.77
8.2.200.0060.00318.04
8.2.190.0140.00416.58
8.2.180.0110.00418.41
8.2.170.0120.00322.96
8.2.160.0070.00722.96
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00719.64
8.2.110.0000.01120.47
8.2.100.0110.00417.59
8.2.90.0000.00919.10
8.2.80.0000.00817.97
8.2.70.0050.00317.80
8.2.60.0000.00817.80
8.2.50.0060.00318.10
8.2.40.0030.00620.59
8.2.30.0000.00719.21
8.2.20.0080.00317.83
8.2.10.0040.00417.91
8.2.00.0000.00717.80
8.1.300.0160.00018.11
8.1.290.0070.00330.84
8.1.280.0100.00725.92
8.1.270.0030.00623.96
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00619.09
8.1.230.0080.00317.77
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00817.10
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0030.00518.68
8.1.160.0050.00218.67
8.1.150.0030.00318.98
8.1.140.0000.00717.57
8.1.130.0000.00618.94
8.1.120.0030.00517.34
8.1.110.0000.00717.23
8.1.100.0000.00717.32
8.1.90.0070.00317.25
8.1.80.0080.00017.32
8.1.70.0020.00617.25
8.1.60.0000.01017.48
8.1.50.0080.00517.38
8.1.40.0060.00617.37
8.1.30.0030.00717.51
8.1.20.0070.00317.46
8.1.10.0030.00717.39
8.1.00.0060.00517.25
8.0.300.0050.00218.77
8.0.290.0000.01116.58
8.0.280.0040.00418.36
8.0.270.0030.00316.76
8.0.260.0030.00317.17
8.0.250.0050.00316.84
8.0.240.0030.00316.83
8.0.230.0050.00316.71
8.0.220.0040.00416.63
8.0.210.0070.00016.69
8.0.200.0060.00416.80
8.0.190.0070.00316.74
8.0.180.0090.00016.71
8.0.170.0040.00616.80
8.0.160.0040.00616.74
8.0.150.0060.00416.71
8.0.140.0030.00616.68
8.0.130.0130.00215.53
8.0.120.0080.00616.74
8.0.110.0080.00516.69
8.0.100.0100.00316.73
8.0.90.0070.00716.76
8.0.80.0130.00816.76
8.0.70.0130.00116.63
8.0.60.0100.00416.68
8.0.50.0100.00616.67
8.0.30.0100.01016.79
8.0.20.0110.00816.99
8.0.10.0140.00616.85
8.0.00.0080.00816.69
7.4.330.0050.00015.55
7.4.320.0000.00616.37
7.4.300.0050.00716.59
7.4.290.0070.00516.51
7.4.280.0120.00216.43
7.4.270.0060.00616.43
7.4.260.0120.00416.44
7.4.250.0140.00316.44
7.4.240.0110.00616.49
7.4.230.0110.00616.50
7.4.220.0070.00816.50
7.4.210.0120.00616.46
7.4.200.0100.00416.42
7.4.190.0140.00216.57
7.4.180.0130.00516.49
7.4.160.0140.00516.45
7.4.150.0150.00216.44
7.4.140.0100.00717.04
7.4.130.0120.00716.40
7.4.120.0090.00916.32
7.4.110.0110.00616.20
7.4.100.0110.00716.34
7.4.90.0120.00716.40
7.4.80.0090.00816.95
7.4.70.0090.00916.32
7.4.60.0110.00716.26
7.4.50.0080.00816.14
7.4.40.0090.00916.15
7.4.30.0100.00916.19
7.4.20.0100.00916.22
7.4.10.0120.00716.31
7.4.00.0120.00616.17
7.3.330.0120.00215.18
7.3.320.0110.00415.17
7.3.310.0110.00416.16
7.3.300.0080.00616.17
7.3.290.0140.00216.18
7.3.280.0110.00616.26
7.3.270.0140.00516.26
7.3.260.0120.00516.24
7.3.250.0140.00516.21
7.3.240.0110.00716.31
7.3.230.0100.00816.38
7.3.220.0130.00416.13
7.3.210.0140.00516.23
7.3.200.0120.00616.20
7.3.190.0120.00716.21
7.3.180.0110.00816.26
7.3.170.0080.01016.29
7.3.160.0110.00816.22
7.3.150.0120.00616.19
7.3.140.0130.00616.22
7.3.130.0120.00916.20
7.3.120.0090.01016.06
7.3.110.0100.00915.93
7.3.100.0100.00615.77
7.3.90.0100.00815.81
7.3.80.0090.00815.67
7.3.70.0080.00815.47
7.3.60.0080.00815.44
7.3.50.0080.00715.44
7.3.40.0100.00715.42
7.3.30.0090.00815.39
7.3.20.0190.00615.72
7.3.10.0150.00815.74
7.3.00.0310.00715.56
7.2.340.0100.00816.27
7.2.330.0110.00716.31
7.2.320.0130.00716.27
7.2.310.0110.00816.27
7.2.300.0120.00616.32
7.2.290.0100.01016.29
7.2.280.0130.00816.32
7.2.270.0110.00916.32
7.2.260.0120.00816.32
7.2.250.0130.00716.35
7.2.240.0090.01116.07
7.2.230.0080.01015.96
7.2.220.0090.00915.96
7.2.210.0090.00815.70
7.2.200.0080.00915.58
7.2.190.0090.00715.49
7.2.180.0090.00815.50
7.2.170.0090.00815.51
7.2.160.0090.00815.47
7.2.150.0180.00815.84
7.2.140.0170.00715.85
7.2.130.0330.00815.78
7.2.120.0390.00815.73
7.2.110.0310.00915.81
7.2.100.0320.00915.74
7.2.90.0360.00915.74
7.2.80.0290.00915.73
7.2.70.0260.00815.78
7.2.60.0300.00815.80
7.2.50.0290.00715.80
7.2.40.0260.00915.86
7.2.30.0260.00815.85
7.2.20.0270.00815.86
7.2.10.0310.00915.84
7.2.00.0280.00915.86
7.1.330.0120.00815.73
7.1.320.0110.00815.42
7.1.310.0110.00915.23
7.1.300.0110.00714.86
7.1.290.0120.00614.88
7.1.280.0100.00914.89
7.1.270.0190.00714.84
7.1.260.0160.00614.77
7.1.250.0380.00714.63
7.1.240.0440.00814.52
7.1.230.0270.00814.56
7.1.220.0320.00714.53
7.1.210.0380.00814.57
7.1.200.0360.00814.56
7.1.190.0320.00814.56
7.1.180.0320.00914.55
7.1.170.0300.00814.55
7.1.160.0310.00814.64
7.1.150.0340.00614.62
7.1.140.0330.00814.66
7.1.130.0320.00714.67
7.1.120.0310.00814.65
7.1.110.0360.00814.60
7.1.100.0350.00814.61
7.1.90.0390.00814.58
7.1.80.0400.00814.64
7.1.70.0350.00814.52
7.1.60.0350.00715.26
7.1.50.0430.00715.26
7.1.40.0330.00715.28
7.1.30.0310.00915.26
7.1.20.0330.00915.27
7.1.10.0350.00814.58
7.1.00.0430.00814.52
7.0.330.0380.00814.31
7.0.320.0190.00814.93
7.0.310.0190.00714.92
7.0.300.0180.00814.89
7.0.290.0230.00815.01
7.0.280.0190.00714.90
7.0.270.0230.00815.01
7.0.260.0220.00715.02
7.0.250.0200.00715.02
7.0.240.0230.00715.00
7.0.230.0230.00915.03
7.0.220.0210.01014.98
7.0.210.0210.00814.90
7.0.200.0220.00914.92
7.0.190.0220.00714.83
7.0.180.0210.00714.86
7.0.170.0180.00814.89
7.0.160.0200.00814.88
7.0.150.0200.00714.89
7.0.140.0210.00714.91
7.0.130.0230.00714.99
7.0.120.0220.00814.95
7.0.110.0220.00714.92
7.0.100.0230.00814.92
7.0.90.0210.00914.97
7.0.80.0220.00714.85
7.0.70.0210.00814.95
7.0.60.0190.00914.90
7.0.50.0230.00914.90
7.0.40.0280.00714.89
7.0.30.0250.00914.88
7.0.20.0200.00814.90
7.0.10.0230.00814.93
7.0.00.0220.00714.91
5.6.400.0120.00914.80
5.6.390.0120.00914.82
5.6.380.0120.01014.73
5.6.370.0140.00915.16
5.6.360.0140.00915.23
5.6.350.0120.01115.14
5.6.340.0120.01015.15
5.6.330.0130.00815.12
5.6.320.0130.01015.11
5.6.310.0140.01015.21
5.6.300.0120.01315.50
5.6.290.0120.01615.55
5.6.280.0140.01315.50
5.6.270.0150.01315.55
5.6.260.0140.01415.59
5.6.250.0160.01115.57
5.6.240.0150.01315.55
5.6.230.0120.01415.57
5.6.220.0140.01415.52
5.6.210.0140.01315.57
5.6.200.0140.01615.54
5.6.190.0160.01215.47
5.6.180.0140.01415.57
5.6.170.0150.01315.47
5.6.160.0150.01215.52
5.6.150.0130.01415.47
5.6.140.0140.01415.49
5.6.130.0150.01215.51
5.6.120.0130.01415.50
5.6.110.0140.01215.51
5.6.100.0130.01315.51
5.6.90.0150.01215.56
5.6.80.0120.01315.43
5.6.70.0130.01315.42
5.6.60.0120.01415.44
5.6.50.0130.01315.45
5.6.40.0140.01315.43
5.6.30.0150.01115.41
5.6.20.0140.01415.38
5.6.10.0140.01215.39
5.6.00.0130.01215.40

preferences:
63.54 ms | 403 KiB | 5 Q