3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function foo (string $bar = null ): string { echo 'test'; }; foo(); foo(null); foo('100');

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.60.0140.00016.63
8.3.50.0110.00318.01
8.3.40.0110.00318.69
8.3.30.0100.00318.67
8.3.20.0070.00020.33
8.3.10.0040.00423.26
8.3.00.0080.00019.38
8.2.180.0030.01418.34
8.2.170.0100.00322.96
8.2.160.0030.01020.30
8.2.150.0060.00324.18
8.2.140.0090.00024.66
8.2.130.0050.00326.16
8.2.120.0060.00317.75
8.2.110.0170.00722.25
8.2.100.0070.00417.93
8.2.90.0000.00819.23
8.2.80.0040.00417.97
8.2.70.0000.00817.73
8.2.60.0050.00317.93
8.2.50.0080.00018.07
8.2.40.0000.00719.37
8.2.30.0040.00420.61
8.2.20.0040.00417.68
8.2.10.0030.00617.87
8.2.00.0070.00018.04
8.1.280.0090.00625.92
8.1.270.0120.00824.66
8.1.260.0060.00326.35
8.1.250.0050.00228.09
8.1.240.0000.00922.51
8.1.230.0060.00617.66
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.00817.23
8.1.190.0030.00617.35
8.1.180.0000.00918.10
8.1.170.0000.00918.57
8.1.160.0040.00421.94
8.1.150.0000.00718.81
8.1.140.0040.00419.37
8.1.130.0050.00317.48
8.1.120.0000.00717.39
8.1.110.0000.00817.21
8.1.100.0050.00217.36
8.1.90.0000.00717.37
8.1.80.0040.00417.21
8.1.70.0030.00317.38
8.1.60.0080.00017.36
8.1.50.0030.00517.42
8.1.40.0030.00717.45
8.1.30.0040.00417.58
8.1.20.0080.00017.59
8.1.10.0000.00817.37
8.1.00.0060.00317.30
8.0.300.0050.00318.77
8.0.290.0040.00416.88
8.0.280.0000.00718.51
8.0.270.0000.00817.25
8.0.260.0000.00618.45
8.0.250.0040.00416.98
8.0.240.0060.00316.96
8.0.230.0070.00016.93
8.0.220.0030.00316.93
8.0.210.0000.00716.90
8.0.200.0030.00316.86
8.0.190.0040.00416.87
8.0.180.0040.00416.92
8.0.170.0040.00416.94
8.0.160.0050.00316.97
8.0.150.0000.00716.79
8.0.140.0040.00416.71
8.0.130.0030.00313.25
8.0.120.0050.00316.73
8.0.110.0000.00716.83
8.0.100.0030.00516.93
8.0.90.0000.00816.88
8.0.80.0040.01416.86
8.0.70.0000.00716.96
8.0.60.0080.00016.71
8.0.50.0030.00516.89
8.0.30.0080.01117.11
8.0.20.0080.01117.40
8.0.10.0020.00517.05
8.0.00.0080.00916.92
7.4.330.0030.00315.08
7.4.320.0000.00716.52
7.4.300.0000.00616.49
7.4.290.0000.00716.63
7.4.280.0040.00416.56
7.4.270.0000.00716.40
7.4.260.0040.00416.52
7.4.250.0000.00816.49
7.4.240.0040.00316.44
7.4.230.0070.00016.45
7.4.220.0070.01116.56
7.4.210.0090.00816.50
7.4.200.0070.00016.43
7.4.160.0110.00416.30
7.4.150.0130.00717.40
7.4.140.0100.01017.86
7.4.130.0110.00616.51
7.4.120.0130.00916.61
7.4.110.0110.00616.42
7.4.100.0030.01516.63
7.4.90.0190.00016.55
7.4.80.0090.01219.39
7.4.70.0090.00616.63
7.4.60.0130.00316.44
7.4.50.0050.00316.41
7.4.40.0100.00716.46
7.4.30.0030.01416.47
7.4.00.0060.00615.20
7.3.330.0050.00013.37
7.3.320.0000.00613.38
7.3.310.0070.00016.41
7.3.300.0070.00016.31
7.3.290.0030.00316.18
7.3.280.0050.01216.32
7.3.270.0070.01017.40
7.3.260.0060.01016.38
7.3.250.0090.00716.54
7.3.240.0050.01216.45
7.3.230.0150.00316.39
7.3.210.0080.00816.25
7.3.200.0090.01516.51
7.3.190.0030.01316.55
7.3.180.0030.01316.25
7.3.170.0040.01716.57
7.3.160.0030.01416.46
7.2.330.0100.00716.53
7.2.320.0100.01316.32
7.2.310.0090.00816.54
7.2.300.0090.01316.53
7.2.290.0150.01216.60
7.2.60.0070.00716.85
7.2.00.0030.00719.28
7.1.200.0040.01115.50
7.1.100.0040.01117.93
7.1.70.0000.00817.02
7.1.60.0090.00619.43
7.1.50.0000.02116.66
7.1.00.0030.07322.33
7.0.200.0650.00714.62
7.0.60.0230.03719.89
7.0.50.0100.07717.87
7.0.40.0000.04720.21
7.0.30.0270.08320.10
7.0.20.0370.07020.33
7.0.10.0000.05720.08
7.0.00.0070.09020.25
5.6.210.0000.09020.70
5.6.200.0100.08318.16
5.6.190.0100.03720.69
5.6.180.0230.08320.39
5.6.170.0230.06020.45
5.6.160.0000.08020.54
5.6.150.0100.08018.18
5.6.140.0100.04018.18
5.6.130.0070.08318.27
5.6.120.0170.07720.99
5.6.110.0170.07721.14
5.6.100.0000.04321.07
5.6.90.0100.03721.01
5.6.80.0070.06020.38
5.5.350.0170.06020.44
5.5.340.0030.04317.97
5.5.330.0070.07720.40
5.5.320.0200.06720.22
5.5.310.0270.07020.28
5.5.300.0000.04017.95
5.5.290.0030.08717.95
5.5.280.0030.05020.96
5.5.270.0000.06720.89
5.5.260.0170.07320.79
5.5.250.0030.05020.50
5.5.240.0200.07720.14

preferences:
44.04 ms | 400 KiB | 5 Q