3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo { class Xyz {} function abc () {} } namespace bar { use foo\Xyz; use foo\abc; new Xyz(); // instantiates \foo\Xyz \foo\abc(); // it has to be invoked using the fully qualified name } ?>

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.40.0090.01218.45
8.3.30.0100.00318.78
8.3.20.0050.00220.26
8.3.10.0040.00423.65
8.3.00.0080.00020.70
8.2.170.0100.00322.96
8.2.160.0160.00320.35
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0140.00026.16
8.2.120.0060.00319.23
8.2.110.0080.00022.16
8.2.100.0060.00619.34
8.2.90.0000.00719.10
8.2.80.0060.00317.97
8.2.70.0070.00417.50
8.2.60.0050.00317.80
8.2.50.0040.00418.07
8.2.40.0040.00419.82
8.2.30.0030.00317.93
8.2.20.0040.00417.54
8.2.10.0040.00417.91
8.2.00.0000.00717.52
8.1.270.0060.00322.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.92
8.1.230.0080.00319.05
8.1.220.0060.00617.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0040.00417.10
8.1.180.0050.00318.10
8.1.170.0000.00818.65
8.1.160.0030.00621.92
8.1.150.0070.00018.51
8.1.140.0000.00717.31
8.1.130.0040.00417.68
8.1.120.0040.00417.33
8.1.110.0000.00817.33
8.1.100.0080.00017.34
8.1.90.0000.00717.28
8.1.80.0000.00717.36
8.1.70.0030.00317.29
8.1.60.0030.00617.42
8.1.50.0050.00217.42
8.1.40.0080.00017.41
8.1.30.0040.00417.47
8.1.20.0000.00817.54
8.1.10.0070.00017.39
8.1.00.0040.00417.33
8.0.300.0030.00318.77
8.0.290.0000.00716.63
8.0.280.0070.00018.29
8.0.270.0000.00717.18
8.0.260.0000.00717.21
8.0.250.0050.00316.85
8.0.240.0000.00816.90
8.0.230.0000.00716.73
8.0.220.0000.00716.68
8.0.210.0000.00716.73
8.0.200.0070.00316.80
8.0.190.0000.00716.71
8.0.180.0000.00716.80
8.0.170.0030.00616.78
8.0.160.0000.00716.77
8.0.150.0050.00216.59
8.0.140.0070.00016.69
8.0.130.0050.00013.27
8.0.120.0030.00616.71
8.0.110.0000.00716.71
8.0.100.0030.00516.77
8.0.90.0040.00416.64
8.0.80.0080.00816.77
8.0.70.0070.00016.58
8.0.60.0040.00416.79
8.0.50.0070.00016.70
8.0.30.0100.00916.92
8.0.20.0110.01117.40
8.0.10.0000.00816.91
8.0.00.0120.00816.75
7.4.330.0000.00615.00
7.4.320.0040.00416.47
7.4.300.0000.00716.34
7.4.290.0070.00016.42
7.4.280.0040.00416.41
7.4.270.0000.00816.41
7.4.260.0000.00716.50
7.4.250.0000.00816.39
7.4.240.0020.00616.48
7.4.230.0000.00716.33
7.4.220.0110.00716.47
7.4.210.0000.01316.45
7.4.200.0070.00016.50
7.4.160.0090.00616.49
7.4.150.0110.00717.40
7.4.140.0080.00817.86
7.4.130.0090.00816.30
7.4.120.0100.00716.41
7.4.110.0070.01416.22
7.4.100.0120.00916.42
7.4.90.0080.00916.48
7.4.80.0060.01619.39
7.4.70.0070.01016.56
7.4.60.0090.00916.40
7.4.50.0000.00416.19
7.4.40.0030.01316.45
7.4.30.0100.00616.43
7.4.00.0070.00715.13
7.3.330.0000.00513.09
7.3.320.0060.00013.02
7.3.310.0070.00016.04
7.3.300.0030.00316.18
7.3.290.0030.01416.23
7.3.280.0110.00816.21
7.3.270.0070.01017.40
7.3.260.0140.01016.23
7.3.250.0120.00516.18
7.3.240.0090.01316.33
7.3.230.0060.01216.39
7.3.210.0070.01016.44
7.3.200.0060.01019.39
7.3.190.0070.01116.42
7.3.180.0130.01016.40
7.3.170.0080.00816.37
7.3.160.0110.00616.39
7.3.120.0140.00314.72
7.2.330.0030.01416.63
7.2.320.0030.01316.54
7.2.310.0100.00716.23
7.2.300.0080.00816.60
7.2.290.0150.00616.60
7.2.60.0030.01416.73
7.2.00.0030.01319.15
7.1.200.0100.00315.54
7.1.100.0100.00618.20
7.1.70.0000.00716.91
7.1.60.0110.01419.70
7.1.50.0200.01334.72
7.1.00.0070.07322.35
7.0.200.0000.00716.38
7.0.140.0030.07322.11
7.0.100.0000.08320.02
7.0.90.0100.04019.91
7.0.80.0170.04019.92
7.0.70.0030.07720.03
7.0.60.0100.05719.82
7.0.50.0170.06720.32
7.0.40.0030.08720.10
7.0.30.0100.07320.05
7.0.20.0070.07020.14
7.0.10.0100.08020.09
7.0.00.0130.08320.18
5.6.280.0030.07720.90
5.6.250.0170.07020.78
5.6.240.0070.08320.60
5.6.230.0030.06020.54
5.6.220.0030.04720.71
5.6.210.0100.07320.55
5.6.200.0100.07721.11
5.6.190.0100.04321.08
5.6.180.0030.08021.00
5.6.170.0130.08020.95
5.6.160.0030.07321.07
5.6.150.0030.04321.04
5.6.140.0000.04721.01
5.6.130.0000.04321.03
5.6.120.0070.07021.03
5.6.110.0130.06721.05
5.6.100.0000.04721.13
5.6.90.0030.07020.91
5.6.80.0100.06020.42
5.6.70.0070.05020.39
5.6.60.0100.07720.48
5.6.50.0130.04020.34
5.6.40.0030.05020.32
5.6.30.0030.04720.52
5.6.20.0070.04320.46
5.6.10.0030.03720.30
5.6.00.0000.04720.29
5.5.380.0030.08720.36
5.5.370.0030.09020.45
5.5.360.0070.08320.42
5.5.350.0200.07320.45
5.5.340.0100.08020.86
5.5.330.0070.05720.80
5.5.320.0000.05720.77
5.5.310.0170.06720.73
5.5.300.0100.06320.89
5.5.290.0000.04320.91
5.5.280.0130.07020.84
5.5.270.0030.07720.72
5.5.260.0100.05720.90
5.5.250.0000.05720.54
5.5.240.0170.04720.23
5.5.230.0030.08320.23
5.5.220.0170.05020.14
5.5.210.0100.07320.00
5.5.200.0030.07720.21
5.5.190.0070.03720.18
5.5.180.0070.03720.14
5.5.160.0030.05320.18
5.5.150.0000.04720.18
5.5.140.0000.04020.20
5.5.130.0070.03720.27
5.5.120.0070.03320.25
5.5.110.0030.04019.98
5.5.100.0100.03320.05
5.5.90.0070.03720.14
5.5.80.0070.03019.95
5.5.70.0030.03720.09
5.5.60.0070.03020.11
5.5.50.0000.04020.07
5.5.40.0030.03720.10
5.5.30.0100.03720.05
5.5.20.0000.05020.04
5.5.10.0100.03320.07
5.5.00.0030.04020.00
5.4.450.0070.03319.45
5.4.440.0170.06719.36
5.4.430.0100.06019.22
5.4.420.0100.06719.36
5.4.410.0170.03719.10
5.4.400.0130.07319.05
5.4.390.0230.02018.95
5.4.380.0030.08319.02
5.4.370.0100.04018.85
5.4.360.0070.07019.18
5.4.350.0000.04319.12
5.4.340.0030.04019.12
5.4.320.0000.04019.12
5.4.310.0030.03719.04
5.4.300.0070.03719.13
5.4.290.0070.03319.03
5.4.280.0000.04019.09
5.4.270.0030.03019.04
5.4.260.0000.04019.04
5.4.250.0070.03718.93
5.4.240.0030.03718.89
5.4.230.0030.03719.10
5.4.220.0000.03318.89
5.4.210.0030.03718.87
5.4.200.0030.03319.18
5.4.190.0030.03719.15
5.4.180.0070.03718.93
5.4.170.0070.03718.80
5.4.160.0070.03019.07
5.4.150.0100.04019.14
5.4.140.0000.03716.41
5.4.130.0000.04016.48
5.4.120.0000.03316.50
5.4.110.0030.03016.55
5.4.100.0030.03316.39
5.4.90.0000.03716.55
5.4.80.0000.04716.52
5.4.70.0070.04016.50
5.4.60.0030.03016.37
5.4.50.0030.03016.44
5.4.40.0000.04016.55
5.4.30.0070.03316.46
5.4.20.0000.03716.44
5.4.10.0030.03016.43
5.4.00.0030.03015.76
5.3.290.0100.03314.66
5.3.280.0070.06014.52
5.3.270.0070.03314.53
5.3.260.0000.04014.59
5.3.250.0030.04014.74
5.3.240.0070.03314.69
5.3.230.0000.03714.65
5.3.220.0030.03014.49
5.3.210.0030.04714.61
5.3.200.0030.04014.50
5.3.190.0070.03314.49
5.3.180.0000.04014.54
5.3.170.0030.03314.57
5.3.160.0000.03314.67
5.3.150.0000.03314.70
5.3.140.0000.03314.50
5.3.130.0070.02714.63
5.3.120.0100.03014.68
5.3.110.0030.03714.52
5.3.100.0030.03314.14
5.3.90.0030.03713.98
5.3.80.0000.03313.90
5.3.70.0000.04014.11
5.3.60.0100.03013.93
5.3.50.0000.03313.96
5.3.40.0100.03014.00
5.3.30.0070.03013.79
5.3.20.0030.06713.80
5.3.10.0070.07013.74
5.3.00.0100.07013.66
5.2.170.0030.03012.16
5.2.160.0000.03712.16
5.2.150.0000.03012.16
5.2.140.0070.02712.16
5.2.130.0070.05712.16
5.2.120.0070.06312.16
5.2.110.0030.06012.16
5.2.100.0030.06312.16
5.2.90.0030.06012.16
5.2.80.0070.02312.16
5.2.70.0030.06712.16
5.2.60.0000.03712.16
5.2.50.0030.06312.16
5.2.40.0070.04012.16
5.2.30.0000.06712.16
5.2.20.0070.05312.16
5.2.10.0070.05012.16
5.2.00.0000.04312.16
5.1.60.0030.05312.16
5.1.50.0000.04712.16
5.1.40.0070.03012.16
5.1.30.0070.05012.16
5.1.20.0030.04312.16
5.1.10.0030.05312.16
5.1.00.0000.06012.16
5.0.50.0030.02312.16
5.0.40.0000.02312.16
5.0.30.0000.06712.16
5.0.20.0000.05012.16
5.0.10.0030.01712.16
5.0.00.0030.06312.16
4.4.90.0030.01312.16
4.4.80.0000.02012.16
4.4.70.0030.02012.16
4.4.60.0030.03712.16
4.4.50.0000.03312.16
4.4.40.0030.02712.16
4.4.30.0030.02712.16
4.4.20.0030.03312.16
4.4.10.0000.02012.16
4.4.00.0030.03712.16
4.3.110.0030.03312.16
4.3.100.0000.03712.16
4.3.90.0030.02712.16
4.3.80.0030.05012.16
4.3.70.0070.01012.16
4.3.60.0030.01712.16
4.3.50.0130.02012.16
4.3.40.0070.04012.16
4.3.30.0000.02312.16
4.3.20.0030.03012.16
4.3.10.0070.03012.16
4.3.00.0000.01712.16

preferences:
39.32 ms | 400 KiB | 5 Q