3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { class C {} var_dump(new C); } namespace { // Circumvent some checks so we can keep this in one file... eval('namespace B; class C {}'); } namespace B { var_dump(new C); use A\C; var_dump(new C); }

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.0070.00718.18
8.3.50.0040.01818.07
8.3.40.0140.00718.79
8.3.30.0110.00319.09
8.3.20.0080.00020.20
8.3.10.0000.00820.28
8.3.00.0070.00317.50
8.2.180.0090.00616.50
8.2.170.0100.00322.96
8.2.160.0120.00620.25
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0000.00722.23
8.2.110.0030.00619.30
8.2.100.0090.00317.72
8.2.90.0050.00319.23
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0050.00317.92
8.2.50.0000.01018.07
8.2.40.0030.00518.12
8.2.30.0040.00419.43
8.2.20.0050.00317.53
8.2.10.0040.00418.04
8.2.00.0000.00817.68
8.1.280.0140.00725.92
8.1.270.0080.00022.19
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00420.72
8.1.230.0070.00417.42
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.00817.22
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0030.00518.65
8.1.160.0040.00422.01
8.1.150.0040.00418.80
8.1.140.0000.00717.39
8.1.130.0030.00517.71
8.1.120.0040.00417.37
8.1.110.0030.00517.30
8.1.100.0000.00717.31
8.1.90.0000.00717.45
8.1.80.0030.00317.27
8.1.70.0000.00717.25
8.1.60.0040.00417.52
8.1.50.0030.00617.43
8.1.40.0020.00517.46
8.1.30.0030.00517.46
8.1.20.0000.00817.55
8.1.10.0000.00717.42
8.1.00.0040.00717.22
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0040.00418.36
8.0.270.0000.00717.32
8.0.260.0000.00717.21
8.0.250.0000.00716.96
8.0.240.0000.00817.01
8.0.230.0070.00017.00
8.0.220.0070.00016.86
8.0.210.0070.00016.93
8.0.200.0030.00316.90
8.0.190.0070.00016.95
8.0.180.0070.00016.83
8.0.170.0000.00716.80
8.0.160.0000.00816.84
8.0.150.0040.00416.89
8.0.140.0000.00716.89
8.0.130.0000.00513.38
8.0.120.0030.00716.75
8.0.110.0000.00716.93
8.0.100.0040.00416.76
8.0.90.0040.00416.77
8.0.80.0060.00916.89
8.0.70.0070.00016.96
8.0.60.0000.00716.69
8.0.50.0000.00716.82
8.0.30.0130.00417.00
8.0.20.0090.00917.40
8.0.10.0040.00417.04
8.0.00.0090.00916.72
7.4.330.0000.00515.00
7.4.320.0060.00016.56
7.4.300.0060.00016.61
7.4.290.0030.00316.57
7.4.280.0000.00816.64
7.4.270.0030.00316.42
7.4.260.0070.00016.59
7.4.250.0040.00416.56
7.4.240.0040.00416.56
7.4.230.0030.00316.60
7.4.220.0070.01116.38
7.4.210.0060.00816.68
7.4.200.0040.00416.31
7.4.160.0040.01116.40
7.4.150.0070.01117.40
7.4.140.0030.01417.86
7.4.130.0090.00816.46
7.4.120.0100.00716.53
7.4.110.0100.01016.41
7.4.100.0150.00616.32
7.4.90.0040.01416.45
7.4.80.0130.00319.39
7.4.70.0060.00916.54
7.4.60.0030.01416.54
7.4.50.0060.00016.17
7.4.40.0080.00816.64
7.4.30.0040.01216.35
7.4.00.0060.01215.00
7.3.330.0000.00513.13
7.3.320.0050.00013.04
7.3.310.0040.00416.19
7.3.300.0050.00316.20
7.3.290.0100.00316.18
7.3.280.0090.00716.16
7.3.270.0030.01517.40
7.3.260.0070.01016.15
7.3.250.0110.00916.23
7.3.240.0100.00716.43
7.3.230.0090.00616.47
7.3.210.0030.01316.24
7.3.200.0060.01019.39
7.3.190.0150.00616.41
7.3.180.0080.01016.52
7.3.170.0090.00616.30
7.3.160.0030.01716.41
7.3.120.0140.00714.54
7.3.110.0070.01014.96
7.3.100.0000.01414.87
7.3.90.0040.01114.61
7.3.80.0060.00614.36
7.3.70.0100.00714.87
7.3.60.0030.00714.73
7.3.50.0040.01214.77
7.3.40.0070.00314.49
7.3.30.0070.00714.69
7.3.20.0040.01216.58
7.3.10.0040.00716.42
7.3.00.0080.00416.45
7.2.330.0140.00316.57
7.2.320.0100.00716.63
7.2.310.0130.00316.41
7.2.300.0100.00716.27
7.2.290.0090.00616.68
7.2.250.0060.01215.01
7.2.240.0030.01715.01
7.2.230.0140.00314.70
7.2.220.0080.00415.13
7.2.210.0090.00914.95
7.2.200.0070.00314.98
7.2.190.0090.00315.05
7.2.180.0060.00815.02
7.2.170.0060.00614.70
7.2.00.0060.01219.39
7.1.330.0070.00415.77
7.1.320.0060.00915.74
7.1.310.0030.01015.41
7.1.300.0000.00815.59
7.1.290.0060.00315.84
7.1.280.0060.00615.71
7.1.270.0030.01015.28
7.1.260.0070.00715.61
7.1.100.0030.01017.88
7.1.70.0000.00717.01
7.1.60.0110.01419.12
7.1.50.0040.00916.88
7.1.00.0070.07322.33
7.0.200.0030.00716.34
7.0.140.0030.07021.96
7.0.60.0130.08020.00
7.0.50.0030.04317.90
7.0.40.0130.05720.27
7.0.30.0570.04720.07
7.0.20.0270.07720.08
7.0.10.0270.05020.10
7.0.00.0030.04720.25
5.6.280.0030.07320.98
5.6.210.0170.06320.50
5.6.200.0030.04718.14
5.6.190.0030.09020.51
5.6.180.0230.08020.63
5.6.170.0330.07020.47
5.6.160.0130.05020.52
5.6.150.0030.04018.15
5.6.140.0030.08718.26
5.6.130.0030.06718.11
5.6.120.0100.08021.05
5.6.110.0100.08021.01
5.6.100.0000.07320.86
5.6.90.0130.09021.09
5.6.80.0100.06020.37
5.6.70.3070.04020.40
5.5.350.0000.08020.30
5.5.340.0070.07317.92
5.5.330.0070.07020.37
5.5.320.0230.03320.36
5.5.310.0300.06020.32
5.5.300.0070.07717.94
5.5.290.0100.05717.91
5.5.280.0030.07720.90
5.5.270.0030.04720.72
5.5.260.0030.04320.64
5.5.250.0170.07720.66
5.5.240.0030.08320.21
5.4.450.1200.05719.17
5.4.440.0400.04319.52
5.4.430.0330.03719.30
5.4.420.0300.04019.46
5.4.410.0470.03319.39
5.4.400.0570.03319.08
5.4.390.0500.04719.06
5.4.380.0470.06318.75
5.4.370.0470.05018.84
5.4.360.0330.06718.74
5.4.350.0600.06318.76
5.4.340.1300.05318.79
5.4.320.0070.03712.49
5.4.310.0040.04012.49
5.4.300.0060.03712.50
5.4.290.0040.04112.50
5.4.280.0040.04212.39
5.4.270.0060.03712.39
5.4.260.0050.03812.39
5.4.250.0070.03612.39
5.4.240.0070.03512.39
5.4.230.0050.03912.38
5.4.220.0040.03812.38
5.4.210.0060.03612.38
5.4.200.0090.03412.38
5.4.190.0080.03412.38
5.4.180.0060.03612.38
5.4.170.0060.03612.39
5.4.160.0080.03412.39
5.4.150.0080.04512.38
5.4.140.0030.04612.07
5.4.130.0060.03712.05
5.4.120.0070.03812.01
5.4.110.0070.03512.01
5.4.100.0080.03312.01
5.4.90.0050.03712.01
5.4.80.0060.05012.00
5.4.70.0090.03212.01
5.4.60.0070.03412.00
5.4.50.0070.03412.00
5.4.40.0060.03512.00
5.4.30.0050.03511.99
5.4.20.0050.03611.99
5.4.10.0050.03511.99
5.4.00.0050.03611.48
5.3.290.0050.04012.80
5.3.280.0090.04112.71
5.3.270.0040.04212.72
5.3.260.0100.03912.72
5.3.250.0060.03812.72
5.3.240.0060.04012.71
5.3.230.0030.04112.71
5.3.220.0030.04012.68
5.3.210.0060.03912.68
5.3.200.0070.03512.68
5.3.190.0050.03912.68
5.3.180.0090.03412.67
5.3.170.0080.03512.67
5.3.160.0070.03512.68
5.3.150.0050.03912.67
5.3.140.0070.03612.66
5.3.130.0060.03912.66
5.3.120.0070.03812.66
5.3.110.0100.03612.65
5.3.100.0090.04212.12
5.3.90.0090.03312.10
5.3.80.0040.03812.09
5.3.70.0060.03612.09
5.3.60.0050.03812.07
5.3.50.0100.04712.02
5.3.40.0060.04012.02
5.3.30.0060.03511.98
5.3.20.0060.03611.76
5.3.10.0060.03511.72
5.3.00.0080.03711.71
5.2.170.0060.0299.18
5.2.160.0060.0329.18
5.2.150.0070.0309.18
5.2.140.0040.0309.18
5.2.130.0040.0309.14
5.2.120.0040.0299.14
5.2.110.0070.0279.14
5.2.100.0040.0309.14
5.2.90.0040.0349.14
5.2.80.0030.0349.14
5.2.70.0040.0319.14
5.2.60.0040.0319.09
5.2.50.0050.0309.06
5.2.40.0050.0279.03
5.2.30.0040.0309.01
5.2.20.0040.0299.00
5.2.10.0080.0308.93
5.2.00.0030.0368.79
5.1.60.0070.0218.06
5.1.50.0030.0258.06
5.1.40.0050.0238.04
5.1.30.0040.0258.40
5.1.20.0050.0258.42
5.1.10.0040.0258.14
5.1.00.0030.0258.14
5.0.50.0070.0166.63
5.0.40.0030.0266.48
5.0.30.0030.0356.29
5.0.20.0050.0246.27
5.0.10.0040.0196.24
5.0.00.0040.0296.23
4.4.90.0030.0154.78
4.4.80.0030.0154.76
4.4.70.0010.0174.76
4.4.60.0030.0154.75
4.4.50.0020.0154.77
4.4.40.0040.0244.71
4.4.30.0050.0134.76
4.4.20.0010.0174.85
4.4.10.0010.0174.85
4.4.00.0020.0254.76
4.3.110.0030.0154.67
4.3.100.0020.0154.67
4.3.90.0040.0174.63
4.3.80.0020.0294.58
4.3.70.0010.0174.63
4.3.60.0020.0144.63
4.3.50.0030.0154.63
4.3.40.0020.0244.54
4.3.30.0030.0173.28
4.3.20.0030.0163.26
4.3.10.0020.0153.22
4.3.00.0000.01716.72

preferences:
55 ms | 400 KiB | 5 Q