3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Name\Space { function bar() { echo "bar over here!"; } } namespace Some\Other { class Foo { use \Name\Space; function baz() { $this->bar = function() {echo 'im a callable bar';}; } } } namespace { $foo = new Some\Other\Foo(); $foo->baz(); $foo->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.0110.00418.56
8.3.50.0090.01022.02
8.3.40.0090.00918.75
8.3.30.0100.00319.04
8.3.20.0030.00520.34
8.3.10.0050.00323.51
8.3.00.0040.00420.95
8.2.180.0100.01316.63
8.2.170.0100.00722.96
8.2.160.0130.00320.39
8.2.150.0040.00424.18
8.2.140.0090.00924.66
8.2.130.0080.00026.16
8.2.120.0080.00019.28
8.2.110.0040.00422.12
8.2.100.0040.00820.54
8.2.90.0000.00719.22
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0000.00817.91
8.2.50.0030.00618.07
8.2.40.0060.00319.94
8.2.30.0040.00418.07
8.2.20.0000.00817.63
8.2.10.0060.00318.01
8.2.00.0080.00017.59
8.1.280.0070.00725.92
8.1.270.0050.00322.14
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.13
8.1.230.0070.00418.97
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0080.00017.22
8.1.190.0090.00017.23
8.1.180.0060.00318.10
8.1.170.0080.00018.71
8.1.160.0040.00422.02
8.1.150.0000.00718.58
8.1.140.0000.00817.41
8.1.130.0000.00717.77
8.1.120.0040.00417.44
8.1.110.0030.00517.30
8.1.100.0000.00817.31
8.1.90.0030.00317.38
8.1.80.0040.00417.46
8.1.70.0000.00717.38
8.1.60.0050.00317.44
8.1.50.0090.00017.39
8.1.40.0040.00417.48
8.1.30.0030.00617.49
8.1.20.0000.00817.62
8.1.10.0040.00417.38
8.1.00.0040.00417.21
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0000.00718.35
8.0.270.0040.00416.83
8.0.260.0040.00417.15
8.0.250.0040.00416.90
8.0.240.0040.00417.00
8.0.230.0070.00016.95
8.0.220.0000.00716.87
8.0.210.0070.00016.86
8.0.200.0070.00017.03
8.0.190.0040.00416.87
8.0.180.0020.00516.81
8.0.170.0030.00516.84
8.0.160.0050.00316.84
8.0.150.0030.00316.95
8.0.140.0050.00516.87
8.0.130.0000.00513.35
8.0.120.0000.00716.90
8.0.110.0000.00716.75
8.0.100.0040.00416.74
8.0.90.0060.00316.75
8.0.80.0060.00916.94
8.0.70.0030.00516.96
8.0.60.0050.00316.70
8.0.50.0020.00516.74
8.0.30.0090.00916.99
8.0.20.0150.00817.40
8.0.10.0080.00016.90
8.0.00.0100.00816.62
7.4.330.0020.00215.00
7.4.320.0030.00316.47
7.4.300.0060.00016.55
7.4.290.0030.00316.38
7.4.280.0040.00416.55
7.4.270.0050.00316.35
7.4.260.0030.00316.46
7.4.250.0050.00316.52
7.4.240.0020.00516.46
7.4.230.0030.00616.36
7.4.220.0030.01316.62
7.4.210.0080.00816.48
7.4.200.0030.00316.44
7.4.160.0090.00916.48
7.4.150.0120.00617.40
7.4.140.0130.00817.86
7.4.130.0080.00816.49
7.4.120.0110.00516.59
7.4.110.0130.00316.47
7.4.100.0040.01516.61
7.4.90.0130.00616.29
7.4.80.0140.00719.39
7.4.70.0090.00916.64
7.4.60.0080.01116.41
7.4.50.0090.00016.63
7.4.40.0130.00316.38
7.4.30.0080.00816.52
7.4.00.0070.00714.58
7.3.330.0020.00213.21
7.3.320.0000.00513.04
7.3.310.0000.00816.29
7.3.300.0000.00716.22
7.3.290.0030.01016.27
7.3.280.0080.00816.21
7.3.270.0060.01317.40
7.3.260.0160.00316.53
7.3.250.0150.00516.47
7.3.240.0080.00816.50
7.3.230.0120.00616.39
7.3.210.0140.00316.38
7.3.200.0030.01319.39
7.3.190.0130.01016.45
7.3.180.0070.01116.29
7.3.170.0060.00916.38
7.3.160.0110.00716.55
7.3.120.0030.01314.79
7.3.10.0090.01216.62
7.3.00.0130.00016.61
7.2.330.0060.01216.60
7.2.320.0070.01016.31
7.2.310.0110.00716.50
7.2.300.0030.01316.57
7.2.290.0080.00816.63
7.2.130.0070.01116.81
7.2.120.0090.00916.87
7.2.110.0100.01016.79
7.2.100.0060.00916.68
7.2.90.0120.00716.38
7.2.80.0040.01016.76
7.2.70.0100.01016.67
7.2.60.0100.00316.65
7.2.50.0150.00216.82
7.2.40.0110.00616.83
7.2.30.0120.00316.51
7.2.20.0070.01316.41
7.2.10.0140.00416.63
7.2.00.0090.00317.89
7.1.250.0030.00915.82
7.1.100.0080.00818.11
7.1.70.0030.00517.05
7.1.60.0070.01719.70
7.1.50.0100.01316.62
7.1.00.0030.07722.40
7.0.200.0000.00716.57
7.0.140.0070.07022.04
7.0.60.0070.08019.96
7.0.50.0130.06717.87
7.0.40.0100.04020.09
7.0.30.0530.04720.24
7.0.20.0400.07020.23
7.0.10.0170.06020.30
7.0.00.0030.05020.06
5.6.280.0100.06721.08
5.6.210.0070.07020.70
5.6.200.0000.05018.14
5.6.190.0070.08720.46
5.6.180.0130.06320.55
5.6.170.0300.04020.56
5.6.160.0100.05320.62
5.6.150.0100.07018.29
5.6.140.0100.07018.27
5.6.130.0070.07318.15
5.6.120.0030.04321.04
5.6.110.0100.08320.98
5.6.100.0130.07321.14
5.6.90.0030.08720.98
5.6.80.0030.08720.51
5.6.70.0100.04320.29
5.5.350.0000.08320.34
5.5.340.0000.06317.99
5.5.330.0170.07020.27
5.5.320.0400.05020.27
5.5.310.0330.05320.24
5.5.300.0130.07718.01
5.5.290.0130.07318.03
5.5.280.0270.06320.91
5.5.270.0100.08020.76
5.5.260.0030.08320.88
5.5.250.0130.08020.79
5.5.240.0170.07020.24
5.4.450.1130.04319.50
5.4.440.0630.04739.55
5.4.430.0430.04735.93
5.4.420.0330.04335.93
5.4.410.0400.04335.93
5.4.400.0230.03735.89
5.4.390.0270.03735.74
5.4.380.0100.06018.51
5.4.370.0170.05018.67
5.4.360.0130.05018.59
5.4.350.0170.06318.73
5.4.340.0200.04718.53
5.4.320.0060.03512.51
5.4.310.0060.03712.50
5.4.300.0060.04312.51
5.4.290.0070.04012.50
5.4.280.0070.03912.40
5.4.270.0060.05612.40
5.4.260.0070.05712.41
5.4.250.0100.04012.40
5.4.240.0060.05212.41
5.4.230.0080.03812.39
5.4.220.0120.03812.39
5.4.210.0080.03512.39
5.4.200.0090.04312.39
5.4.190.0070.03812.39
5.4.180.0090.03612.39
5.4.170.0070.04112.40
5.4.160.0040.04112.39
5.4.150.0120.04812.39
5.4.140.0150.05412.07
5.4.130.0150.04712.07
5.4.120.0110.05712.02
5.4.110.0090.05612.02
5.4.100.0070.04312.02
5.4.90.0050.04112.02
5.4.80.0050.04112.02
5.4.70.0100.03312.01
5.4.60.0060.03712.02
5.4.50.0080.03512.01
5.4.40.0070.04012.00
5.4.30.0060.03612.00
5.4.20.0070.03712.00
5.4.10.0100.03512.00
5.4.00.0080.05611.49
5.3.290.0040.04012.80
5.3.280.0060.05612.71
5.3.270.0090.04212.73
5.3.260.0140.05212.72
5.3.250.0150.04912.72
5.3.240.0150.04912.72
5.3.230.0060.05412.71
5.3.220.0130.06412.68
5.3.210.0100.04812.68
5.3.200.0070.04312.68
5.3.190.0080.03612.68
5.3.180.0050.03912.67
5.3.170.0110.04312.67
5.3.160.0090.04312.68
5.3.150.0060.03912.68
5.3.140.0020.04112.66
5.3.130.0070.03912.66
5.3.120.0040.04412.66
5.3.110.0070.04112.66
5.3.100.0080.04012.12
5.3.90.0040.04112.11
5.3.80.0060.03812.09
5.3.70.0040.03912.09
5.3.60.0020.04212.08
5.3.50.0050.03712.02
5.3.40.0090.03412.02
5.3.30.0080.03411.98
5.3.20.0090.03511.76
5.3.10.0080.03411.73
5.3.00.0070.03511.71
5.2.170.0080.0279.18
5.2.160.0040.0339.18
5.2.150.0050.0339.18
5.2.140.0070.0369.18
5.2.130.0070.0349.14
5.2.120.0060.0299.14
5.2.110.0010.0349.14
5.2.100.0070.0299.14
5.2.90.0040.0329.14
5.2.80.0080.0329.14
5.2.70.0040.0329.14
5.2.60.0030.0339.09
5.2.50.0030.0339.06
5.2.40.0050.0319.04
5.2.30.0090.0329.01
5.2.20.0020.0329.00
5.2.10.0040.0358.93
5.2.00.0060.0398.79
5.1.60.0080.0268.07
5.1.50.0030.0278.06
5.1.40.0040.0258.04
5.1.30.0050.0268.40
5.1.20.0040.0308.42
5.1.10.0080.0228.14
5.1.00.0060.0358.14
5.0.50.0030.0286.62
5.0.40.0040.0206.48
5.0.30.0050.0346.29
5.0.20.0060.0276.26
5.0.10.0030.0296.24
5.0.00.0050.0296.23
4.4.90.0030.0154.78
4.4.80.0030.0214.75
4.4.70.0030.0174.75
4.4.60.0010.0174.76
4.4.50.0040.0144.77
4.4.40.0010.0274.70
4.4.30.0040.0154.76
4.4.20.0010.0174.84
4.4.10.0040.0154.85
4.4.00.0030.0254.76
4.3.110.0030.0164.67
4.3.100.0050.0224.66
4.3.90.0050.0214.63
4.3.80.0050.0314.58
4.3.70.0070.0194.63
4.3.60.0050.0324.63
4.3.50.0060.0244.63
4.3.40.0070.0314.54
4.3.30.0010.0233.29
4.3.20.0040.0203.26
4.3.10.0040.0143.22
4.3.00.0000.01735.39

preferences:
66.24 ms | 401 KiB | 5 Q