3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AClass { public static $prop = "Hi"; } function assignRef (&$ref) { $ref = "hi";//&AClass::$prop; echo "inside assignRef: $ref\n"; } $ref = "Hello"; 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.0100.01018.55
8.3.50.0100.00722.05
8.3.40.0070.01418.67
8.3.30.0070.00719.09
8.3.20.0040.00420.33
8.3.10.0080.00022.15
8.3.00.0030.00520.55
8.2.180.0110.01116.35
8.2.170.0000.01522.96
8.2.160.0140.00020.21
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0100.01026.16
8.2.120.0040.00417.75
8.2.110.0100.00022.28
8.2.100.0090.00319.51
8.2.90.0050.00319.22
8.2.80.0000.00918.03
8.2.70.0030.00617.36
8.2.60.0080.00017.80
8.2.50.0040.00418.07
8.2.40.0030.00618.16
8.2.30.0000.00817.96
8.2.20.0040.00417.66
8.2.10.0060.00319.46
8.2.00.0000.00817.59
8.1.280.0100.00725.92
8.1.270.0080.00022.10
8.1.260.0040.00426.35
8.1.250.0020.00528.09
8.1.240.0070.00418.62
8.1.230.0070.00419.21
8.1.220.0040.00417.76
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0040.00417.51
8.1.180.0040.00818.10
8.1.170.0000.00718.47
8.1.160.0000.00721.99
8.1.150.0040.00418.45
8.1.140.0060.00317.30
8.1.130.0000.00717.93
8.1.120.0070.00017.45
8.1.110.0030.00617.44
8.1.100.0040.00317.37
8.1.90.0000.00717.31
8.1.80.0000.00717.31
8.1.70.0000.00817.36
8.1.60.0030.00617.57
8.1.50.0040.00417.43
8.1.40.0070.00017.51
8.1.30.0040.00417.55
8.1.20.0000.00817.66
8.1.10.0030.00617.43
8.1.00.0050.00317.45
8.0.300.0040.00418.77
8.0.290.0030.00517.04
8.0.280.0030.00318.44
8.0.270.0030.00317.30
8.0.260.0000.00616.75
8.0.250.0030.00616.93
8.0.240.0040.00416.95
8.0.230.0030.00316.95
8.0.220.0030.00316.80
8.0.210.0000.00716.89
8.0.200.0030.00316.87
8.0.190.0030.00316.82
8.0.180.0000.00816.93
8.0.170.0060.00316.89
8.0.160.0040.00316.89
8.0.150.0030.00416.79
8.0.140.0050.00216.86
8.0.130.0000.00613.34
8.0.120.0040.00416.83
8.0.110.0040.00416.88
8.0.100.0040.00416.73
8.0.90.0090.00016.96
8.0.80.0090.00916.93
8.0.70.0000.00716.67
8.0.60.0000.00716.84
8.0.50.0000.00716.69
8.0.30.0120.01116.94
8.0.20.0120.00917.40
8.0.10.0040.00416.80
8.0.00.0050.01416.89
7.4.330.0050.00015.00
7.4.320.0030.00316.53
7.4.300.0040.00416.61
7.4.290.0000.00716.61
7.4.280.0030.00316.61
7.4.270.0000.00716.64
7.4.260.0030.00316.48
7.4.250.0000.00716.58
7.4.240.0030.00316.57
7.4.230.0030.00316.60
7.4.220.0070.01016.63
7.4.210.0070.00716.59
7.4.200.0040.00416.67
7.4.190.0000.00616.77
7.4.160.0080.00816.48
7.4.150.0100.00717.40
7.4.140.0070.01317.86
7.4.130.0130.00516.44
7.4.120.0090.01016.57
7.4.110.0070.01016.41
7.4.100.0170.00316.67
7.4.90.0130.00616.56
7.4.80.0060.01719.39
7.4.70.0120.00916.66
7.4.60.0060.01316.39
7.4.50.0000.00816.32
7.4.40.0100.00722.77
7.4.30.0120.00316.70
7.4.00.0000.01415.04
7.3.330.0000.00513.32
7.3.320.0060.00013.29
7.3.310.0000.00716.15
7.3.300.0060.00016.16
7.3.290.0060.00916.43
7.3.280.0090.01016.29
7.3.270.0130.00317.40
7.3.260.0120.00616.29
7.3.250.0100.00716.25
7.3.240.0130.00916.46
7.3.230.0070.01016.39
7.3.210.0140.00316.37
7.3.200.0050.01219.39
7.3.190.0070.01416.21
7.3.180.0160.00016.34
7.3.170.0040.01416.39
7.3.160.0100.00716.23
7.3.120.0060.00914.63
7.2.330.0060.01516.41
7.2.320.0060.01316.59
7.2.310.0080.00816.46
7.2.300.0110.01416.63
7.2.290.0060.00916.54
7.2.00.0110.00719.40
7.1.200.0100.00315.84
7.1.100.0030.01317.97
7.1.70.0030.01017.05
7.1.60.0170.00719.82
7.1.50.0060.01516.73
7.1.00.0000.08022.31
7.0.200.0080.00016.70
7.0.140.0030.07322.11
7.0.60.0070.06320.04
7.0.50.0070.04317.91
7.0.40.0100.03720.11
7.0.30.0330.08020.21
7.0.20.0100.04720.33
7.0.10.0030.05720.19
7.0.00.0000.09720.18
5.6.280.0000.07721.10
5.6.210.0030.08720.73
5.6.200.0030.04018.19
5.6.190.0070.06720.46
5.6.180.3100.04020.45
5.6.170.0270.07320.45
5.6.160.0070.04320.50
5.6.150.0030.08318.29
5.6.140.0100.07318.15
5.6.130.0100.08318.18
5.6.120.0130.06721.12
5.6.110.0100.07021.02
5.6.100.0100.07721.01
5.6.90.0070.08721.13
5.6.80.0030.04320.38
5.6.70.4530.04020.53
5.5.350.0300.06320.41
5.5.340.0030.04018.09
5.5.330.0100.04720.42
5.5.320.0300.08720.27
5.5.310.0300.07320.35
5.5.300.0000.05017.95
5.5.290.0070.06717.95
5.5.280.0100.03720.64
5.5.270.0070.06320.64
5.5.260.0070.07720.88
5.5.250.0100.07720.77
5.5.240.0230.04020.33
5.4.450.0130.07719.57
5.4.440.0170.05019.32
5.4.430.0230.05019.19
5.4.420.0200.04019.55
5.4.410.0170.05319.33
5.4.400.0170.05318.98
5.4.390.0200.07019.15
5.4.380.0170.07018.98
5.4.370.0170.04018.98
5.4.360.0070.03719.25
5.4.350.0030.05018.99
5.4.340.0200.06719.24
5.4.320.0070.04318.98
5.4.310.0070.07019.22
5.4.300.0030.06319.09
5.4.290.0130.07719.17
5.4.280.0070.05319.22
5.4.270.0200.03719.22
5.4.260.0200.06019.31
5.4.250.0170.05019.07
5.4.240.0230.05719.13
5.4.230.0200.05719.01
5.4.220.0070.06719.17
5.4.210.0130.07018.84
5.4.200.0070.07719.07
5.4.190.0130.04719.15
5.4.180.0170.07019.21
5.4.170.0230.06019.30
5.4.160.0230.07319.03
5.4.150.0270.04718.93
5.4.140.0270.05716.39
5.4.130.0130.06316.57
5.4.120.0170.06716.33
5.4.110.0200.05316.31
5.4.100.0130.07316.61
5.4.90.0200.04016.56
5.4.80.0170.06316.59
5.4.70.0130.04016.59
5.4.60.0070.07316.33
5.4.50.0200.04016.55
5.4.40.0130.06716.55
5.4.30.0030.07016.24
5.4.20.0130.07016.38
5.4.10.0100.05316.43
5.4.00.0100.07015.82
5.3.290.0030.04714.63
5.3.280.0130.04314.49
5.3.270.0170.04314.70
5.3.260.0230.06014.47
5.3.250.0270.07314.50
5.3.240.0130.03714.52
5.3.230.0170.06314.68
5.3.220.0130.07714.55
5.3.210.0230.06014.72
5.3.200.0200.06314.57
5.3.190.0200.04014.54
5.3.180.0100.07714.77
5.3.170.0170.05014.61
5.3.160.0170.04014.46
5.3.150.0100.07314.60
5.3.140.0100.04314.47
5.3.130.0100.04014.52
5.3.120.0030.04314.55
5.3.110.0170.05014.51
5.3.100.0130.06714.04
5.3.90.0100.05714.01
5.3.80.0100.06714.10
5.3.70.0070.06314.10
5.3.60.0030.07714.09
5.3.50.0070.03313.96
5.3.40.0130.04713.92
5.3.30.0230.06714.02
5.3.20.0130.06713.67
5.3.10.0130.07013.56
5.3.00.0170.06313.86
5.2.170.0030.05012.01
5.2.160.0070.04712.01
5.2.150.0070.06312.01
5.2.140.0130.05712.01
5.2.130.0000.04312.01
5.2.120.0030.06012.01
5.2.110.0030.06312.01
5.2.100.0070.06312.01
5.2.90.0070.03312.01
5.2.80.0100.03712.01
5.2.70.0100.03312.01
5.2.60.0130.04012.01
5.2.50.0130.05712.01
5.2.40.0100.06012.01
5.2.30.0070.05012.01
5.2.20.0130.03712.01
5.2.10.0030.05312.01
5.2.00.0100.05012.01
5.1.60.0100.03012.01
5.1.50.0130.04312.01
5.1.40.0130.04012.01
5.1.30.0070.06012.01
5.1.20.0070.05312.01
5.1.10.0100.05012.01
5.1.00.0030.04312.01
5.0.50.0000.03312.01
5.0.40.0000.04712.01
5.0.30.0070.06012.01
5.0.20.0030.02712.01
5.0.10.0030.04312.01
5.0.00.0000.07012.01
4.4.90.0000.02012.01
4.4.80.0030.03312.01
4.4.70.0000.02312.01
4.4.60.0000.02012.01
4.4.50.0070.03312.01
4.4.40.0000.05712.01
4.4.30.0000.02312.01
4.4.20.0030.03312.01
4.4.10.0000.03712.01
4.4.00.0130.04712.01
4.3.110.0030.02012.01
4.3.100.0030.02012.01
4.3.90.0000.03012.01
4.3.80.0030.04312.01
4.3.70.0030.02712.01
4.3.60.0070.01312.01
4.3.50.0000.02712.01
4.3.40.0000.04312.01
4.3.30.0000.02712.01
4.3.20.0000.02712.01
4.3.10.0000.03012.01
4.3.00.0070.02312.01

preferences:
47.63 ms | 401 KiB | 5 Q