3v4l.org

run code in 300+ PHP versions simultaneously
<?php function byref(&$arg) { $arg++; } // no reference $arga = 1; $a = [$arga]; byref(...$a); echo $arga; // reference $argb = 1; $b = [&$argb]; byref(...$b); echo $argb;

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.5.00.0100.01219.71
8.4.150.0020.00014.05
8.4.140.0070.01517.51
8.4.130.0120.00918.55
8.4.120.0120.00824.07
8.4.110.0050.00320.57
8.4.100.0110.00618.71
8.4.90.0090.00720.80
8.4.80.0110.00918.90
8.4.70.0090.01018.00
8.4.60.0050.01118.69
8.4.50.0050.00420.59
8.4.40.0170.00319.43
8.4.30.0100.00719.50
8.4.20.0060.00318.00
8.4.10.0040.00417.81
8.3.280.0100.01018.34
8.3.270.0120.00916.69
8.3.260.0110.00816.42
8.3.250.0110.00718.96
8.3.240.0100.00916.96
8.3.230.0100.00916.66
8.3.220.0060.00319.01
8.3.210.0140.00518.33
8.3.200.0070.00316.55
8.3.190.0080.00718.75
8.3.180.0100.00516.73
8.3.170.0070.01117.21
8.3.160.0040.01118.23
8.3.150.0130.00616.52
8.3.140.0150.00317.12
8.3.130.0030.00618.35
8.3.120.0110.00718.80
8.3.110.0040.00420.94
8.3.100.0060.01024.06
8.3.90.0120.00326.77
8.3.80.0030.00716.38
8.3.70.0110.00416.63
8.3.60.0130.00616.25
8.3.50.0160.00321.14
8.3.40.0120.00318.92
8.3.30.0070.00718.54
8.3.20.0070.00020.21
8.3.10.0080.00021.73
8.3.00.0030.00717.71
8.2.290.0030.00520.50
8.2.280.0140.00522.39
8.2.270.0100.01017.37
8.2.260.0070.01116.30
8.2.250.0060.00316.46
8.2.240.0060.00318.84
8.2.230.0150.00422.58
8.2.220.0000.00937.54
8.2.210.0160.00326.77
8.2.200.0060.00316.63
8.2.190.0070.01018.16
8.2.180.0070.00725.92
8.2.170.0160.00622.96
8.2.160.0100.00319.50
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00420.39
8.2.120.0070.00026.35
8.2.110.0000.01022.11
8.2.100.0070.00417.91
8.2.90.0090.00022.36
8.2.80.0060.00617.97
8.2.70.0080.00017.93
8.2.60.0040.00418.03
8.2.50.0000.00818.10
8.2.40.0000.00820.47
8.2.30.0000.00719.41
8.2.20.0070.00318.11
8.2.10.0040.00418.36
8.2.00.0040.00418.25
8.1.330.0110.00821.75
8.1.320.0140.00615.76
8.1.310.0060.01218.45
8.1.300.0060.00318.23
8.1.290.0060.00330.84
8.1.280.0070.01325.92
8.1.270.0070.00022.07
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00022.42
8.1.230.0030.00920.88
8.1.220.0000.00817.88
8.1.210.0060.00318.95
8.1.200.0080.00317.25
8.1.190.0040.00417.35
8.1.180.0000.00718.10
8.1.170.0080.00018.65
8.1.160.0000.00718.91
8.1.150.0040.00420.09
8.1.140.0050.00219.52
8.1.130.0000.00717.29
8.1.120.0030.00317.45
8.1.110.0000.00817.45
8.1.100.0040.00417.47
8.1.90.0070.00017.43
8.1.80.0050.00317.35
8.1.70.0030.00517.47
8.1.60.0020.00517.41
8.1.50.0080.00017.46
8.1.40.0060.00317.42
8.1.30.0050.00217.57
8.1.20.0000.00817.64
8.1.10.0050.00217.48
8.1.00.0030.00617.29
8.0.300.0000.00720.03
8.0.290.0070.00416.62
8.0.280.0070.00018.48
8.0.270.0000.00717.27
8.0.260.0030.00316.71
8.0.250.0030.00316.84
8.0.240.0040.00416.81
8.0.230.0030.00316.98
8.0.220.0000.00716.89
8.0.210.0040.00416.88
8.0.200.0080.00316.92
8.0.190.0000.00816.89
8.0.180.0000.00716.89
8.0.170.0040.00416.93
8.0.160.0000.00816.87
8.0.150.0100.00016.81
8.0.140.0030.00316.86
8.0.130.0030.00313.31
8.0.120.0030.00516.84
8.0.110.0070.00016.87
8.0.100.0000.00716.77
8.0.90.0030.00516.78
8.0.80.0060.01516.84
8.0.70.0070.00016.86
8.0.60.0000.00716.92
8.0.50.0030.00516.80
8.0.30.0070.01217.04
8.0.20.0080.01117.40
8.0.10.0040.00417.05
8.0.00.0090.00916.93
7.4.330.0000.00515.55
7.4.320.0050.00216.48
7.4.300.0030.00316.50
7.4.290.0050.00316.49
7.4.280.0040.00416.35
7.4.270.0070.00016.54
7.4.260.0030.00516.57
7.4.250.0030.00316.32
7.4.240.0000.00716.60
7.4.230.0030.00316.57
7.4.220.0040.01416.48
7.4.210.0080.00616.61
7.4.200.0030.00516.40
7.4.160.0090.00716.33
7.4.150.0070.01017.40
7.4.140.0090.01017.86
7.4.130.0110.01116.50
7.4.120.0110.00916.45
7.4.110.0090.00916.61
7.4.100.0060.01216.60
7.4.90.0110.00716.45
7.4.80.0090.00919.39
7.4.70.0150.00316.39
7.4.60.0030.01316.73
7.4.50.0070.00716.13
7.4.40.0110.00616.46
7.4.30.0060.01216.48
7.4.00.0060.01115.11
7.3.330.0030.00313.27
7.3.320.0030.00313.24
7.3.310.0000.00716.11
7.3.300.0070.00016.17
7.3.290.0000.00716.16
7.3.280.0090.00916.26
7.3.270.0120.00617.40
7.3.260.0110.00716.42
7.3.250.0110.00716.47
7.3.240.0070.01016.53
7.3.230.0070.01716.45
7.3.210.0060.01116.26
7.3.200.0040.01216.17
7.3.190.0080.00816.29
7.3.180.0130.00316.37
7.3.170.0070.00916.46
7.3.160.0120.00316.31
7.3.120.0160.00314.62
7.3.110.0090.00914.77
7.3.100.0060.00914.80
7.3.90.0120.00314.63
7.3.80.0030.00814.76
7.3.70.0040.00714.67
7.3.60.0090.00914.79
7.3.50.0030.01114.68
7.3.40.0090.00314.91
7.3.30.0130.00614.96
7.3.20.0110.00316.52
7.3.10.0120.00616.65
7.3.00.0000.01016.84
7.2.330.0060.01216.74
7.2.320.0040.01816.66
7.2.310.0150.00616.69
7.2.300.0170.00716.69
7.2.290.0110.00616.67
7.2.250.0040.01415.07
7.2.240.0100.01015.09
7.2.230.0090.00414.82
7.2.220.0080.00415.04
7.2.210.0060.00914.73
7.2.200.0090.00615.03
7.2.190.0030.00614.97
7.2.180.0090.00015.01
7.2.170.0110.00314.90
7.2.80.0260.00616.55
7.2.60.0030.01016.87
7.2.00.0090.00319.50
7.1.330.0090.00615.57
7.1.320.0000.01115.84
7.1.310.0080.00815.47
7.1.300.0070.01015.57
7.1.290.0060.00915.62
7.1.280.0080.00815.39
7.1.270.0060.01015.63
7.1.260.0110.00715.56
7.1.200.0170.00415.76
7.1.70.0030.00317.05
7.1.60.0080.00817.25
7.1.50.0140.01017.03
7.1.40.0200.01034.44
7.1.30.0100.01734.31
7.1.20.0200.01034.52
7.1.10.0070.00716.30
7.1.00.0030.01016.50
7.0.200.0040.00816.76
7.0.180.0070.00716.11
7.0.170.0100.00316.28
7.0.160.0070.00716.26
7.0.150.0030.00716.09
7.0.140.0000.01316.03
7.0.130.0030.01016.38
7.0.120.0070.00716.38
7.0.110.0000.01716.18
7.0.100.0030.01316.11
7.0.90.0030.01016.25
7.0.80.0070.00316.04
7.0.70.0000.01016.07
7.0.60.0070.00715.98
7.0.50.0030.01316.11
7.0.40.0000.01016.23
7.0.30.0030.01016.27
7.0.20.0000.01016.15
7.0.10.0070.00716.24
7.0.00.0000.01016.20

preferences:
149.93 ms | 403 KiB | 5 Q