3v4l.org

run code in 300+ PHP versions simultaneously
<?php function function_with_a_byref_nonnull_default_parameter(&$a = 123) { echo $a; } function_with_a_byref_nonnull_default_parameter();

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.1rc30.0080.00016.75
8.1rc20.0040.00416.80
8.1rc10.0080.00016.87
8.0.130.0030.00313.14
8.0.120.0050.00316.62
8.0.110.0000.00716.60
8.0.100.0000.00716.71
8.0.90.0040.00416.78
8.0.80.0120.00316.72
8.0.70.0000.00716.77
8.0.60.0060.00316.64
8.0.50.0030.00616.63
8.0.30.0060.01117.04
8.0.20.0130.00817.40
8.0.10.0040.00416.84
8.0.00.0120.00816.75
7.4.260.0000.00716.34
7.4.250.0030.00316.45
7.4.240.0030.00416.49
7.4.230.0000.00716.52
7.4.220.0060.01216.47
7.4.210.0060.01316.57
7.4.200.0070.00016.34
7.4.160.0060.00916.55
7.4.150.0090.00917.40
7.4.140.0060.01217.86
7.4.130.0060.01316.58
7.4.120.0080.01116.40
7.4.110.0080.00816.41
7.4.100.0190.02816.50
7.4.90.0060.01016.35
7.4.80.0100.01419.39
7.4.70.0110.01016.23
7.4.60.0100.01016.34
7.4.50.0000.00616.45
7.4.40.0100.00616.27
7.4.30.0070.01016.40
7.4.00.0060.01214.87
7.3.330.0050.00013.12
7.3.320.0050.00013.31
7.3.310.0080.00016.40
7.3.300.0030.00316.30
7.3.290.0100.00516.29
7.3.280.0100.00816.30
7.3.270.0120.00417.40
7.3.260.0100.00716.45
7.3.250.0070.01216.37
7.3.240.0120.00316.45
7.3.230.0030.01316.52
7.3.210.0000.01616.53
7.3.200.0060.01019.39
7.3.190.0100.00616.36
7.3.180.0090.00816.63
7.3.170.0060.00916.56
7.3.160.0030.01316.47
7.2.330.0070.01016.29
7.2.320.0070.01116.62
7.2.310.0130.00316.28
7.2.300.0070.01316.67
7.2.290.0110.01116.23
7.2.00.0000.01019.23
7.1.100.0040.00817.61
7.1.70.0000.00717.15
7.1.60.0140.01119.13
7.1.50.0040.01816.93
7.1.00.0070.07322.41
7.0.200.0000.00716.41
7.0.60.0170.06319.86
7.0.50.0100.03317.85
7.0.40.0030.07019.98
7.0.30.0200.04720.30
7.0.20.0130.04320.26
7.0.10.0030.07720.15
7.0.00.0200.07720.27
5.6.280.0030.07320.94
5.6.210.0070.07020.63
5.6.200.0130.08318.24
5.6.190.0070.08720.52
5.6.180.3170.03720.50
5.6.170.0130.07020.54
5.6.160.0130.07720.57
5.6.150.0100.08018.17
5.6.140.0100.05318.18
5.6.130.0000.04318.14
5.6.120.0030.07020.99
5.6.110.0070.04720.98
5.6.100.0070.08321.00
5.6.90.0170.07721.01
5.6.80.0100.07320.43
5.6.70.0230.06020.52
5.5.350.0330.06720.43
5.5.340.0030.08317.99
5.5.330.0000.06320.19
5.5.320.0400.07020.35
5.5.310.0330.07020.30
5.5.300.0070.08018.07
5.5.290.0000.09018.06
5.5.280.0030.04020.88
5.5.270.0030.07720.84
5.5.260.0100.03720.76
5.5.250.0030.04320.61
5.5.240.0200.03020.19
5.4.450.0830.04719.66
5.4.440.0500.06319.55
5.4.430.0700.05319.61
5.4.420.0900.05319.48
5.4.410.0870.05719.21
5.4.400.0900.05319.17
5.4.390.0830.06019.16
5.4.380.0900.05019.39
5.4.370.0770.05019.27
5.4.360.0730.06019.01
5.4.350.1030.05018.87
5.4.340.0730.05319.29
5.4.320.0970.05019.23
5.4.310.0870.05319.28
5.4.300.0770.04319.14
5.4.290.0670.05319.06
5.4.280.0730.04719.25
5.4.270.0700.05019.12
5.4.260.0630.05719.37
5.4.250.0830.05019.03
5.4.240.0900.04719.05
5.4.230.0900.04718.98
5.4.220.0930.04319.29
5.4.210.0830.05719.30
5.4.200.0900.04316.90
5.4.190.0830.05319.18
5.4.180.0900.04719.13
5.4.170.0800.06018.89
5.4.160.0870.05019.15
5.4.150.0900.04718.92
5.4.140.0770.06016.40
5.4.130.0670.04716.73
5.4.120.0800.05316.55
5.4.110.0700.04316.55
5.4.100.0700.04716.78
5.4.90.0630.05316.39
5.4.80.0630.05316.54
5.4.70.0830.05016.52
5.4.60.0730.06316.36
5.4.50.0700.04316.30
5.4.40.0730.05016.27
5.4.30.0670.05016.52
5.4.20.0970.04016.32
5.4.10.0670.04716.50
5.4.00.0730.04015.86
5.3.290.0630.06014.89
5.3.280.0700.05014.45
5.3.270.0670.05314.61
5.3.260.0730.04714.75
5.3.250.0770.05714.57
5.3.240.0670.05014.61
5.3.230.0730.04714.50
5.3.220.0970.03714.60
5.3.210.0830.05014.57
5.3.200.0700.05014.48
5.3.190.0670.05314.58
5.3.180.0630.05314.57
5.3.170.0800.04014.65
5.3.160.0700.04714.55
5.3.150.0770.05714.58
5.3.140.0970.05714.46
5.3.130.0830.05314.60
5.3.120.0830.05014.56
5.3.110.0730.06314.54
5.3.100.0900.04714.06
5.3.90.0730.04713.92
5.3.80.0830.05013.94
5.3.70.0870.04713.91
5.3.60.0870.04713.92
5.3.50.0800.05313.85
5.3.40.0870.04714.09
5.3.30.0900.04313.82
5.3.20.0830.04713.58
5.3.10.0830.05013.58
5.3.00.0900.04313.54
5.2.170.0700.04011.05
5.2.160.0700.03711.09
5.2.150.0670.04011.19
5.2.140.0570.05011.20
5.2.130.0770.03311.00
5.2.120.0770.03011.01
5.2.110.0500.04311.17
5.2.100.0670.04311.03
5.2.90.0830.04311.00
5.2.80.0630.04311.00
5.2.70.0570.03711.10
5.2.60.0570.04011.11
5.2.50.0500.04710.92
5.2.40.0470.03710.90
5.2.30.0470.04011.02
5.2.20.0470.03710.91
5.2.10.0500.04310.81
5.2.00.0600.04010.71
5.1.60.0600.0279.91
5.1.50.0500.03710.23
5.1.40.0530.0239.90
5.1.30.0430.03710.20
5.1.20.0430.03710.27
5.1.10.0430.03310.13
5.1.00.0500.03010.07
5.0.50.0270.0278.46
5.0.40.0230.0278.38
5.0.30.0200.0478.11
5.0.20.0300.0208.22
5.0.10.0230.0308.06
5.0.00.0170.0478.04
4.4.90.0200.0235.86
4.4.80.0370.0205.84
4.4.70.0200.0235.88
4.4.60.0200.0235.79
4.4.50.0300.0175.77
4.4.40.0270.0375.85
4.4.30.0330.0275.82
4.4.20.0270.0235.94
4.4.10.0300.0205.82
4.4.00.0230.0305.88
4.3.110.0200.0235.73
4.3.100.0270.0205.79
4.3.90.0200.0205.77
4.3.80.0200.0335.75
4.3.70.0200.0205.76
4.3.60.0100.0235.74
4.3.50.0200.0235.66
4.3.40.0230.0305.63
4.3.30.0130.0204.52
4.3.20.0100.0234.58
4.3.10.0170.0204.37
4.3.00.0200.01710.84

preferences:
34.17 ms | 455 KiB | 5 Q