3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A\B { function f($foo = FOO) { var_dump($foo); var_dump(FOO); } } namespace { define('FOO', 'foo bar'); \A\B\f(); }

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.4.20.0140.00719.19
8.4.10.0030.00620.67
8.3.150.0120.00618.46
8.3.140.0080.00017.14
8.3.130.0070.00018.38
8.3.120.0060.00318.89
8.3.110.0100.00620.94
8.3.100.0070.00424.06
8.3.90.0130.00726.77
8.3.80.0060.00318.30
8.3.70.0120.00318.18
8.3.60.0070.01018.56
8.3.50.0060.00717.99
8.3.40.0070.00718.51
8.3.30.0100.00718.54
8.3.20.0080.00018.89
8.3.10.0000.00820.61
8.3.00.0060.00319.57
8.2.260.0070.01116.41
8.2.250.0000.01518.38
8.2.240.0090.00017.00
8.2.230.0070.01122.58
8.2.220.0040.00437.54
8.2.210.0080.00026.77
8.2.200.0060.00616.25
8.2.190.0090.00616.58
8.2.180.0060.01316.32
8.2.170.0120.00322.96
8.2.160.0100.00319.08
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0050.00320.90
8.2.110.0060.00322.11
8.2.100.0040.00717.72
8.2.90.0000.00819.09
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0030.00617.68
8.2.50.0060.00318.07
8.2.40.0050.00317.91
8.2.30.0000.00917.91
8.2.20.0040.00417.86
8.2.10.0040.00417.90
8.2.00.0000.00719.37
8.1.310.0070.00318.33
8.1.300.0030.00617.53
8.1.290.0030.00630.84
8.1.280.0100.01325.92
8.1.270.0050.00322.20
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00620.64
8.1.230.0100.00017.70
8.1.220.0000.00917.79
8.1.210.0040.00418.77
8.1.200.0060.00317.10
8.1.190.0030.00617.00
8.1.180.0090.00018.10
8.1.170.0060.00618.62
8.1.160.0040.00418.78
8.1.150.0000.00718.82
8.1.140.0000.00717.62
8.1.130.0040.00417.43
8.1.120.0000.00817.34
8.1.110.0000.00717.37
8.1.100.0000.00717.38
8.1.90.0040.00417.40
8.1.80.0070.00317.39
8.1.70.0030.00317.31
8.1.60.0000.00817.46
8.1.50.0040.00417.46
8.1.40.0070.00017.49
8.1.30.0060.00317.41
8.1.20.0000.00717.59
8.1.10.0040.00417.30
8.1.00.0040.00417.20
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0080.00018.29
8.0.270.0000.00716.73
8.0.260.0000.00716.66
8.0.250.0030.00316.90
8.0.240.0030.00316.77
8.0.230.0030.00316.77
8.0.220.0000.00716.78
8.0.210.0000.00716.69
8.0.200.0000.00716.86
8.0.190.0060.00316.90
8.0.180.0030.00716.90
8.0.170.0030.00516.74
8.0.160.0030.00316.82
8.0.150.0070.00016.78
8.0.140.0000.00716.68
8.0.130.0030.00613.25
8.0.120.0000.00716.75
8.0.110.0040.00416.69
8.0.100.0040.00416.73
8.0.90.0000.00716.86
8.0.80.0060.01516.78
8.0.70.0000.00716.72
8.0.60.0020.00516.69
8.0.50.0000.00716.66
8.0.30.0160.00317.12
8.0.20.0090.01117.40
8.0.10.0040.00416.89
8.0.00.0090.01016.75
7.4.330.0050.00015.55
7.4.320.0000.00616.42
7.4.300.0030.00316.58
7.4.290.0070.00016.38
7.4.280.0030.00516.44
7.4.270.0070.00016.44
7.4.260.0040.00416.54
7.4.250.0040.00416.39
7.4.240.0030.00316.39
7.4.230.0030.00316.34
7.4.220.0040.00416.46
7.4.210.0080.00916.50
7.4.200.0050.00316.42
7.4.160.0080.01016.55
7.4.140.0080.01117.86
7.4.130.0000.02116.45
7.4.120.0090.00916.44
7.4.110.0070.01016.40
7.4.100.0080.01116.59
7.4.90.0130.01016.30
7.4.80.0090.01219.39
7.4.70.0110.00816.39
7.4.60.0100.00616.28
7.4.50.0070.00616.32
7.4.40.0030.01316.18
7.4.00.0060.00914.93
7.3.330.0020.00213.22
7.3.320.0060.00013.24
7.3.310.0040.00416.14
7.3.300.0000.00716.24
7.3.290.0070.00016.23
7.3.280.0080.01016.25
7.3.260.0120.00816.33
7.3.240.0110.00716.41
7.3.230.0070.01116.48
7.3.210.0100.01016.21
7.3.200.0110.00716.31
7.3.190.0180.00916.45
7.3.180.0120.00616.38
7.3.170.0100.01016.44
7.3.160.0040.01316.30
7.3.10.0070.00716.37
7.3.00.0080.00416.32
7.2.330.0150.00816.23
7.2.320.0070.01116.17
7.2.310.0090.00916.66
7.2.300.0100.00716.55
7.2.290.0090.00816.63
7.2.130.0090.00716.51
7.2.120.0110.00716.56
7.2.110.0070.01016.56
7.2.100.0050.01216.48
7.2.90.0150.00616.67
7.2.80.0070.00716.61
7.2.70.0060.00816.69
7.2.60.1540.00815.45
7.2.50.1020.00915.60
7.2.40.0940.00815.85
7.2.30.1120.00915.82
7.2.20.0770.00915.74
7.2.10.1080.00815.77
7.2.00.1030.00815.84
7.1.250.0050.00815.71
7.1.240.0110.00515.60
7.1.230.0070.01415.77
7.1.220.0070.00715.38
7.1.210.0110.00915.70
7.1.200.0160.00315.53
7.1.190.0150.00615.72
7.1.180.0030.01315.46
7.1.170.1200.00914.22
7.1.160.1580.01016.33
7.1.150.1230.01216.49
7.1.140.0730.01016.38
7.1.130.1470.00916.48
7.1.120.1700.01016.38
7.1.110.1200.01116.03
7.1.100.1330.01015.89
7.1.90.1300.01015.92
7.1.80.1140.01115.91
7.1.70.2030.00915.36
7.1.60.1570.01028.68
7.1.50.1580.01228.59
7.1.40.1940.01528.38
7.1.30.2090.01228.31
7.1.20.1370.01428.37
7.1.10.1300.01014.90
7.1.00.1320.01114.96
7.0.330.0070.01015.10
7.0.320.0130.00015.27
7.0.310.0130.00315.03
7.0.300.0120.00814.32
7.0.290.0090.00915.73
7.0.280.0040.00715.33
7.0.270.0150.00915.94
7.0.260.0130.01215.82
7.0.250.1030.01015.33
7.0.240.0150.01115.71
7.0.230.0410.00915.52
7.0.220.0950.00815.50
7.0.210.1350.00615.03
7.0.200.0090.01014.91
7.0.190.0120.00915.10
7.0.180.0100.00814.74
7.0.170.1450.00814.68
7.0.160.0080.01114.90
7.0.150.1570.01214.57
7.0.140.0110.01014.85
7.0.130.1290.01015.06
7.0.120.1370.01114.99
7.0.110.0110.01114.92
7.0.100.0220.01114.86
7.0.90.0370.00714.83
7.0.80.0070.00714.77
7.0.70.0130.00414.80
7.0.60.1680.00714.76
7.0.50.0130.01114.82
7.0.40.0120.00713.85
7.0.30.0150.00613.92
7.0.20.1730.00713.87
7.0.10.1240.01213.87
7.0.00.0130.00613.89
5.6.380.0100.00814.10
5.6.370.0030.00914.43
5.6.360.0060.00614.00
5.6.350.0030.00914.07
5.6.340.0000.01114.00
5.6.330.0000.01514.31
5.6.320.0030.01414.07
5.6.310.0090.00614.27
5.6.300.0150.04719.14
5.6.290.0150.05019.03
5.6.280.0170.04519.16
5.6.270.0150.05019.16
5.6.260.0160.04619.19
5.6.250.0190.05219.16
5.6.240.0170.05219.17
5.6.230.0150.04819.09
5.6.220.0200.05119.13
5.6.210.0150.04919.01
5.6.200.0150.05119.13
5.6.190.0160.05019.07
5.6.180.0160.04919.14
5.6.170.0160.04919.16
5.6.160.0130.05619.14
5.6.150.0180.05119.11
5.6.140.0180.05519.24
5.6.130.0160.05719.03
5.6.120.0170.05119.19
5.6.110.0160.05719.23
5.6.100.0150.05219.22
5.6.90.0130.04719.14
5.6.80.0160.05018.66
5.6.70.0140.04418.56
5.6.60.0160.04918.53
5.6.50.0200.04118.59
5.6.40.0170.05018.68
5.6.30.0170.04918.58
5.6.20.0130.04518.55
5.6.10.0150.04518.57
5.6.00.0110.05018.66
5.5.380.0120.04214.18
5.5.370.0120.03614.29
5.5.360.0080.04014.30
5.5.350.0100.03414.34
5.5.340.0100.02914.52
5.5.330.0100.03214.54
5.5.320.0110.03414.47
5.5.310.0070.03314.45
5.5.300.0110.03114.46
5.5.290.0170.03214.60
5.5.280.0140.03614.48
5.5.270.0110.03814.54
5.5.260.0090.03114.50
5.5.250.0090.03514.39
5.5.240.0110.02714.16
5.5.230.0090.03714.15
5.5.220.0110.02814.21
5.5.210.0070.03914.20
5.5.200.0120.03514.16
5.5.190.0120.03414.10
5.5.180.0100.03214.14
5.5.170.0030.00510.90
5.5.160.0110.03714.19
5.5.150.0120.03613.97
5.5.140.0120.02614.14
5.5.130.0100.02914.02
5.5.120.0100.03114.14
5.5.110.0130.02814.18
5.5.100.0100.03614.01
5.5.90.0080.03213.92
5.5.80.0070.03314.12
5.5.70.0080.03214.19
5.5.60.0100.02914.01
5.5.50.0090.02814.07
5.5.40.0080.02914.15
5.5.30.0120.03514.07
5.5.20.0110.03114.04
5.5.10.0080.03013.94
5.5.00.0130.03114.05
5.4.450.0160.03615.12
5.4.440.0070.04215.06
5.4.430.0100.03715.14
5.4.420.0120.02915.12
5.4.410.0050.03414.99
5.4.400.0140.03114.98
5.4.390.0110.03315.11
5.4.380.0100.02814.93
5.4.370.0170.02514.91
5.4.360.0120.04014.96
5.4.350.0120.03014.96
5.4.340.0130.03114.90
5.4.330.0000.01110.91
5.4.320.0100.03414.96
5.4.310.0120.02714.98
5.4.300.0110.02915.03
5.4.290.0090.03114.92
5.4.280.0130.03315.04
5.4.270.0110.02914.83
5.4.260.0090.03414.98
5.4.250.0110.03414.95
5.4.240.0100.03514.96
5.4.230.0120.02814.83
5.4.220.0070.03614.88
5.4.210.0130.03114.97
5.4.200.0150.02714.93
5.4.190.0070.03414.90
5.4.180.0080.03115.07
5.4.170.0070.03314.93
5.4.160.0100.03714.94
5.4.150.0080.03414.98
5.4.140.0110.03413.71
5.4.130.0130.02513.85
5.4.120.0140.02613.80
5.4.110.0090.03313.76
5.4.100.0150.02713.66
5.4.90.0080.03113.76
5.4.80.0060.02813.75
5.4.70.0090.02813.85
5.4.60.0110.02513.75
5.4.50.0100.02713.74
5.4.40.0090.02813.84
5.4.30.0110.02713.70
5.4.20.0080.03513.72
5.4.10.0100.03113.77
5.4.00.0090.03213.52
5.3.290.0110.03712.81
5.3.280.0080.02912.88
5.3.270.0120.03312.84
5.3.260.0120.03512.81
5.3.250.0100.03312.81
5.3.240.0090.02812.89
5.3.230.0090.02912.86
5.3.220.0120.03612.86
5.3.210.0140.03412.84
5.3.200.0120.03012.82
5.3.190.0070.03312.83
5.3.180.0080.02812.83
5.3.170.0100.02512.87
5.3.160.0120.02412.84
5.3.150.0080.03012.82
5.3.140.0100.03012.72
5.3.130.0070.03412.86
5.3.120.0100.03112.75
5.3.110.0090.03812.73
5.3.100.0130.02612.60
5.3.90.0120.02912.57
5.3.80.0110.03212.60
5.3.70.0120.03112.48
5.3.60.0090.03112.55
5.3.50.0140.02512.44
5.3.40.0140.02612.53
5.3.30.0110.03212.40
5.3.20.0080.02712.29
5.3.10.0070.02712.30
5.3.00.0050.02912.41
5.2.170.0100.02011.09
5.2.160.0080.02211.10
5.2.150.0050.02511.07
5.2.140.0080.02210.98
5.2.130.0080.02111.02
5.2.120.0080.02011.02
5.2.110.0050.02311.02
5.2.100.0090.02411.11
5.2.90.0090.02711.07
5.2.80.0080.02811.02
5.2.70.0080.02210.96
5.2.60.0090.02811.08
5.2.50.0090.02111.03
5.2.40.0080.02610.94
5.2.30.0060.02810.84
5.2.20.0060.02211.00
5.2.10.0070.02310.87
5.2.00.0080.02210.83
5.1.60.0080.01710.56
5.1.50.0060.01910.38
5.1.40.0060.02310.48
5.1.30.0110.02110.67
5.1.20.0070.02610.62
5.1.10.0080.02210.52
5.1.00.0070.02610.58
5.0.50.0060.0209.82
5.0.40.0080.0179.73
5.0.30.0060.0209.63
5.0.20.0040.0169.53
5.0.10.0070.0129.57
5.0.00.0030.0299.56
4.4.90.0020.0179.35
4.4.80.0030.0149.35
4.4.70.0030.0139.35
4.4.60.0060.0109.35
4.4.50.0050.0119.35
4.4.40.0050.0179.35
4.4.30.0040.0159.35
4.4.20.0040.0159.35
4.4.10.0050.0119.35
4.4.00.0060.0169.35
4.3.110.0040.0129.35
4.3.100.0080.0119.35
4.3.90.0060.0089.35
4.3.80.0020.0209.35
4.3.70.0040.0169.35
4.3.60.0040.0159.35
4.3.50.0030.0199.35
4.3.40.0060.0239.35
4.3.30.0020.0149.35
4.3.20.0040.0159.35
4.3.10.0030.0129.35
4.3.00.0060.0129.35

preferences:
38.42 ms | 403 KiB | 5 Q