3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AClass { public static $prop = "Hi"; } function assignRef (&$ref) { $ref = &AClass::$prop; echo "inside assignRef: $ref\n"; } $ref = "Hello"; echo "outside: $ref\n"; assignRef($ref); echo "outside: $ref\n";

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.0120.00918.43
8.3.50.0090.00617.98
8.3.40.0120.00318.67
8.3.30.0070.00719.22
8.3.20.0000.00720.25
8.3.10.0070.00021.95
8.3.00.0080.00022.52
8.2.180.0100.00716.50
8.2.170.0060.01522.96
8.2.160.0100.00320.48
8.2.150.0060.00324.18
8.2.140.0000.00924.66
8.2.130.0080.00026.16
8.2.120.0000.00819.36
8.2.110.0090.00022.24
8.2.100.0090.00317.72
8.2.90.0040.00419.17
8.2.80.0090.00017.97
8.2.70.0030.00617.50
8.2.60.0030.00618.03
8.2.50.0050.00318.07
8.2.40.0080.00018.22
8.2.30.0040.00418.11
8.2.20.0000.00717.71
8.2.10.0080.00019.53
8.2.00.0000.00717.73
8.1.280.0070.00725.92
8.1.270.0040.00422.14
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00623.80
8.1.230.0030.00919.00
8.1.220.0050.00217.78
8.1.210.0030.00518.77
8.1.200.0100.00017.34
8.1.190.0030.00517.36
8.1.180.0000.00718.56
8.1.170.0000.00818.68
8.1.160.0050.00221.99
8.1.150.0000.00718.45
8.1.140.0050.00317.39
8.1.130.0040.00417.84
8.1.120.0040.00417.41
8.1.110.0000.00717.37
8.1.100.0000.00817.45
8.1.90.0050.00217.36
8.1.80.0000.00717.39
8.1.70.0000.00717.36
8.1.60.0000.00817.48
8.1.50.0040.00417.56
8.1.40.0050.00317.42
8.1.30.0030.00617.59
8.1.20.0000.00817.63
8.1.10.0040.00417.54
8.1.00.0060.00317.46
8.0.300.0040.00418.77
8.0.290.0040.00417.05
8.0.280.0000.00718.38
8.0.270.0000.00717.25
8.0.260.0000.00716.81
8.0.250.0000.00816.80
8.0.240.0000.00717.00
8.0.230.0030.00316.95
8.0.220.0050.00216.96
8.0.210.0000.00716.93
8.0.200.0030.00316.84
8.0.190.0050.00316.94
8.0.180.0030.00616.97
8.0.170.0030.00516.95
8.0.160.0070.00016.76
8.0.150.0000.00816.82
8.0.140.0040.00416.76
8.0.130.0030.00313.28
8.0.120.0070.00016.88
8.0.110.0050.00216.72
8.0.100.0000.00716.68
8.0.90.0040.00417.00
8.0.80.0040.01116.80
8.0.70.0000.00716.70
8.0.60.0040.00416.73
8.0.50.0030.00616.70
8.0.30.0080.01016.89
8.0.20.0080.01117.40
8.0.10.0070.00017.07
8.0.00.0150.00616.62
7.4.330.0050.00015.00
7.4.320.0030.00316.38
7.4.300.0000.00616.61
7.4.290.0000.00616.59
7.4.280.0030.00316.50
7.4.270.0070.00016.64
7.4.260.0050.00316.60
7.4.250.0000.01016.56
7.4.240.0040.00416.46
7.4.230.0030.00316.62
7.4.220.0030.01416.58
7.4.210.0110.00516.55
7.4.200.0000.00716.30
7.4.190.0000.00816.66
7.4.160.0160.00016.54
7.4.150.0080.00817.40
7.4.140.0110.01117.86
7.4.130.0130.00516.53
7.4.120.0100.01116.58
7.4.110.0100.00716.45
7.4.100.0070.01016.28
7.4.90.0130.00316.45
7.4.80.0180.00319.39
7.4.70.0070.01016.34
7.4.60.0100.00716.38
7.4.50.0080.00016.30
7.4.40.0060.00722.77
7.4.30.0080.01416.39
7.4.00.0130.00315.05
7.3.330.0030.00313.25
7.3.320.0020.00213.24
7.3.310.0000.00716.20
7.3.300.0000.00716.17
7.3.290.0090.00616.27
7.3.280.0070.01016.30
7.3.270.0060.01017.40
7.3.260.0040.01316.15
7.3.250.0100.00916.50
7.3.240.0090.00916.40
7.3.230.0080.01216.50
7.3.210.0100.00616.59
7.3.200.0120.00319.39
7.3.190.0110.00816.49
7.3.180.0060.01116.73
7.3.170.0120.00616.28
7.3.160.0030.01316.36
7.3.120.0040.00714.65
7.2.330.0030.01516.64
7.2.320.0120.00616.64
7.2.310.0150.00616.53
7.2.300.0030.01316.80
7.2.290.0090.00616.39
7.2.60.0080.00816.89
7.2.00.0030.01319.11
7.1.200.0070.00715.80
7.1.70.0000.00716.88
7.1.60.0060.00617.27
7.1.50.0140.01016.70
7.1.00.0030.07722.40
7.0.200.0140.00514.66
7.0.140.0030.07022.00
7.0.60.0100.07719.89
7.0.50.0030.04017.86
7.0.40.0100.03720.02
7.0.30.0100.05020.19
7.0.20.0270.08320.07
7.0.10.0270.05320.23
7.0.00.0100.06320.29
5.6.280.0070.07020.85
5.6.210.0070.07020.61
5.6.200.0100.07318.25
5.6.190.0070.05720.77
5.6.180.3500.04320.52
5.6.170.0300.09020.55
5.6.160.0030.04320.48
5.6.150.0030.06018.19
5.6.140.0070.08018.19
5.6.130.0000.09018.14
5.6.120.0100.07721.13
5.6.110.0130.07321.16
5.6.100.0000.07720.98
5.6.90.0070.06721.04
5.6.80.0200.04020.59
5.6.70.0330.06320.41
5.5.350.0100.07020.43
5.5.340.0130.07317.95
5.5.330.0100.08720.43
5.5.320.0170.04720.35
5.5.310.0200.06320.35
5.5.300.0100.07718.08
5.5.290.0100.07717.98
5.5.280.0000.04320.89
5.5.270.0030.04020.76
5.5.260.0030.04320.84
5.5.250.0070.06320.58
5.5.240.0070.06720.26
5.4.450.0370.06019.30
5.4.440.0530.05719.58
5.4.430.0130.05719.42
5.4.420.0200.06719.43
5.4.410.0100.05319.41
5.4.400.1570.00018.79
5.4.390.0630.00018.79
5.4.380.0230.06018.59
5.4.370.0200.04718.78
5.4.360.0100.05718.78
5.4.350.0170.05018.63
5.4.340.0300.03718.75
5.4.320.0050.03812.51
5.4.310.0050.03912.50
5.4.300.0070.04212.51
5.4.290.0040.04712.50
5.4.280.0050.03612.39
5.4.270.0030.06718.80
5.4.260.0200.05718.96
5.4.250.0100.05718.80
5.4.240.0130.07018.82
5.4.230.0170.06319.02
5.4.220.0230.06718.99
5.4.210.0070.05318.80
5.4.200.0100.07018.95
5.4.190.0170.05318.65
5.4.180.0070.05718.74
5.4.170.0130.06718.81
5.4.160.0070.07718.91
5.4.150.0170.06718.64
5.4.140.0100.05016.42
5.4.130.0130.04716.43
5.4.120.0070.07016.60
5.4.110.0200.06716.42
5.4.100.0130.04716.54
5.4.90.0130.05016.45
5.4.80.0100.04716.58
5.4.70.0030.06016.45
5.4.60.0100.06716.36
5.4.50.0170.04016.45
5.4.40.0170.06016.43
5.4.30.0200.06016.63
5.4.20.0070.07316.29
5.4.10.0100.07716.44
5.4.00.0130.06015.85
5.3.290.0070.04912.80
5.3.280.0100.05714.42
5.3.270.0030.06314.66
5.3.260.0000.06714.68
5.3.250.0170.05714.60
5.3.240.0030.07714.59
5.3.230.0100.05314.64
5.3.220.0070.07714.55
5.3.210.0100.05714.64
5.3.200.0130.05014.74
5.3.190.0030.05314.55
5.3.180.0100.07314.65
5.3.170.0070.07714.64
5.3.160.0100.05014.55
5.3.150.0200.04014.57
5.3.140.0070.07314.73
5.3.130.0070.06714.53
5.3.120.0070.06314.72
5.3.110.0200.04714.52
5.3.100.0170.06013.93
5.3.90.0070.06014.17
5.3.80.0130.05313.85
5.3.70.0030.07714.10
5.3.60.0030.07014.08
5.3.50.0130.06714.02
5.3.40.0130.05713.86
5.3.30.0100.06713.80
5.3.20.0030.07313.60
5.3.10.0130.06313.63
5.3.00.0130.05013.71
5.2.170.0130.05011.31
5.2.160.0170.04311.10
5.2.150.0070.05711.36
5.2.140.0130.05711.13
5.2.130.0100.05711.28
5.2.120.0100.05011.26
5.2.110.0100.04011.26
5.2.100.0130.05011.05
5.2.90.0070.05711.09
5.2.80.0130.06011.08
5.2.70.0070.06011.16
5.2.60.0230.04711.03
5.2.50.0070.05711.09
5.2.40.0200.04011.06
5.2.30.0200.04311.06
5.2.20.0100.05311.02
5.2.10.0030.05710.93
5.2.00.0100.03710.94
5.1.60.0100.03710.00
5.1.50.0100.04310.03
5.1.40.0070.0379.82
5.1.30.0130.04010.49
5.1.20.0070.04310.44
5.1.10.0030.05010.06
5.1.00.0030.03710.07
5.0.50.0070.0278.62
5.0.40.0170.0278.38
5.0.30.0070.0408.06
5.0.20.0030.0378.28
5.0.10.0000.0438.26
5.0.00.0000.0478.20
4.4.90.0070.0207.20
4.4.80.0030.0337.20
4.4.70.0030.0237.20
4.4.60.0030.0277.20
4.4.50.0030.0277.20
4.4.40.0070.0437.20
4.4.30.0030.0307.20
4.4.20.0000.0277.20
4.4.10.0100.0237.20
4.4.00.0070.0437.20
4.3.110.0030.0307.20
4.3.100.0070.0277.20
4.3.90.0000.0277.20
4.3.80.0070.0407.20
4.3.70.0030.0307.20
4.3.60.0030.0207.20
4.3.50.0030.0307.20
4.3.40.0030.0307.20
4.3.30.0070.0237.20
4.3.20.0030.0307.20
4.3.10.0070.0237.20
4.3.00.0030.0278.17

preferences:
51.37 ms | 400 KiB | 5 Q