3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; $b = [&$a]; $c = $b; unset($a); // <-- $b[0] = 2; echo "$b[0] $c[0]";

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.30.0120.00519.64
8.5.20.0100.00919.45
8.5.10.0110.00816.57
8.5.00.0120.00919.73
8.4.180.0140.01022.01
8.4.170.0120.01120.66
8.4.160.0120.00923.95
8.4.150.0020.00114.05
8.4.140.0180.00517.41
8.4.130.0110.00517.76
8.4.120.0150.00620.70
8.4.110.0080.00122.41
8.4.100.0040.00517.81
8.4.90.0120.00920.41
8.4.80.0100.01017.59
8.4.70.0040.00417.72
8.4.60.0110.01018.50
8.4.50.0080.01418.52
8.4.40.0100.01020.34
8.4.30.0040.00818.60
8.4.20.0110.00420.79
8.4.10.0100.00719.51
8.3.300.0110.00920.78
8.3.290.0100.01020.64
8.3.280.0100.01118.27
8.3.270.0130.00816.28
8.3.260.0110.00816.50
8.3.250.0060.00618.86
8.3.240.0100.00616.62
8.3.230.0150.00516.39
8.3.220.0030.00617.17
8.3.210.0060.00216.47
8.3.200.0060.00316.43
8.3.190.0080.00617.02
8.3.180.0050.00316.91
8.3.170.0110.00720.53
8.3.160.0040.01116.46
8.3.150.0000.01116.95
8.3.140.0120.00616.35
8.3.130.0040.00418.42
8.3.120.0090.00020.58
8.3.110.0040.00420.94
8.3.100.0090.00916.66
8.3.90.0070.01426.77
8.3.80.0060.00317.97
8.3.70.0070.00718.43
8.3.60.0110.00418.05
8.3.50.0200.00016.28
8.3.40.0130.00318.81
8.3.30.0080.00818.71
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.300.0150.00522.11
8.2.290.0110.00420.32
8.2.280.0140.00416.69
8.2.270.0180.00016.97
8.2.260.0040.00416.65
8.2.250.0030.00618.65
8.2.240.0080.00017.00
8.2.230.0080.00022.58
8.2.220.0040.00424.06
8.2.210.0040.01526.77
8.2.200.0040.00718.41
8.2.190.0110.00416.63
8.2.180.0120.00925.92
8.2.170.0070.01418.75
8.2.160.0070.01022.96
8.2.150.0030.00625.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.79
8.2.110.0090.00020.47
8.2.100.0070.00319.22
8.1.340.0120.01021.41
8.1.330.0120.00821.91
8.1.320.0140.00516.36
8.1.310.0040.00417.89
8.1.300.0090.00915.96
8.1.290.0040.00418.88
8.1.280.0070.00725.92
8.1.270.0140.00724.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0040.00420.40
8.1.230.0040.00422.05
8.0.80.0110.00716.85

preferences:
97.21 ms | 475 KiB | 5 Q