3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Generic\Space { function bar() { echo "bar over here!"; } } namespace Some\Other { class Foo { use \My\TraitSpace\NiceTrait; function baz() { $method = new \ReflectionMethod('Some\Other\Foo', 'bar'); $method->setAccessible(false); } } } namespace My\TraitSpace { use \Generic\Space\bar; trait NiceTrait { function bar() { echo "within the trait!"; } } } 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.0100.01018.30
8.3.50.0110.00922.12
8.3.40.0040.01118.44
8.3.30.0090.00618.83
8.3.20.0040.01420.17
8.3.10.0070.00723.61
8.3.00.0070.00020.95
8.2.180.0120.00616.50
8.2.170.0160.00022.96
8.2.160.0070.01120.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.01126.16
8.2.120.0040.00419.22
8.2.110.0090.00022.10
8.2.100.0070.00419.08
8.2.90.0000.00919.13
8.2.80.0030.00517.97
8.2.70.0070.00317.63
8.2.60.0040.00417.93
8.2.50.0050.00518.07
8.2.40.0060.00319.88
8.2.30.0000.00718.26
8.2.20.0050.00317.55
8.2.10.0040.00418.16
8.2.00.0030.00519.34
8.1.280.0130.00725.92
8.1.270.0090.00623.95
8.1.260.0070.00026.35
8.1.250.0040.01128.09
8.1.240.0030.00623.96
8.1.230.0080.00319.04
8.1.220.0080.00417.78
8.1.210.0050.00318.77
8.1.200.0040.00417.22
8.1.190.0000.00817.13
8.1.180.0050.00318.10
8.1.170.0000.00918.45
8.1.160.0040.00422.03
8.1.150.0050.00318.54
8.1.140.0000.00717.52
8.1.130.0040.00417.91
8.1.120.0000.00717.34
8.1.110.0000.00717.47
8.1.100.0000.00717.50
8.1.90.0080.00017.34
8.1.80.0000.00717.43
8.1.70.0030.00317.45
8.1.60.0040.00417.48
8.1.50.0060.00317.37
8.1.40.0100.00017.54
8.1.30.0030.00517.57
8.1.20.0040.00417.71
8.1.10.0040.00417.57
8.1.00.0040.00417.39
8.0.300.0080.00018.77
8.0.290.0000.00816.75
8.0.280.0030.00318.49
8.0.270.0050.00217.17
8.0.260.0030.00317.13
8.0.250.0070.00016.96
8.0.240.0040.00416.88
8.0.230.0070.00016.96
8.0.220.0030.00316.90
8.0.210.0030.00316.93
8.0.200.0030.00316.83
8.0.190.0090.00316.91
8.0.180.0000.00716.99
8.0.170.0070.00016.87
8.0.160.0000.00816.75
8.0.150.0040.00416.87
8.0.140.0000.00716.87
8.0.130.0030.00313.33
8.0.120.0060.00316.70
8.0.110.0040.00416.72
8.0.100.0020.00516.75
8.0.90.0000.00716.71
8.0.80.0110.01116.93
8.0.70.0000.00716.90
8.0.60.0040.00416.94
8.0.50.0000.00816.94
8.0.30.0050.01517.03
8.0.20.0060.01317.40
8.0.10.0040.00416.98
8.0.00.0080.01016.83
7.4.330.0020.00215.07
7.4.320.0000.00716.42
7.4.300.0000.00616.60
7.4.290.0040.00416.46
7.4.280.0040.00416.60
7.4.270.0000.00716.53
7.4.260.0000.00816.62
7.4.250.0080.00016.55
7.4.240.0050.00216.47
7.4.230.0070.00016.52
7.4.220.0140.00416.46
7.4.210.0090.00616.66
7.4.200.0030.00316.55
7.4.160.0060.00916.58
7.4.150.0070.01117.40
7.4.140.0100.00817.86
7.4.130.0080.00816.51
7.4.120.0110.00916.52
7.4.110.0120.00616.50
7.4.100.0100.00716.43
7.4.90.0120.00616.39
7.4.80.0090.00919.39
7.4.70.0200.00516.56
7.4.60.0150.00316.66
7.4.50.0110.00016.22
7.4.40.0100.00616.60
7.4.30.0050.01016.45
7.4.00.0060.00814.94
7.3.330.0000.00613.23
7.3.320.0030.00313.11
7.3.310.0030.00316.29
7.3.300.0070.00016.34
7.3.290.0000.01616.22
7.3.280.0090.00816.18
7.3.270.0290.01817.40
7.3.260.0060.01216.34
7.3.250.0110.00616.15
7.3.240.0130.00516.37
7.3.230.0070.01016.39
7.3.210.0060.01216.40
7.3.200.0100.00719.39
7.3.190.0180.00716.28
7.3.180.0110.00716.25
7.3.170.0120.00316.27
7.3.160.0040.01716.30
7.3.120.0050.01014.77
7.3.110.0140.00314.78
7.3.100.0090.00614.66
7.3.90.0040.00714.55
7.3.80.0090.00914.72
7.3.70.0030.01514.82
7.3.60.0070.00714.85
7.3.50.0000.01414.79
7.3.40.0030.00714.76
7.3.30.0030.00514.70
7.3.20.0080.00416.28
7.3.10.0030.01016.58
7.3.00.0030.01016.60
7.2.330.0100.00716.53
7.2.320.0180.00016.43
7.2.310.0060.01116.46
7.2.300.0100.00716.35
7.2.290.0120.00616.86
7.2.250.0090.00915.05
7.2.240.0140.00414.91
7.2.230.0080.00614.54
7.2.220.0000.00915.04
7.2.210.0100.01014.88
7.2.200.0040.01114.85
7.2.190.0060.00914.82
7.2.180.0090.00915.00
7.2.170.0040.00415.00
7.2.130.0080.00016.60
7.2.120.0090.00016.76
7.2.110.0000.01216.64
7.2.100.0030.01116.79
7.2.90.0000.01216.70
7.2.80.0040.00816.97
7.2.70.0000.01217.01
7.2.60.0090.00616.58
7.2.50.0000.00917.06
7.2.40.0000.01016.93
7.2.30.0030.01116.67
7.2.20.0120.00316.74
7.2.10.0150.00016.94
7.2.00.0030.01018.11
7.1.330.0070.01115.41
7.1.320.0090.00315.75
7.1.310.0140.00015.78
7.1.300.0040.00715.64
7.1.290.0060.00615.39
7.1.280.0060.01015.77
7.1.270.0090.00015.61
7.1.260.0040.00815.50
7.1.250.0090.00315.62
7.1.100.0110.00717.92
7.1.70.0050.00317.22
7.1.60.0170.00719.70
7.1.50.0130.00916.93
7.1.00.0030.07722.45
7.0.200.0000.00716.55
7.0.140.0130.06322.21
7.0.60.0100.07719.91
7.0.50.0030.08317.97
7.0.40.0100.08320.11
7.0.30.0200.06020.16
7.0.20.0330.07720.16
7.0.10.0070.07720.10
7.0.00.0070.06320.22
5.6.280.0000.07721.13
5.6.210.0100.07320.71
5.6.200.0070.04318.18
5.6.190.0100.08720.41
5.6.180.0330.07720.48
5.6.170.0300.03720.39
5.6.160.0030.04720.39
5.6.150.0030.04018.16
5.6.140.0070.08018.21
5.6.130.0130.07718.19
5.6.120.0100.07721.13
5.6.110.0100.08021.13
5.6.100.0030.04320.98
5.6.90.0030.08721.02
5.6.80.0070.08020.41
5.5.350.0030.07720.30
5.5.340.0070.06317.95
5.5.330.0130.07720.42
5.5.320.0270.07720.30
5.5.310.0370.07020.34
5.5.300.0030.07317.99
5.5.290.0100.07718.04
5.5.280.0070.04020.88
5.5.270.0100.08020.77
5.5.260.0030.05320.88
5.5.250.0130.03320.60
5.5.240.4200.03720.27
5.4.450.0470.04319.46
5.4.440.0470.05019.57
5.4.430.0170.04719.30
5.4.420.0270.04019.56
5.4.410.0200.04019.39
5.4.400.0170.04019.09
5.4.390.0270.05019.13
5.4.380.0300.05018.51
5.4.370.0270.05318.47
5.4.360.0200.05018.59
5.4.350.0370.06318.56
5.4.340.0170.05318.63
5.4.320.0040.03812.51
5.4.310.0070.04412.50
5.4.300.0080.03512.51
5.4.290.0070.03812.51
5.4.280.0080.04612.40
5.4.270.0080.03512.40
5.4.260.0070.03812.40
5.4.250.0060.03812.41
5.4.240.0060.04412.40
5.4.230.0070.05412.40
5.4.220.0120.04012.39
5.4.210.0080.03412.39
5.4.200.0050.03912.39
5.4.190.0090.03412.39
5.4.180.0110.03112.39
5.4.170.0050.03712.40
5.4.160.0060.03812.39
5.4.150.0100.03312.39
5.4.140.0060.03912.07
5.4.130.0050.03712.06
5.4.120.0100.03212.02
5.4.110.0080.03312.02
5.4.100.0060.03512.02
5.4.90.0060.03712.02
5.4.80.0040.03912.01
5.4.70.0050.03612.02
5.4.60.0100.03212.02
5.4.50.0050.03712.01
5.4.40.0040.03812.00
5.4.30.0060.03612.00
5.4.20.0060.03912.00
5.4.10.0060.04112.00
5.4.00.0070.03511.48
5.3.290.0090.04312.80
5.3.280.0090.03412.71
5.3.270.0060.04012.72
5.3.260.0100.03612.72
5.3.250.0050.03912.72
5.3.240.0100.03512.72
5.3.230.0080.03712.71
5.3.220.0100.04412.68
5.3.210.0090.05112.68
5.3.200.0100.04812.68
5.3.190.0080.05212.68
5.3.180.0180.07912.68
5.3.170.0110.05712.67
5.3.160.0110.04912.68
5.3.150.0080.05312.67
5.3.140.0070.05412.66
5.3.130.0050.05412.66
5.3.120.0090.05112.66
5.3.110.0090.05112.66
5.3.100.0080.05412.13
5.3.90.0070.05512.10
5.3.80.0090.05112.09
5.3.70.0070.04812.09
5.3.60.0080.05012.07
5.3.50.0090.04512.02
5.3.40.0100.03512.02
5.3.30.0050.03911.98
5.3.20.0100.03411.77
5.3.10.0140.03011.73
5.3.00.0080.03611.71
5.2.170.0080.0299.18
5.2.160.0070.0299.18
5.2.150.0120.0289.18
5.2.140.0040.0359.18
5.2.130.0060.0329.14
5.2.120.0090.0289.14
5.2.110.0070.0299.15
5.2.100.0060.0389.14
5.2.90.0040.0339.14
5.2.80.0030.0379.14
5.2.70.0070.0379.14
5.2.60.0040.0399.09
5.2.50.0050.0329.06
5.2.40.0070.0339.04
5.2.30.0040.0369.01
5.2.20.0060.0299.01
5.2.10.0060.0288.93
5.2.00.0040.0328.79
5.1.60.0090.0338.06
5.1.50.0060.0348.06
5.1.40.0070.0318.05
5.1.30.0100.0328.40
5.1.20.0060.0348.42
5.1.10.0030.0298.14
5.1.00.0040.0288.14
5.0.50.0050.0216.62
5.0.40.0060.0216.48
5.0.30.0020.0356.29
5.0.20.0030.0206.26
5.0.10.0040.0196.25
5.0.00.0020.0326.24
4.4.90.0030.0144.78
4.4.80.0050.0134.75
4.4.70.0030.0184.76
4.4.60.0070.0144.75
4.4.50.0040.0184.77
4.4.40.0040.0294.71
4.4.30.0010.0174.76
4.4.20.0040.0174.85
4.4.10.0050.0154.85
4.4.00.0020.0274.76
4.3.110.0010.0174.67
4.3.100.0030.0194.67
4.3.90.0030.0164.63
4.3.80.0020.0294.59
4.3.70.0020.0164.63
4.3.60.0050.0154.63
4.3.50.0030.0214.63
4.3.40.0040.0294.54
4.3.30.0030.0183.28
4.3.20.0030.0183.26
4.3.10.0020.0173.22
4.3.00.0030.01711.14

preferences:
35.79 ms | 401 KiB | 5 Q