3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace NS { class Foo { public static function bar($i = DEF) { return $i; } } } namespace { define('\\NS\\DEF', 'ddd'); var_dump(Ex::bar()); }

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.0090.00616.25
8.3.50.0120.00522.70
8.3.40.0110.01119.02
8.3.30.0070.00719.08
8.3.20.0040.00420.21
8.3.10.0050.00321.73
8.3.00.0070.00319.56
8.2.180.0130.00616.63
8.2.170.0110.00422.96
8.2.160.0140.00420.44
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0060.00321.15
8.2.110.0060.00322.08
8.2.100.0000.01117.76
8.2.90.0080.00019.22
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0040.00717.80
8.2.50.0040.00418.07
8.2.40.0030.00618.22
8.2.30.0000.00817.98
8.2.20.0000.00717.74
8.2.10.0050.00317.87
8.2.00.0000.00717.61
8.1.280.0150.00025.92
8.1.270.0000.00923.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00924.02
8.1.230.0090.00320.82
8.1.220.0040.00418.77
8.1.210.0050.00319.00
8.1.200.0060.00317.22
8.1.190.0030.00617.23
8.1.180.0050.00318.10
8.1.170.0030.00618.32
8.1.160.0050.00221.93
8.1.150.0040.00418.73
8.1.140.0040.00417.35
8.1.130.0030.00317.63
8.1.120.0000.00717.35
8.1.110.0030.00517.28
8.1.100.0040.00417.28
8.1.90.0040.00417.23
8.1.80.0070.00017.31
8.1.70.0070.00017.20
8.1.60.0060.00317.50
8.1.50.0040.00417.49
8.1.40.0000.00717.48
8.1.30.0050.00317.42
8.1.20.0000.00717.47
8.1.10.0070.00017.54
8.1.00.0000.00717.41
8.0.300.0040.00419.88
8.0.290.0040.00416.75
8.0.280.0080.00018.36
8.0.270.0030.00317.18
8.0.260.0050.00317.18
8.0.250.0030.00316.96
8.0.240.0050.00316.84
8.0.230.0000.00716.92
8.0.220.0040.00416.89
8.0.210.0030.00316.82
8.0.200.0000.00616.81
8.0.190.0000.00716.99
8.0.180.0040.00416.92
8.0.170.0080.00016.78
8.0.160.0070.00016.90
8.0.150.0000.00716.75
8.0.140.0030.00616.83
8.0.130.0050.00013.30
8.0.120.0040.00416.83
8.0.110.0040.00416.78
8.0.100.0030.00616.90
8.0.90.0070.00016.78
8.0.80.0070.01416.91
8.0.70.0000.00816.83
8.0.60.0040.00416.91
8.0.50.0030.00516.94
8.0.30.0090.01017.06
8.0.20.0120.00717.40
8.0.10.0040.00416.98
8.0.00.0130.00816.81
7.4.330.0020.00215.00
7.4.320.0030.00316.30
7.4.300.0040.00416.46
7.4.290.0030.00316.55
7.4.280.0050.00516.34
7.4.270.0030.00316.57
7.4.260.0000.00716.32
7.4.250.0000.00716.50
7.4.240.0030.00416.45
7.4.230.0000.00716.26
7.4.220.0100.01016.30
7.4.210.0040.01116.50
7.4.200.0000.00716.46
7.4.160.0070.00716.52
7.4.150.0140.01117.40
7.4.140.0120.00517.86
7.4.130.0160.00916.51
7.4.120.0070.01216.63
7.4.110.0070.01116.63
7.4.100.0060.01316.57
7.4.90.0140.00716.55
7.4.80.0100.00719.39
7.4.70.0030.01516.58
7.4.60.0120.00916.35
7.4.50.0000.00716.48
7.4.40.0060.01016.44
7.4.30.0090.01316.43
7.4.00.0050.00515.04
7.3.330.0060.00013.33
7.3.320.0000.00513.14
7.3.310.0030.00316.29
7.3.300.0040.00416.24
7.3.290.0100.00316.24
7.3.280.0070.00816.24
7.3.270.0120.00617.40
7.3.260.0030.01516.44
7.3.240.0090.01216.31
7.3.230.0100.00616.41
7.3.210.0130.00916.32
7.3.200.0130.01019.39
7.3.190.0090.01216.48
7.3.180.0150.00316.50
7.3.170.0080.01116.30
7.3.160.0060.01016.42
7.3.120.0070.00714.77
7.2.330.0110.01116.56
7.2.320.0060.01016.50
7.2.310.0030.01416.68
7.2.300.0160.00616.63
7.2.290.0030.01316.47
7.2.60.0060.00816.86
7.2.00.0000.00919.25
7.1.200.0080.00415.65
7.1.100.0000.01418.04
7.1.70.0040.00817.06
7.1.60.0130.01319.40
7.1.50.0140.01017.02
7.1.00.0030.07322.51
7.0.200.0000.00916.44
7.0.140.0100.06322.04
7.0.60.0070.07719.87
7.0.50.0030.04017.88
7.0.40.0130.08320.21
7.0.30.0270.08020.33
7.0.20.0230.04720.16
7.0.10.0130.08320.34
7.0.00.0130.07720.30
5.6.280.0130.06320.86
5.6.210.0030.08320.70
5.6.200.0170.07318.18
5.6.190.0030.04320.61
5.6.180.0570.06720.46
5.6.170.0230.04320.39
5.6.160.0130.07720.44
5.6.150.0170.05718.11
5.6.140.0030.05018.28
5.6.130.0030.08318.21
5.6.120.0130.07721.01
5.6.110.0000.05721.08
5.6.100.0230.06721.01
5.6.90.0130.06721.03
5.6.80.0100.06720.47
5.5.350.0300.07320.45
5.5.340.0070.05017.98
5.5.330.0030.04720.27
5.5.320.0400.04720.31
5.5.310.0200.03720.24
5.5.300.0070.08018.09
5.5.290.0030.08718.01
5.5.280.0130.08020.84
5.5.270.0030.04320.81
5.5.260.0170.07020.79
5.5.250.0000.04320.49
5.5.240.0000.08020.29
5.4.450.0770.07019.61
5.4.440.0770.05319.29
5.4.430.0770.06019.60
5.4.420.0730.05719.32
5.4.410.0100.05319.22
5.4.400.0730.05718.96
5.4.390.0730.06318.95
5.4.380.0130.05318.79
5.4.370.0070.05718.56
5.4.360.0230.04018.59
5.4.350.0080.04812.02
5.4.340.0130.06812.02
5.4.320.0070.03712.50
5.4.310.0050.04112.50
5.4.300.0070.03712.50
5.4.290.0070.04312.50
5.4.280.0080.03712.39
5.4.270.0060.03612.39
5.4.260.0070.03612.39
5.4.250.0060.03612.39
5.4.240.0120.02912.39
5.4.230.0040.03812.38
5.4.220.0030.03812.39
5.4.210.0050.03412.39
5.4.200.0070.03512.38
5.4.190.0050.03512.39
5.4.180.0060.03512.38
5.4.170.0040.03712.39
5.4.160.0050.03612.39
5.4.150.0060.03512.39
5.4.140.0050.03712.07
5.4.130.0070.03312.05
5.4.120.0060.03412.02
5.4.110.0040.04012.01
5.4.100.0060.03612.01
5.4.90.0080.03712.01
5.4.80.0060.03612.01
5.4.70.0040.03512.00
5.4.60.0070.03212.01
5.4.50.0050.03512.00
5.4.40.0070.03312.00
5.4.30.0060.03511.99
5.4.20.0070.03312.00
5.4.10.0080.04412.00
5.4.00.0020.04311.48
5.3.290.0060.04612.80
5.3.280.0060.03612.71
5.3.270.0090.03812.72
5.3.260.0050.04112.72
5.3.250.0080.04012.72
5.3.240.0080.03812.72
5.3.230.0040.03912.71
5.3.220.0070.03612.68
5.3.210.0110.03312.68
5.3.200.0080.03512.68
5.3.190.0070.03712.68
5.3.180.0060.04312.67
5.3.170.0070.03412.67
5.3.160.0080.04712.68
5.3.150.0050.04012.68
5.3.140.0070.03512.66
5.3.130.0050.03912.66
5.3.120.0040.04012.66
5.3.110.0060.03812.66
5.3.100.0040.03812.12
5.3.90.0070.03512.10
5.3.80.0070.03712.10
5.3.70.0040.03712.10
5.3.60.0070.04012.08
5.3.50.0090.03712.03
5.3.40.0070.03712.03
5.3.30.0060.03811.98
5.3.20.0040.03611.76
5.3.10.0040.03511.73
5.3.00.0080.03611.72
5.2.170.0060.0329.18
5.2.160.0050.0289.18
5.2.150.0080.0349.18
5.2.140.0030.0319.18
5.2.130.0050.0299.14
5.2.120.0040.0369.14
5.2.110.0060.0269.14
5.2.100.0040.0289.14
5.2.90.0070.0299.14
5.2.80.0030.0319.14
5.2.70.0060.0319.14
5.2.60.0080.0339.09
5.2.50.0060.0289.06
5.2.40.0040.0329.03
5.2.30.0080.0269.02
5.2.20.0060.0279.00
5.2.10.0040.0298.92
5.2.00.0070.0288.78
5.1.60.0030.0258.07
5.1.50.0040.0258.06
5.1.40.0040.0258.05
5.1.30.0070.0258.40
5.1.20.0080.0238.42
5.1.10.0010.0338.14
5.1.00.0070.0318.14
5.0.50.0040.0226.62
5.0.40.0060.0216.47
5.0.30.0040.0306.30
5.0.20.0030.0276.26
5.0.10.0020.0236.24
5.0.00.0060.0286.23
4.4.90.0040.0174.78
4.4.80.0030.0144.76
4.4.70.0030.0144.75
4.4.60.0020.0164.76
4.4.50.0010.0164.77
4.4.40.0020.0254.71
4.4.30.0020.0174.76
4.4.20.0040.0164.84
4.4.10.0020.0154.84
4.4.00.0020.0244.76
4.3.110.0060.0144.67
4.3.100.0020.0164.67
4.3.90.0030.0144.64
4.3.80.0010.0254.59
4.3.70.0010.0164.63
4.3.60.0030.0144.62
4.3.50.0030.0154.63
4.3.40.0030.0244.54
4.3.30.0000.0193.29
4.3.20.0020.0263.26
4.3.10.0020.0153.22
4.3.00.0100.0237.83

preferences:
41.27 ms | 401 KiB | 5 Q