3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; define('TEST_CONST', 'global'); define('Foo\\TEST_CONST', 'local'); var_dump(TEST_CONST);

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.0060.00918.69
8.3.30.0070.00718.91
8.3.20.0040.00420.33
8.3.10.0050.00323.52
8.3.00.0070.00020.94
8.2.170.0000.01422.96
8.2.160.0060.00920.41
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0020.00519.23
8.2.110.0040.00422.29
8.2.100.0070.00319.21
8.2.90.0040.00419.05
8.2.80.0080.00017.97
8.2.70.0000.00817.38
8.2.60.0050.00317.90
8.2.50.0030.00518.07
8.2.40.0000.00819.77
8.2.30.0040.00418.06
8.2.20.0000.00817.50
8.2.10.0040.00417.87
8.2.00.0040.00417.67
8.1.270.0030.00521.89
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0100.00023.79
8.1.230.0110.00019.02
8.1.220.0060.00317.74
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0080.00018.70
8.1.160.0000.00722.11
8.1.150.0030.00518.62
8.1.140.0070.00017.23
8.1.130.0060.00317.68
8.1.120.0000.00717.46
8.1.110.0040.00417.29
8.1.100.0050.00217.44
8.1.90.0050.00317.32
8.1.80.0000.00717.45
8.1.70.0030.00317.29
8.1.60.0000.00917.45
8.1.50.0030.00517.44
8.1.40.0030.00617.46
8.1.30.0030.00517.61
8.1.20.0000.00817.46
8.1.10.0040.00417.35
8.1.00.0070.00017.38
8.0.300.0000.00818.77
8.0.290.0070.00016.63
8.0.280.0040.00418.42
8.0.270.0040.00417.20
8.0.260.0030.00317.21
8.0.250.0050.00216.85
8.0.240.0000.00716.87
8.0.230.0000.00816.88
8.0.220.0040.00416.74
8.0.210.0030.00316.86
8.0.200.0000.00616.90
8.0.190.0000.00716.89
8.0.180.0000.00716.73
8.0.170.0030.00516.91
8.0.160.0000.00716.79
8.0.150.0030.00716.67
8.0.140.0040.00416.70
8.0.130.0030.00313.28
8.0.120.0030.00516.81
8.0.110.0000.00716.76
8.0.100.0080.00016.89
8.0.90.0030.00516.71
8.0.80.0110.01116.87
8.0.70.0070.00016.88
8.0.60.0050.00316.75
8.0.50.0050.00216.77
8.0.30.0070.01117.24
8.0.20.0110.00717.40
8.0.10.0040.00417.00
8.0.00.0130.00816.67
7.4.330.0000.00515.00
7.4.320.0000.00616.51
7.4.300.0030.00316.52
7.4.290.0040.00416.42
7.4.280.0030.00616.42
7.4.270.0040.00416.45
7.4.260.0040.00416.30
7.4.250.0000.00716.48
7.4.240.0030.00416.43
7.4.230.0040.00216.28
7.4.220.0070.01416.57
7.4.210.0100.00316.41
7.4.200.0030.00316.64
7.4.160.0040.01216.39
7.4.150.0120.00617.40
7.4.140.0140.00317.86
7.4.130.0080.00816.48
7.4.120.0070.01016.51
7.4.110.0070.01616.46
7.4.100.0100.00616.56
7.4.90.0180.00316.27
7.4.80.0100.01319.39
7.4.70.0060.01316.46
7.4.60.0030.01316.61
7.4.50.0000.00516.49
7.4.40.0080.01116.40
7.4.30.0060.01216.61
7.4.00.0070.01014.91
7.3.330.0000.00512.88
7.3.320.0080.00012.93
7.3.310.0030.00316.11
7.3.300.0030.00316.18
7.3.290.0120.00316.19
7.3.280.0100.00816.13
7.3.270.0150.00917.40
7.3.260.0120.00616.31
7.3.250.0130.01016.20
7.3.240.0070.01016.20
7.3.230.0130.01016.42
7.3.210.0060.01316.08
7.3.200.0090.00619.39
7.3.190.0070.01716.18
7.3.180.0060.01016.45
7.3.170.0080.00816.36
7.3.160.0110.00416.27
7.3.120.0030.01214.80
7.3.110.0040.01114.81
7.3.100.0000.01614.68
7.3.90.0070.00714.37
7.3.80.0040.01114.63
7.3.70.0080.00814.88
7.3.60.0040.01114.52
7.3.50.0000.01414.72
7.3.40.0100.00314.86
7.3.30.0060.00614.75
7.3.20.0000.01316.48
7.3.10.0030.01016.61
7.3.00.0060.00616.63
7.2.330.0120.01216.67
7.2.320.0070.01016.42
7.2.310.0100.01016.29
7.2.300.0100.01316.42
7.2.290.0070.01416.21
7.2.250.0130.00614.87
7.2.240.0130.00715.06
7.2.230.0000.01614.54
7.2.220.0070.01014.89
7.2.210.0120.00314.58
7.2.200.0070.01314.75
7.2.190.0090.00914.84
7.2.180.0030.00714.65
7.2.170.0090.00614.70
7.2.00.0060.01219.19
7.1.330.0110.00315.72
7.1.320.0110.00415.70
7.1.310.0000.01415.98
7.1.300.0060.00615.61
7.1.290.0000.01115.61
7.1.280.0040.01215.46
7.1.270.0040.01215.68
7.1.260.0030.01415.74
7.1.100.0090.00317.77
7.1.70.0030.00617.09
7.1.60.0070.01319.70
7.1.50.0230.00734.69
7.1.00.0030.07722.40
7.0.200.0000.00816.56
7.0.140.0000.07022.15
7.0.110.0170.07719.98
7.0.100.0230.04019.94
7.0.90.0070.07319.93
7.0.80.0130.08319.92
7.0.70.0130.04019.92
7.0.60.0100.05319.98
7.0.50.0130.06020.09
7.0.40.0070.07019.74
7.0.30.0130.07319.87
7.0.20.0030.08019.59
7.0.10.0070.04319.84
7.0.00.0100.08019.78
5.6.280.0030.07320.86
5.6.260.0070.07020.66
5.6.250.0030.04320.68
5.6.240.0070.08020.69
5.6.230.0030.05320.55
5.6.220.0030.05020.62
5.6.210.0000.07020.67
5.6.200.0070.04720.70
5.6.190.0030.08020.85
5.6.180.0170.04020.62
5.6.170.0100.06720.55
5.6.160.0100.07720.68
5.6.150.0130.04320.55
5.6.140.0070.08720.58
5.6.130.0030.08020.61
5.6.120.0000.05320.55
5.6.110.0200.05020.58
5.6.100.0070.04720.62
5.6.90.0030.08320.57
5.6.80.0170.06319.99
5.6.70.0030.07320.01
5.6.60.0070.07720.01
5.6.50.0100.07020.07
5.6.40.0070.03320.00
5.6.30.0030.05019.91
5.6.20.0170.05319.92
5.6.10.0100.07719.91
5.6.00.0000.08320.05
5.5.380.0100.06017.61
5.5.370.0030.08317.63
5.5.360.0030.04717.39
5.5.350.0070.07717.61
5.5.340.0030.04717.99
5.5.330.0030.04717.73
5.5.320.0100.05318.09
5.5.310.0000.04318.13
5.5.300.0030.06718.12
5.5.290.0130.07317.89
5.5.280.0070.06718.27
5.5.270.0100.06318.12
5.5.260.0000.08018.09
5.5.250.0070.07017.98
5.5.240.0100.04717.64
5.5.230.0100.08317.47
5.5.220.0070.07317.14
5.5.210.0030.06717.42
5.5.200.0000.05017.51
5.5.190.0000.04717.12
5.5.180.0100.05717.20
5.5.160.0030.03717.48
5.5.150.0000.04017.48
5.5.140.0130.03017.21
5.5.130.0030.04317.17
5.5.120.0100.04017.48
5.5.110.0030.04717.46
5.5.100.0100.07317.36
5.5.90.0000.08317.44
5.5.80.0130.04317.41
5.5.70.0030.04316.97
5.5.60.0100.04017.25
5.5.50.0100.06717.26
5.5.40.0000.06017.43
5.5.30.0030.07717.34
5.5.20.0100.07317.38
5.5.10.0030.07317.49
5.5.00.0030.07717.32
5.4.450.0130.07019.36
5.4.440.0070.08019.40
5.4.430.0130.05019.32
5.4.420.0070.04719.41
5.4.410.0000.07719.29
5.4.400.0030.07319.18
5.4.390.0130.03319.21
5.4.380.0030.05018.99
5.4.370.0100.07319.21
5.4.360.0000.04319.02
5.4.350.0030.03718.98
5.4.340.0070.03719.13
5.4.320.0030.08019.17
5.4.310.0100.02719.00
5.4.300.0000.05319.20
5.4.290.0100.06718.93
5.4.280.0130.06319.07
5.4.270.0100.07019.07
5.4.260.0070.07719.09
5.4.250.0130.04019.16
5.4.240.0030.08719.07
5.4.230.0100.07318.93
5.4.220.0000.05319.01
5.4.210.0030.04019.09
5.4.200.0070.07319.01
5.4.190.0030.07719.20
5.4.180.0070.05019.01
5.4.170.0030.03318.99
5.4.160.0030.06718.97
5.4.150.0030.07018.97
5.4.140.0070.03016.20
5.4.130.0030.03716.22
5.4.120.0000.07716.44
5.4.110.0030.03316.10
5.4.100.0130.06316.36
5.4.90.0030.06316.48
5.4.80.0030.07716.47
5.4.70.0130.04716.34
5.4.60.0000.06316.25
5.4.50.0070.04716.15
5.4.40.0000.04316.36
5.4.30.0000.03316.21
5.4.20.0100.06316.07
5.4.10.0070.03016.30
5.4.00.0030.04715.65
5.3.290.0070.04714.57
5.3.280.0070.07714.38
5.3.270.0030.07314.48
5.3.260.0030.06314.43
5.3.250.0070.07014.60
5.3.240.0030.03314.67
5.3.230.0070.07714.44
5.3.220.0100.03314.66
5.3.210.0000.08014.57
5.3.200.0030.06314.44
5.3.190.0000.03314.58
5.3.180.0100.07314.57
5.3.170.0000.08014.43
5.3.160.0030.03314.62
5.3.150.0070.04314.62
5.3.140.0000.04314.33
5.3.130.0030.06314.44
5.3.120.0000.07714.64
5.3.110.0000.06314.54
5.3.100.0000.08313.97
5.3.90.0000.09313.97
5.3.80.0070.06313.95
5.3.70.0100.05714.07
5.3.60.0130.05713.86
5.3.50.0030.06713.80
5.3.40.0070.07013.79
5.3.30.0000.03313.98
5.3.20.0100.04013.58
5.3.10.0070.05713.59
5.3.00.0100.07313.55
5.2.170.0030.04012.38
5.2.160.0070.07312.38
5.2.150.0070.05712.38
5.2.140.0030.04012.38
5.2.130.0000.03012.38
5.2.120.0030.02712.38
5.2.110.0030.02712.38
5.2.100.0030.05712.38
5.2.90.0070.05712.38
5.2.80.0070.02712.38
5.2.70.0030.02312.38
5.2.60.0100.02712.38
5.2.50.0000.03012.38
5.2.40.0030.02712.38
5.2.30.0000.04012.38
5.2.20.0030.02312.38
5.2.10.0070.03712.38
5.2.00.0030.02312.38
5.1.60.0030.02012.38
5.1.50.0070.02012.38
5.1.40.0030.05312.38
5.1.30.0100.05012.38
5.1.20.0030.06012.38
5.1.10.0000.03312.38
5.1.00.0000.02312.38
5.0.50.0000.02712.38
5.0.40.0000.02012.38
5.0.30.0000.03712.38
5.0.20.0000.02712.38
5.0.10.0030.01712.38
5.0.00.0030.06712.38
4.4.90.0000.02012.38
4.4.80.0000.01712.38
4.4.70.0030.01712.38
4.4.60.0030.02312.38
4.4.50.0030.03312.38
4.4.40.0000.02312.38
4.4.30.0030.03312.38
4.4.20.0030.02012.38
4.4.10.0070.01012.38
4.4.00.0000.05012.38
4.3.110.0030.02312.38
4.3.100.0000.03312.38
4.3.90.0000.03012.38
4.3.80.0000.05312.38
4.3.70.0030.02312.38
4.3.60.0030.01012.38
4.3.50.0000.02712.38
4.3.40.0000.04312.38
4.3.30.0030.01712.38
4.3.20.0030.02012.38
4.3.10.0030.03312.38
4.3.00.0030.01312.38

preferences:
40.05 ms | 400 KiB | 5 Q