3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function foo (string $bar = null ): string { return '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.0110.00416.63
8.3.50.0130.00717.89
8.3.40.0150.00618.72
8.3.30.0040.01118.34
8.3.20.0040.00420.39
8.3.10.0050.00323.64
8.3.00.0040.00419.00
8.2.180.0110.00718.16
8.2.170.0130.00022.96
8.2.160.0070.00720.38
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00417.50
8.2.110.0030.00621.12
8.2.100.0120.00017.68
8.2.90.0080.00019.10
8.2.80.0080.00017.97
8.2.70.0060.00317.38
8.2.60.0060.00317.91
8.2.50.0080.00018.07
8.2.40.0040.00421.12
8.2.30.0040.00420.68
8.2.20.0020.00517.61
8.2.10.0070.00017.94
8.2.00.0040.00417.79
8.1.280.0090.00625.92
8.1.270.0040.00424.66
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0090.00019.20
8.1.230.0040.00717.54
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0080.00016.88
8.1.180.0080.00018.10
8.1.170.0000.00818.46
8.1.160.0000.00721.86
8.1.150.0000.00718.80
8.1.140.0040.00419.51
8.1.130.0000.00717.50
8.1.120.0000.00817.35
8.1.110.0050.00217.27
8.1.100.0070.00017.29
8.1.90.0000.00817.27
8.1.80.0050.00317.39
8.1.70.0020.00517.34
8.1.60.0030.00617.53
8.1.50.0030.00617.42
8.1.40.0070.00417.41
8.1.30.0050.00317.63
8.1.20.0000.00717.47
8.1.10.0050.00217.39
8.1.00.0030.00617.29
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0070.00018.24
8.0.270.0030.00317.13
8.0.260.0030.00317.04
8.0.250.0040.00416.86
8.0.240.0000.00816.79
8.0.230.0030.00316.76
8.0.220.0030.00316.68
8.0.210.0000.00716.78
8.0.200.0040.00416.85
8.0.190.0040.00416.71
8.0.180.0080.00016.81
8.0.170.0020.00516.68
8.0.160.0050.00316.85
8.0.150.0080.00016.72
8.0.140.0000.00716.73
8.0.130.0030.00313.16
8.0.120.0040.00416.75
8.0.110.0030.00516.70
8.0.100.0040.00416.71
8.0.90.0000.00716.68
8.0.80.0090.00916.71
8.0.70.0040.00416.68
8.0.60.0020.00516.82
8.0.50.0000.00716.76
8.0.30.0110.00617.06
8.0.20.0130.00517.40
8.0.10.0000.00716.91
8.0.00.0080.01016.53
7.4.330.0000.00615.08
7.4.320.0000.00616.52
7.4.300.0060.00016.52
7.4.290.0070.00016.57
7.4.280.0040.00416.50
7.4.270.0060.00016.39
7.4.260.0030.00516.32
7.4.250.0040.00416.54
7.4.240.0040.00416.53
7.4.230.0070.00016.47
7.4.220.0090.00916.63
7.4.210.0090.00816.51
7.4.200.0070.00016.56
7.4.160.0060.01516.51
7.4.150.0070.01017.40
7.4.140.0080.01017.86
7.4.130.0130.00316.30
7.4.120.0100.00816.31
7.4.110.0140.00916.35
7.4.100.0180.00716.34
7.4.90.0000.01716.23
7.4.80.0140.00619.39
7.4.70.0130.00316.42
7.4.60.0130.00316.30
7.4.50.0080.00016.20
7.4.40.0150.00316.59
7.4.30.0150.00616.36
7.4.00.0120.00314.94
7.3.330.0050.00013.25
7.3.320.0000.00513.21
7.3.310.0040.00416.25
7.3.300.0000.00716.20
7.3.290.0030.00316.16
7.3.280.0100.00916.18
7.3.270.0100.00717.40
7.3.260.0160.00616.36
7.3.250.0140.00416.29
7.3.240.0070.01016.35
7.3.230.0080.01216.39
7.3.210.0130.00316.16
7.3.200.0060.00916.22
7.3.190.0030.01216.34
7.3.180.0090.00616.38
7.3.170.0130.00316.45
7.3.160.0040.01216.27
7.2.330.0170.00016.71
7.2.320.0170.00016.45
7.2.310.0060.00916.33
7.2.300.0090.00916.41
7.2.290.0090.00916.39
7.2.60.0030.01316.75
7.2.00.0110.01519.33
7.1.200.0060.00615.72
7.1.100.0090.00418.20
7.1.70.0040.00416.88
7.1.60.0110.00719.43
7.1.50.0120.00916.86
7.1.00.0030.07722.53
7.0.200.0470.00714.73
7.0.60.0030.08019.91
7.0.50.0070.05317.73
7.0.40.0000.04720.39
7.0.30.0270.08020.18
7.0.20.0230.07020.15
7.0.10.0070.04020.24
7.0.00.0070.07720.23
5.6.280.0000.03320.89
5.6.210.0200.06720.63
5.6.200.0100.08018.18
5.6.190.0100.06020.39
5.6.180.0330.04320.61
5.6.170.0270.09320.55
5.6.160.0030.09720.61
5.6.150.0070.08018.23
5.6.140.0100.07718.25
5.6.130.0070.08718.23
5.6.120.0070.06021.13
5.6.110.0100.06720.96
5.6.100.0100.08021.02
5.6.90.0000.04721.00
5.6.80.0070.06720.39
5.5.350.4200.04020.52
5.5.340.0170.07318.07
5.5.330.0070.08020.20
5.5.320.0300.03020.38
5.5.310.0470.05720.27
5.5.300.0000.04017.97
5.5.290.0130.06717.98
5.5.280.0130.06720.69
5.5.270.0130.04320.98
5.5.260.0130.07720.84
5.5.250.0000.04320.47
5.5.240.0130.07320.35

preferences:
51.34 ms | 400 KiB | 5 Q