3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo { define("MYCONST", array()); const MYOTHERCONST = array(); } namespace bar { echo MYCONST; echo foo::MYOTHERCONST; }

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.0060.01216.63
8.3.50.0160.00022.05
8.3.40.0090.00618.93
8.3.30.0030.01319.17
8.3.20.0020.00520.20
8.3.10.0070.00023.66
8.3.00.0040.00417.89
8.2.180.0090.00918.29
8.2.170.0100.00722.96
8.2.160.0040.01218.81
8.2.150.0000.00724.18
8.2.140.0070.00024.66
8.2.130.0040.00826.16
8.2.120.0040.00420.95
8.2.110.0060.00320.24
8.2.100.0080.00417.78
8.2.90.0070.00418.03
8.2.80.0070.00718.16
8.2.70.0050.00317.91
8.2.60.0080.00017.80
8.2.50.0050.00318.10
8.2.40.0060.00320.61
8.2.30.0070.00018.11
8.2.20.0040.00417.64
8.2.10.0000.00918.00
8.2.00.0050.00317.68
8.1.280.0030.01625.92
8.1.270.0000.00923.96
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0080.00322.06
8.1.230.0070.00320.96
8.1.220.0080.00017.74
8.1.210.0040.00418.91
8.1.200.0060.00317.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0060.00318.50
8.1.160.0070.00022.00
8.1.150.0080.00018.73
8.1.140.0040.00417.25
8.1.130.0070.00017.75
8.1.120.0030.00517.40
8.1.110.0060.00317.39
8.1.100.0040.00417.28
8.1.90.0000.01017.37
8.1.80.0040.00417.28
8.1.70.0000.00817.29
8.1.60.0060.00317.41
8.1.50.0090.00017.52
8.1.40.0050.00317.32
8.1.30.0030.00617.48
8.1.20.0050.00317.57
8.1.10.0000.00717.50
8.1.00.0040.00417.45
8.0.300.0080.00019.94
8.0.290.0060.00316.75
8.0.280.0070.00018.43
8.0.270.0030.00317.23
8.0.260.0030.00318.28
8.0.250.0060.00017.01
8.0.240.0000.00616.94
8.0.230.0030.00317.00
8.0.220.0030.00317.02
8.0.210.0080.00016.90
8.0.200.0000.00716.98
8.0.190.0000.00716.99
8.0.180.0050.00216.86
8.0.170.0080.00016.95
8.0.160.0050.00216.79
8.0.150.0040.00416.83
8.0.140.0000.00816.74
8.0.130.0000.00813.36
8.0.120.0040.00416.96
8.0.110.0040.00416.85
8.0.100.0050.00216.79
8.0.90.0000.00716.99
8.0.80.0070.01016.93
8.0.70.0000.00716.79
8.0.60.0040.00416.91
8.0.50.0030.00416.98
8.0.30.0130.00916.93
8.0.20.0110.00717.40
8.0.10.0000.00816.88
8.0.00.0090.01016.70
7.4.330.0030.00315.03
7.4.320.0070.00016.50
7.4.300.0030.00316.44
7.4.290.0030.00316.50
7.4.280.0060.00316.47
7.4.270.0070.00016.53
7.4.260.0090.00216.48
7.4.250.0040.00416.52
7.4.240.0000.00716.50
7.4.230.0000.00716.50
7.4.220.0060.01216.56
7.4.210.0130.00616.62
7.4.200.0000.00716.26
7.4.160.0070.01016.36
7.4.150.0090.01217.40
7.4.140.0110.00717.86
7.4.130.0100.00616.43
7.4.120.0070.01016.49
7.4.110.0110.01416.54
7.4.100.0150.00316.42
7.4.90.0120.00616.30
7.4.80.0160.00319.39
7.4.70.0140.00816.45
7.4.60.0110.00716.50
7.4.50.0040.00416.45
7.4.40.0030.01216.65
7.4.30.0030.01316.29
7.4.00.0050.01114.90
7.3.330.0020.00213.09
7.3.320.0000.00612.98
7.3.310.0000.00716.16
7.3.300.0040.00416.36
7.3.290.0030.01016.20
7.3.280.0080.01016.19
7.3.270.0140.00317.40
7.3.260.0070.01316.30
7.3.250.0100.00816.48
7.3.240.0120.00616.45
7.3.230.0070.01016.39
7.3.210.0100.00616.32
7.3.200.0100.00716.44
7.3.190.0130.01016.32
7.3.180.0090.00616.31
7.3.170.0070.01416.44
7.3.160.0070.00816.30
7.3.120.0090.00814.84
7.3.110.0070.01114.49
7.3.100.0090.00614.82
7.3.90.0070.01114.80
7.3.80.0030.00614.79
7.3.70.0030.00914.52
7.3.60.0000.00914.74
7.3.50.0070.00714.77
7.3.40.0040.00414.63
7.3.30.0060.00614.61
7.3.20.0040.00416.77
7.3.10.0090.00016.65
7.3.00.0070.00716.42
7.2.330.0040.01316.52
7.2.320.0140.01116.71
7.2.310.0070.01616.67
7.2.300.0160.00016.57
7.2.290.0030.01316.30
7.2.250.0100.00714.97
7.2.240.0070.01315.21
7.2.230.0000.01415.13
7.2.220.0040.01114.80
7.2.210.0070.00714.82
7.2.200.0070.01014.98
7.2.190.0070.00715.12
7.2.180.0000.01115.19
7.2.170.0000.01214.95
7.2.60.0090.00316.68
7.2.00.0040.00819.42
7.1.330.0070.00715.48
7.1.320.0070.00715.94
7.1.310.0080.00715.85
7.1.300.0030.01015.72
7.1.290.0000.01015.65
7.1.280.0000.00915.80
7.1.270.0070.01015.45
7.1.260.0030.00815.75
7.1.200.0000.00915.74
7.1.100.0060.00618.16
7.1.70.0090.00617.13
7.1.60.0130.00619.70
7.1.50.0120.01216.99
7.1.00.0070.07322.30
7.0.200.0030.00316.80
7.0.140.0130.06321.95
7.0.60.0070.07319.92
7.0.50.0000.04317.87
7.0.40.0000.06319.90
7.0.30.0400.07020.13
7.0.20.0300.07020.05
7.0.10.0100.04020.09
7.0.00.0070.08320.16
5.6.280.0030.07320.99
5.6.210.0100.07720.54
5.6.200.0070.08718.12
5.6.190.0070.08020.45
5.6.180.0230.04320.56
5.6.170.0200.08320.48
5.6.160.0100.06720.48
5.6.150.0000.09018.11
5.6.140.0000.09318.16
5.6.130.0100.08718.21
5.6.120.0100.03321.11
5.6.110.0100.07020.97
5.6.100.0070.08021.02
5.6.90.0070.06021.01
5.6.80.0130.07720.52
5.5.350.0270.05020.34
5.5.340.0100.07317.98
5.5.330.0030.06020.47
5.5.320.0300.03720.29
5.5.310.0230.04020.28
5.5.300.0070.03317.97
5.5.290.0030.04017.99
5.5.280.0030.08020.80
5.5.270.0130.07720.79
5.5.260.0070.05720.76
5.5.250.0070.08020.57
5.5.240.0030.08020.11
5.4.450.0800.06019.41
5.4.440.0930.06019.45
5.4.430.0970.05319.59
5.4.420.1030.05719.27
5.4.410.0170.04318.68
5.4.400.0570.04718.84
5.4.390.0270.06018.71
5.4.380.0100.05718.53
5.4.370.0030.04018.46
5.4.360.0070.03718.50
5.4.350.0060.03511.98
5.4.340.0060.03511.98
5.4.320.0090.03512.46
5.4.310.0130.05312.46
5.4.300.0040.03812.46
5.4.290.0050.03712.46
5.4.280.0090.03012.36
5.4.270.0030.03812.36
5.4.260.0090.03312.36
5.4.250.0070.03412.36
5.4.240.0080.04012.36
5.4.230.0040.03812.35
5.4.220.0060.03412.35
5.4.210.0080.03612.35
5.4.200.0040.03812.35
5.4.190.0080.03212.35
5.4.180.0060.03812.35
5.4.170.0020.03912.36
5.4.160.0070.03412.35
5.4.150.0050.04212.35
5.4.140.0030.03912.04
5.4.130.0040.03612.02
5.4.120.0030.03711.98
5.4.110.0040.03611.98
5.4.100.0060.03511.97
5.4.90.0040.03911.97
5.4.80.0070.03411.98
5.4.70.0070.03211.97
5.4.60.0060.03311.97
5.4.50.0030.04511.97
5.4.40.0040.03511.96
5.4.30.0040.03611.96
5.4.20.0090.03711.95
5.4.10.0090.03611.96
5.4.00.0080.04111.45
5.3.290.0100.04412.80
5.3.280.0050.03912.71
5.3.270.0060.04012.72
5.3.260.0050.04112.72
5.3.250.0040.04412.72
5.3.240.0060.05212.72
5.3.230.0050.03812.70
5.3.220.0080.03412.68
5.3.210.0100.04212.68
5.3.200.0050.04612.68
5.3.190.0070.04212.68
5.3.180.0060.03412.68
5.3.170.0050.03812.66
5.3.160.0030.03812.68
5.3.150.0070.03612.67
5.3.140.0080.03412.66
5.3.130.0080.03512.66
5.3.120.0030.04012.66
5.3.110.0040.03912.66
5.3.100.0080.03312.11
5.3.90.0030.03812.08
5.3.80.0060.03412.07
5.3.70.0040.03712.07
5.3.60.0080.03512.06
5.3.50.0040.04012.00
5.3.40.0080.03412.00
5.3.30.0040.03711.94
5.3.20.0030.03811.72
5.3.10.0060.03611.69
5.3.00.0050.03711.68
5.2.170.0050.0329.18
5.2.160.0050.0299.18
5.2.150.0060.0299.18
5.2.140.0060.0309.18
5.2.130.0030.0309.13
5.2.120.0070.0279.14
5.2.110.0060.0349.14
5.2.100.0110.0609.14
5.2.90.0070.0409.14
5.2.80.0100.0369.14
5.2.70.0100.0889.14
5.2.60.0060.0479.09
5.2.50.0090.0559.06
5.2.40.0070.0499.03
5.2.30.0080.0409.02
5.2.20.0010.0389.01
5.2.10.0080.0268.93
5.2.00.0050.0298.78
5.1.60.0040.0278.07
5.1.50.0070.0308.06
5.1.40.0050.0368.05
5.1.30.0040.0388.40
5.1.20.0060.0358.41
5.1.10.0060.0278.14
5.1.00.0020.0288.14
5.0.50.0060.0186.63
5.0.40.0060.0186.47
5.0.30.0020.0336.29
5.0.20.0020.0216.27
5.0.10.0030.0226.24
5.0.00.0030.0356.23
4.4.90.0030.0154.78
4.4.80.0030.0184.76
4.4.70.0040.0164.76
4.4.60.0030.0164.75
4.4.50.0020.0194.77
4.4.40.0020.0264.71
4.4.30.0030.0174.76
4.4.20.0020.0234.85
4.4.10.0020.0184.85
4.4.00.0050.0234.75
4.3.110.0030.0234.67
4.3.100.0020.0164.67
4.3.90.0020.0164.64
4.3.80.0040.0254.58
4.3.70.0090.0544.63
4.3.60.0040.0194.63
4.3.50.0030.0184.63
4.3.40.0040.0244.54
4.3.30.0010.0183.29
4.3.20.0050.0223.26
4.3.10.0030.0163.22
4.3.00.0030.0207.18

preferences:
41.39 ms | 401 KiB | 5 Q