3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { const Z = 9; define ('X', 0); } namespace B { const Z = 8; } namespace { use \B; const Z = 7; echo Z; }

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.70.0140.01018.56
8.3.60.0120.00618.56
8.3.50.0210.00621.14
8.3.40.0120.00318.79
8.3.30.0130.00320.34
8.3.20.0040.00420.29
8.3.10.0040.00422.11
8.3.00.0040.00422.58
8.2.180.0040.01216.32
8.2.170.0070.00722.96
8.2.160.0100.00722.08
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0070.00020.87
8.2.110.0070.00319.45
8.2.100.0090.00317.84
8.2.90.0030.00519.17
8.2.80.0050.00317.97
8.2.70.0030.00617.63
8.2.60.0070.00017.93
8.2.50.0040.00418.07
8.2.40.0040.00417.94
8.2.30.0040.00419.43
8.2.20.0030.00517.52
8.2.10.0030.00517.54
8.2.00.0030.00517.64
8.1.280.0070.00725.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00719.11
8.1.230.0040.00817.45
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0040.00417.10
8.1.180.0000.00918.10
8.1.170.0050.00318.65
8.1.160.0070.00018.82
8.1.150.0040.00418.43
8.1.140.0050.00317.42
8.1.130.0000.00717.69
8.1.120.0000.00717.30
8.1.110.0000.00817.26
8.1.100.0000.00717.40
8.1.90.0000.00717.40
8.1.80.0000.00717.34
8.1.70.0070.00017.28
8.1.60.0060.00317.55
8.1.50.0000.00817.47
8.1.40.0070.00017.46
8.1.30.0040.00417.48
8.1.20.0050.00317.58
8.1.10.0030.00617.48
8.1.00.0060.00317.33
8.0.300.0080.00018.77
8.0.290.0070.00016.75
8.0.280.0030.00318.48
8.0.270.0070.00017.21
8.0.260.0030.00316.85
8.0.250.0000.00716.84
8.0.240.0030.00616.91
8.0.230.0070.00016.91
8.0.220.0030.00316.77
8.0.210.0070.00016.79
8.0.200.0000.00716.82
8.0.190.0050.00316.95
8.0.180.0000.00816.84
8.0.170.0030.00616.90
8.0.160.0030.00316.84
8.0.150.0070.00016.83
8.0.140.0030.00616.75
8.0.130.0000.00613.29
8.0.120.0040.00416.71
8.0.110.0000.00716.87
8.0.100.0040.00416.85
8.0.90.0080.00016.71
8.0.80.0080.00816.84
8.0.70.0030.00516.86
8.0.60.0080.00016.66
8.0.50.0060.00316.91
8.0.30.0100.00817.05
8.0.20.0090.00917.40
8.0.10.0040.00416.84
8.0.00.0130.00916.63
7.4.330.0050.00016.66
7.4.320.0000.00616.43
7.4.300.0000.00616.52
7.4.290.0050.00216.56
7.4.280.0060.00016.36
7.4.270.0030.00316.51
7.4.260.0050.00013.13
7.4.250.0040.00416.52
7.4.240.0020.00516.46
7.4.230.0030.00316.42
7.4.220.0080.00816.56
7.4.210.0080.00816.47
7.4.200.0030.00316.36
7.4.190.0030.00316.48
7.4.160.0130.00316.77
7.4.150.0140.00317.40
7.4.140.0130.00517.86
7.4.130.0090.00916.41
7.4.120.0120.00716.47
7.4.110.0100.00716.44
7.4.100.0100.00716.40
7.4.90.0090.00916.57
7.4.80.0100.00719.39
7.4.70.0130.00316.40
7.4.60.0070.01016.63
7.4.50.0060.00316.30
7.4.40.0030.01422.77
7.4.30.0100.01016.70
7.4.00.0030.01414.95
7.3.330.0030.00313.09
7.3.320.0030.00313.03
7.3.310.0030.00516.32
7.3.300.0070.00016.25
7.3.290.0160.00016.29
7.3.280.0120.00416.29
7.3.270.0160.00017.40
7.3.260.0060.01016.45
7.3.250.0130.00416.20
7.3.240.0030.01316.25
7.3.230.0120.01216.49
7.3.210.0110.00516.23
7.3.200.0120.00319.39
7.3.190.0130.00416.42
7.3.180.0130.00316.42
7.3.170.0150.00616.34
7.3.160.0120.00316.24
7.3.120.0100.00714.45
7.2.330.0090.00916.62
7.2.320.0090.01416.57
7.2.310.0090.00916.27
7.2.300.0100.01216.71
7.2.290.0130.00716.52
7.2.60.0060.00616.54
7.2.00.0110.00719.48
7.1.200.0030.00315.86
7.1.100.0030.01018.14
7.1.70.0040.00416.98
7.1.60.0100.01319.17
7.1.50.0090.00916.94
7.1.00.0070.03022.48
7.0.200.0050.00216.42
7.0.140.0030.07321.97
7.0.60.0200.07019.92
7.0.50.0070.06017.87
7.0.40.0070.04319.96
7.0.30.0430.02720.02
7.0.20.0200.05320.02
7.0.10.0130.07720.19
7.0.00.0070.09020.01
5.6.280.0000.07720.81
5.6.210.0070.08320.71
5.6.200.0070.05018.26
5.6.190.0000.04720.57
5.6.180.0300.05320.68
5.6.170.0100.05020.56
5.6.160.0170.04020.53
5.6.150.0070.08318.20
5.6.140.0100.08018.09
5.6.130.0100.07718.21
5.6.120.0070.04021.10
5.6.110.0170.07321.11
5.6.100.0030.08321.01
5.6.90.0030.04720.99
5.6.80.0070.04720.37
5.5.350.3970.04720.46
5.5.340.0130.07017.97
5.5.330.0070.08020.07
5.5.320.0300.06720.29
5.5.310.0170.05720.27
5.5.300.0100.07317.98
5.5.290.0000.09017.89
5.5.280.0070.05320.87
5.5.270.0100.05720.79
5.5.260.0000.04720.87
5.5.250.0100.07720.64
5.5.240.0230.07720.14
5.4.450.3500.04719.44
5.4.440.3430.05019.35
5.4.430.2930.03719.38
5.4.420.3570.03319.40
5.4.410.3270.03319.21
5.4.400.3470.04019.08
5.4.390.3370.04019.09
5.4.380.3870.04318.79
5.4.370.3400.03718.96
5.4.360.3300.03719.02
5.4.350.3700.02719.01
5.4.340.3270.03319.11
5.4.320.4200.04319.07
5.4.310.3500.02719.11
5.4.300.3430.03718.80
5.4.290.3770.04019.11
5.4.280.3630.04019.05
5.4.270.4270.03719.09
5.4.260.4270.03319.05
5.4.250.3900.03319.07
5.4.240.3530.03718.77
5.4.230.3300.03719.04
5.4.220.3300.03318.80
5.4.210.3670.04018.86
5.4.200.4130.03718.99
5.4.190.3400.03319.05
5.4.180.3700.03018.87
5.4.170.3300.03319.05
5.4.160.3530.03019.09
5.4.150.3500.03719.11
5.4.140.3570.03716.23
5.4.130.4000.03716.19
5.4.120.4230.03316.34
5.4.110.4130.03016.34
5.4.100.4200.03716.38
5.4.90.4170.04016.20
5.4.80.4030.03016.39
5.4.70.3230.04016.37
5.4.60.3430.04016.32
5.4.50.4070.03716.18
5.4.40.3770.03316.13
5.4.30.3900.03316.17
5.4.20.3470.03316.45
5.4.10.3670.03316.36
5.4.00.3770.02715.72
5.3.290.3170.03714.69
5.3.280.3570.03714.43
5.3.270.3470.04014.54
5.3.260.3870.03714.64
5.3.250.3370.03314.46
5.3.240.2730.03714.53
5.3.230.4170.03714.54
5.3.220.3900.03314.42
5.3.210.4270.03314.41
5.3.200.4230.03314.40
5.3.190.4130.04014.61
5.3.180.4270.03314.58
5.3.170.3670.04314.51
5.3.160.3270.03714.51
5.3.150.3330.03714.65
5.3.140.4200.04014.50
5.3.130.3500.03714.47
5.3.120.3270.04014.37
5.3.110.3300.04014.48
5.3.100.3530.03314.06
5.3.90.3530.03313.86
5.3.80.4030.04013.79
5.3.70.4070.03314.11
5.3.60.4030.03313.83
5.3.50.3830.03713.97
5.3.40.3500.03713.92
5.3.30.4100.03713.73
5.3.20.3570.03313.67
5.3.10.3030.03313.74
5.3.00.3670.03313.57
5.2.170.3270.03011.20
5.2.160.3630.02311.24
5.2.150.3500.03010.99
5.2.140.3600.02710.99
5.2.130.3030.02711.04
5.2.120.2700.03310.96
5.2.110.3070.02711.00
5.2.100.3030.02710.94
5.2.90.2770.02711.12
5.2.80.2770.02711.18
5.2.70.3200.02710.93
5.2.60.2730.02710.95
5.2.50.3100.04010.95
5.2.40.2270.02311.04
5.2.30.2170.03010.90
5.2.20.2270.02310.97
5.2.10.2170.02710.76
5.2.00.2230.02710.87
5.1.60.2300.0279.91
5.1.50.2500.0279.96
5.1.40.1900.02310.10
5.1.30.2170.02010.26
5.1.20.2100.02710.27
5.1.10.2430.02310.11
5.1.00.2470.02710.01
5.0.50.1630.0178.52
5.0.40.1530.0238.32
5.0.30.0530.0508.13
5.0.20.1600.0178.12
5.0.10.1230.0238.29
5.0.00.1370.0308.08
4.4.90.1030.0206.09
4.4.80.1270.0176.09
4.4.70.1070.0176.09
4.4.60.1170.0176.09
4.4.50.1070.0176.09
4.4.40.1100.0236.09
4.4.30.1400.0106.09
4.4.20.1070.0136.09
4.4.10.1430.0206.09
4.4.00.1630.0276.09
4.3.110.1530.0206.09
4.3.100.1670.0176.09
4.3.90.1630.0136.09
4.3.80.1370.0276.09
4.3.70.1400.0176.09
4.3.60.1430.0136.09
4.3.50.1570.0206.09
4.3.40.1400.0236.09
4.3.30.0670.0176.09
4.3.20.0900.0236.09
4.3.10.0900.0276.09
4.3.00.0900.0206.09

preferences:
64.11 ms | 401 KiB | 5 Q