3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Pare { const DEF = __CLASS__; } namespace NS { class Foo extends Pare { 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.70.0110.00816.58
8.3.60.0110.00416.38
8.3.50.0110.00722.94
8.3.40.0210.00018.66
8.3.30.0070.00718.91
8.3.20.0070.00020.20
8.3.10.0040.00421.65
8.3.00.0050.00319.43
8.2.180.0160.00316.63
8.2.170.0110.00422.96
8.2.160.0060.01320.35
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0050.00321.01
8.2.110.0050.00520.25
8.2.100.0060.00617.59
8.2.90.0060.00318.97
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0080.00317.68
8.2.50.0080.00018.07
8.2.40.0040.00418.03
8.2.30.0030.00517.97
8.2.20.0040.00417.57
8.2.10.0000.00817.91
8.2.00.0080.00017.42
8.1.280.0170.00025.92
8.1.270.0050.00323.96
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00622.17
8.1.230.0090.00320.84
8.1.220.0000.00818.77
8.1.210.0000.00818.90
8.1.200.0060.00317.10
8.1.190.0080.00017.11
8.1.180.0040.00418.10
8.1.170.0030.00518.57
8.1.160.0030.00321.89
8.1.150.0000.00818.78
8.1.140.0040.00417.31
8.1.130.0070.00017.81
8.1.120.0030.00317.36
8.1.110.0030.00617.36
8.1.100.0040.00417.24
8.1.90.0040.00417.37
8.1.80.0040.00417.34
8.1.70.0000.00717.30
8.1.60.0030.00617.52
8.1.50.0050.00317.40
8.1.40.0040.00417.39
8.1.30.0000.00917.40
8.1.20.0000.00717.44
8.1.10.0070.00017.40
8.1.00.0040.00417.29
8.0.300.0060.00319.81
8.0.290.0040.00416.63
8.0.280.0030.00518.40
8.0.270.0050.00317.05
8.0.260.0030.00317.11
8.0.250.0060.00016.78
8.0.240.0050.00216.84
8.0.230.0030.00316.77
8.0.220.0000.00716.68
8.0.210.0030.00316.71
8.0.200.0040.00416.86
8.0.190.0050.00316.87
8.0.180.0050.00316.89
8.0.170.0060.00316.83
8.0.160.0030.00516.93
8.0.150.0000.00716.86
8.0.140.0030.00616.76
8.0.130.0030.00313.20
8.0.120.0030.00516.79
8.0.110.0040.00416.80
8.0.100.0040.00416.92
8.0.90.0000.00716.86
8.0.80.0100.00616.75
8.0.70.0040.00416.75
8.0.60.0040.00416.77
8.0.50.0000.00716.72
8.0.30.0110.00916.97
8.0.20.0130.00917.40
8.0.10.0020.00516.86
8.0.00.0120.00916.62
7.4.330.0020.00215.00
7.4.320.0000.00616.53
7.4.300.0000.00616.50
7.4.290.0030.00316.42
7.4.280.0040.00416.43
7.4.270.0030.00316.56
7.4.260.0000.00716.53
7.4.250.0050.00216.41
7.4.240.0070.00016.50
7.4.230.0000.00716.23
7.4.220.0100.00716.39
7.4.210.0080.00816.46
7.4.200.0000.00816.33
7.4.160.0080.00816.38
7.4.150.0140.01017.40
7.4.140.0070.00917.86
7.4.130.0130.01316.48
7.4.120.0100.00716.62
7.4.110.0030.01316.45
7.4.100.0060.01616.69
7.4.90.0100.01016.45
7.4.80.0110.00719.39
7.4.70.0080.01416.33
7.4.60.0090.00916.63
7.4.50.0050.00016.26
7.4.40.0120.00316.46
7.4.30.0130.00316.60
7.3.330.0030.00313.23
7.3.320.0030.00313.18
7.3.310.0070.00016.21
7.3.300.0060.00015.99
7.3.290.0070.00616.22
7.3.280.0070.00816.21
7.3.270.0110.01117.40
7.3.260.0110.00816.24
7.3.240.0100.00716.40
7.3.230.0060.00916.39
7.3.210.0030.01416.29
7.3.200.0130.01119.39
7.3.190.0100.01016.21
7.3.180.0080.00816.41
7.3.170.0050.01416.34
7.3.160.0030.01416.23
7.2.330.0030.01616.58
7.2.320.0060.01116.47
7.2.310.0100.00616.32
7.2.300.0070.01516.34
7.2.290.0090.00616.40
5.4.310.0070.03612.51
5.4.300.0080.03412.51
5.4.290.0040.04012.50
5.4.280.0080.03612.39
5.4.270.0060.03812.39
5.4.260.0070.03512.40
5.4.250.0090.03412.39
5.4.240.0040.03912.40
5.4.230.0060.03812.39
5.4.220.0040.03812.39
5.4.210.0060.03512.39
5.4.200.0060.03812.39
5.4.190.0040.03812.38
5.4.180.0080.03312.38
5.4.170.0050.03612.40
5.4.160.0070.03412.39
5.4.150.0050.03512.39
5.4.140.0040.03912.07
5.4.130.0070.03412.06
5.4.120.0050.03512.02
5.4.110.0100.03412.02
5.4.100.0090.03412.02
5.4.90.0040.03812.01
5.4.80.0090.04112.01
5.4.70.0080.03212.01
5.4.60.0080.03212.01
5.4.50.0070.03412.01
5.4.40.0050.03512.00
5.4.30.0070.03411.99
5.4.20.0070.03412.00
5.4.10.0070.03511.99
5.4.00.0060.03811.49
5.3.280.0060.03612.71
5.3.270.0090.03512.72
5.3.260.0060.03912.72
5.3.250.0090.04112.72
5.3.240.0080.03612.72
5.3.230.0070.03912.71
5.3.220.0100.03712.68
5.3.210.0080.04012.68
5.3.200.0040.03812.68
5.3.190.0070.03812.68
5.3.180.0050.03812.67
5.3.170.0070.03512.67
5.3.160.0090.03812.67
5.3.150.0070.03512.67
5.3.140.0090.03612.66
5.3.130.0050.04112.66
5.3.120.0070.03812.66
5.3.110.0070.03712.66
5.3.100.0070.03512.12
5.3.90.0040.03812.10
5.3.80.0050.03612.08
5.3.70.0040.03712.08
5.3.60.0050.03812.07
5.3.50.0040.03612.02
5.3.40.0050.03612.02
5.3.30.0050.03411.98
5.3.20.0050.03611.75
5.3.10.0050.03411.73
5.3.00.0050.03611.71
5.2.170.0030.0319.21
5.2.160.0030.0369.21
5.2.150.0010.0349.21
5.2.140.0050.0319.21
5.2.130.0040.0299.17
5.2.120.0040.0299.17
5.2.110.0070.0279.18
5.2.100.0040.0319.17
5.2.90.0050.0289.17
5.2.80.0100.0249.17
5.2.70.0050.0329.17
5.2.60.0050.0299.13
5.2.50.0050.0329.10
5.2.40.0050.0279.07
5.2.30.0040.0329.04
5.2.20.0040.0299.04
5.2.10.0040.0298.94
5.2.00.0070.0318.80
5.1.60.0050.0228.09
5.1.50.0040.0288.08
5.1.40.0040.0248.06
5.1.30.0050.0248.42
5.1.20.0050.0258.43
5.1.10.0040.0258.16
5.1.00.0040.0268.16
5.0.50.0030.0216.64
5.0.40.0040.0196.50
5.0.30.0020.0366.31
5.0.20.0040.0196.28
5.0.10.0040.0236.26
5.0.00.0030.0306.25
4.4.90.0030.0154.78
4.4.80.0020.0164.76
4.4.70.0040.0154.75
4.4.60.0020.0154.76
4.4.50.0020.0154.77
4.4.40.0020.0274.71
4.4.30.0000.0184.76
4.4.20.0010.0194.84
4.4.10.0020.0164.85
4.4.00.0020.0284.76
4.3.110.0040.0164.67
4.3.100.0040.0154.67
4.3.90.0030.0214.63
4.3.80.0020.0254.58
4.3.70.0050.0124.63
4.3.60.0050.0134.63
4.3.50.0020.0164.63
4.3.40.0040.0244.54
4.3.30.0020.0183.30
4.3.20.0020.0163.28
4.3.10.0040.0153.24
4.3.00.0170.0238.45

preferences:
54.68 ms | 401 KiB | 5 Q