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() { $this->bar = function() {echo 'im a callable bar';}; } } } namespace My\TraitSpace { use \Generic\Space; trait NiceTrait { } } 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.01118.68
8.3.50.0180.00522.05
8.3.40.0150.00018.84
8.3.30.0070.00718.91
8.3.20.0050.00220.14
8.3.10.0060.00323.53
8.3.00.0060.00320.89
8.2.180.0090.00916.60
8.2.170.0090.00622.96
8.2.160.0070.01420.57
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0090.00626.16
8.2.120.0000.01019.48
8.2.110.0060.00322.25
8.2.100.0130.00320.35
8.2.90.0050.00319.02
8.2.80.0030.00617.97
8.2.70.0090.00017.75
8.2.60.0080.00017.93
8.2.50.0030.00618.07
8.2.40.0000.00819.88
8.2.30.0040.00418.25
8.2.20.0000.00817.71
8.2.10.0040.00418.18
8.2.00.0040.00417.63
8.1.280.0100.01025.92
8.1.270.0090.00022.05
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00022.19
8.1.230.0050.00519.28
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0090.00017.35
8.1.190.0040.00417.36
8.1.180.0000.00918.10
8.1.170.0080.00018.67
8.1.160.0040.00422.09
8.1.150.0050.00318.58
8.1.140.0000.00717.50
8.1.130.0000.00617.69
8.1.120.0040.00417.49
8.1.110.0070.00017.51
8.1.100.0030.00517.40
8.1.90.0000.00717.44
8.1.80.0000.00817.53
8.1.70.0040.00417.46
8.1.60.0000.00917.61
8.1.50.0040.00417.50
8.1.40.0030.00617.54
8.1.30.0040.00417.60
8.1.20.0000.00817.67
8.1.10.0030.00617.61
8.1.00.0060.00317.50
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.44
8.0.270.0020.00517.25
8.0.260.0000.00617.32
8.0.250.0030.00316.90
8.0.240.0020.00516.97
8.0.230.0000.00616.88
8.0.220.0030.00316.86
8.0.210.0000.00616.87
8.0.200.0000.00817.00
8.0.190.0000.00717.03
8.0.180.0070.00316.87
8.0.170.0050.00316.88
8.0.160.0030.00316.88
8.0.150.0000.00716.75
8.0.140.0060.00316.94
8.0.130.0050.00013.43
8.0.120.0000.00716.95
8.0.110.0000.00716.98
8.0.100.0030.00516.94
8.0.90.0040.00417.02
8.0.80.0120.00316.89
8.0.70.0040.00416.98
8.0.60.0000.00716.78
8.0.50.0040.00416.99
8.0.30.0130.00517.12
8.0.20.0140.00417.40
8.0.10.0070.00016.90
8.0.00.0120.00516.87
7.4.330.0000.00515.09
7.4.320.0050.00316.59
7.4.300.0030.00316.43
7.4.290.0030.00316.52
7.4.280.0050.00216.51
7.4.270.0030.00316.53
7.4.260.0030.00616.52
7.4.250.0070.00016.61
7.4.240.0020.00516.57
7.4.230.0070.00016.44
7.4.220.0070.01016.60
7.4.210.0070.00716.52
7.4.200.0070.00016.61
7.4.160.0040.01116.57
7.4.150.0110.00517.40
7.4.140.0170.00317.86
7.4.130.0130.00716.44
7.4.120.0060.01316.53
7.4.110.0190.00316.72
7.4.100.0140.00416.52
7.4.90.0100.00716.64
7.4.80.0090.01319.39
7.4.70.0130.00616.48
7.4.60.0130.01016.61
7.4.50.0030.00516.35
7.4.40.0000.01616.65
7.4.30.0040.01216.50
7.4.00.0060.00614.98
7.3.330.0020.00213.36
7.3.320.0000.00513.11
7.3.310.0060.00016.42
7.3.300.0000.00716.24
7.3.290.0050.00916.39
7.3.280.0100.00916.35
7.3.270.0130.00917.40
7.3.260.0070.01016.54
7.3.250.0140.00316.34
7.3.240.0070.01016.55
7.3.230.0000.01616.39
7.3.210.0070.01016.51
7.3.200.0040.01219.39
7.3.190.0040.01416.64
7.3.180.0060.00916.52
7.3.170.0120.00916.34
7.3.160.0100.00616.42
7.3.120.0070.00715.04
7.3.00.0060.01016.61
7.2.330.0180.00416.79
7.2.320.0100.00716.41
7.2.310.0060.01216.60
7.2.300.0110.00716.74
7.2.290.0150.00416.71
7.2.130.0030.01216.80
7.2.120.0040.00816.88
7.2.110.0100.01016.93
7.2.100.0060.00616.89
7.2.90.0060.00616.71
7.2.80.0070.00717.01
7.2.70.0060.00916.78
7.2.60.0050.01016.80
7.2.50.0090.00916.92
7.2.40.0000.01117.02
7.2.30.0070.01116.72
7.2.20.0060.01016.75
7.2.10.0060.00616.86
7.2.00.0050.01118.11
7.1.250.0140.00315.76
7.1.240.0080.00415.30
7.1.230.0070.00715.77
7.1.220.0130.00315.34
7.1.210.0040.00715.63
7.1.200.0060.00915.50
7.1.190.0100.00315.60
7.1.180.0060.00615.48
7.1.170.0070.00715.64
7.1.160.0030.00615.42
7.1.150.0120.00815.70
7.1.140.0000.01415.41
7.1.130.0030.01015.47
7.1.120.0070.01115.45
7.1.110.0070.00715.64
7.1.100.0070.00716.97
7.1.90.0070.00415.54
7.1.80.0030.00715.76
7.1.70.0070.00516.20
7.1.60.0050.01417.59
7.1.50.0070.01016.24
7.1.40.0030.01015.56
7.1.30.0100.00715.45
7.1.20.0120.00415.72
7.1.10.0030.01015.50
7.1.00.0060.04018.83
7.0.330.0060.00915.23
7.0.320.0040.01115.19
7.0.310.0040.00815.54
7.0.300.0030.00715.13
7.0.290.0130.00315.30
7.0.280.0030.00715.20
7.0.270.0060.00615.24
7.0.260.0030.01015.30
7.0.250.0110.00315.52
7.0.240.0070.00015.36
7.0.230.0070.00715.50
7.0.220.0070.00315.11
7.0.210.0120.00614.83
7.0.200.0050.00515.87
7.0.190.0000.01315.40
7.0.180.0070.00715.36
7.0.170.0130.00015.52
7.0.160.0130.00315.48
7.0.150.0110.00415.23
7.0.140.0070.03818.71
7.0.130.0090.00615.34
7.0.120.0060.00615.16
7.0.110.0110.00315.49
7.0.100.0120.02417.70
7.0.90.0060.04417.52
7.0.80.0090.04017.59
7.0.70.0080.03817.63
7.0.60.0050.04617.66
7.0.50.0100.04317.86
7.0.40.0030.04916.75
7.0.30.0030.02816.80
7.0.20.0020.03016.65
7.0.10.0080.02516.64
7.0.00.0080.03016.55
5.6.380.0000.01314.28
5.6.370.0050.00514.38
5.6.360.0120.00014.16
5.6.350.0060.00314.79
5.6.340.0040.00814.28
5.6.330.0030.00514.64
5.6.320.0090.00314.28
5.6.310.0040.00814.57
5.6.300.0060.00614.47
5.6.290.0110.00014.65
5.6.280.0060.03817.44
5.6.270.0050.00514.31
5.6.260.0000.00814.03
5.6.250.0160.02717.29
5.6.240.0070.03717.48
5.6.230.0070.02417.56
5.6.220.0030.02817.36
5.6.210.0080.03017.35
5.6.200.0050.04617.82
5.6.190.0050.02917.54
5.6.180.0070.04817.78
5.6.170.0030.05017.59
5.6.160.0050.04517.61
5.6.150.0100.04117.72
5.6.140.0090.02317.66
5.6.130.0100.03217.59
5.6.120.0050.04617.89
5.6.110.0050.04417.48
5.6.100.0100.04417.65
5.6.90.0070.04517.64
5.6.80.0050.04117.39
5.6.70.0050.04617.29
5.6.60.0050.04317.40
5.6.50.0110.03017.26
5.6.40.0060.04117.22
5.6.30.0050.04417.18
5.6.20.0050.03817.22
5.6.10.0050.03917.38
5.6.00.0060.02717.29
5.5.380.0030.03315.68
5.5.370.0030.02515.80
5.5.360.0130.03915.80
5.5.350.0100.03415.77
5.5.340.0100.02416.00
5.5.330.0050.02316.03
5.5.320.0080.03716.13
5.5.310.0070.02716.09
5.5.300.0060.02516.16
5.5.290.0110.03316.01
5.5.280.0080.04216.01
5.5.270.0070.02015.85
5.5.260.0030.04515.91
5.5.250.0070.04115.88
5.5.240.0080.03015.54
5.5.230.0050.04915.61
5.5.220.0080.03315.65
5.5.210.0030.04315.47
5.5.200.0050.02915.68
5.5.190.0070.03015.43
5.5.180.0040.04815.54
5.5.170.0000.01210.90
5.5.160.0130.02815.31
5.5.150.0050.04215.59
5.5.140.0020.04715.48
5.5.130.0070.04215.75
5.5.120.0070.03515.75
5.5.110.0060.04215.52
5.5.100.0140.03715.54
5.5.90.0100.04015.58
5.5.80.0070.04015.50
5.5.70.0130.03215.66
5.5.60.0060.04015.67
5.5.50.0030.03715.66
5.5.40.0080.02315.69
5.5.30.0110.03715.37
5.5.20.0080.04115.52
5.5.10.0070.04115.58
5.5.00.0050.02515.64
5.4.450.0100.03815.23
5.4.440.0080.02515.09
5.4.430.0050.03815.17
5.4.420.0070.04015.04
5.4.410.0000.04215.31
5.4.400.0100.03715.08
5.4.390.0110.02014.99
5.4.380.0030.04815.04
5.4.370.0030.04214.85
5.4.360.0030.03915.01
5.4.350.0030.04314.89
5.4.340.0030.03814.94
5.4.330.0000.01110.52
5.4.320.0030.02314.77
5.4.310.0100.03515.04
5.4.300.0050.02414.89
5.4.290.0050.02615.01
5.4.280.0100.03914.92
5.4.270.0030.03015.00
5.4.260.0070.02814.97
5.4.250.0100.02815.08
5.4.240.0050.04115.00
5.4.230.0090.03514.88
5.4.220.0000.04414.98
5.4.210.0030.02415.09
5.4.200.0080.03514.82
5.4.190.0020.02514.89
5.4.180.0070.04014.71
5.4.170.0030.04014.87
5.4.160.0120.02314.90
5.4.150.0080.03614.88
5.4.140.0080.02113.71
5.4.130.0030.02313.57
5.4.120.0040.03013.81
5.4.110.0080.02013.71
5.4.100.0050.02313.86
5.4.90.0030.02913.62
5.4.80.0080.03713.75
5.4.70.0120.01713.87
5.4.60.0020.03813.57
5.4.50.0030.02313.56
5.4.40.0040.03913.45
5.4.30.0060.02213.64
5.4.20.0020.04013.60
5.4.10.0020.04313.42
5.4.00.0060.03013.25
5.3.290.0060.03312.56
5.3.280.0070.03712.24
5.3.270.0030.04112.49
5.3.260.0070.04012.55
5.3.250.0030.03112.45
5.3.240.0050.04212.34
5.3.230.0070.03512.40
5.3.220.0060.02712.48
5.3.210.0050.04012.40
5.3.200.0050.04012.33
5.3.190.0070.03912.47
5.3.180.0060.03812.53
5.3.170.0070.03512.54
5.3.160.0070.03112.41
5.3.150.0050.03912.42
5.3.140.0020.02312.51
5.3.130.0030.04412.55
5.3.120.0030.04412.37
5.3.110.0100.02012.44
5.3.100.0050.02312.25
5.3.90.0090.03012.25
5.3.80.0080.02612.13
5.3.70.0080.03612.13
5.3.60.0020.02312.21
5.3.50.0100.03512.17
5.3.40.0040.03412.12
5.3.30.0030.02012.06
5.3.20.0080.02512.00
5.3.10.0080.02011.91
5.3.00.0100.01711.88
5.2.170.0030.02110.40
5.2.160.0060.02710.54
5.2.150.0040.03210.41
5.2.140.0080.01510.50
5.2.130.0050.01810.50
5.2.120.0040.02710.52
5.2.110.0000.02710.49
5.2.100.0030.03410.51
5.2.90.0020.03010.46
5.2.80.0060.03010.50
5.2.70.0030.02710.48
5.2.60.0000.02110.45
5.2.50.0020.02510.37
5.2.40.0030.01910.43
5.2.30.0030.03410.35
5.2.20.0050.01510.43
5.2.10.0020.03410.40
5.2.00.0010.03010.24
5.1.60.0040.0259.94
5.1.50.0030.0249.95
5.1.40.0070.0179.92
5.1.30.0030.02010.06
5.1.20.0030.03210.06
5.1.10.0030.0169.96
5.1.00.0020.0169.96
5.0.50.0050.0259.73
5.0.40.0030.0209.73
5.0.30.0020.0279.73
5.0.20.0000.0159.73
5.0.10.0050.0219.73
5.0.00.0030.0259.73
4.4.90.0020.0109.73
4.4.80.0020.0159.73
4.4.70.0050.0159.73
4.4.60.0030.0139.73
4.4.50.0050.0119.73
4.4.40.0050.0239.73
4.4.30.0050.0089.73
4.4.20.0030.0149.73
4.4.10.0000.0109.73
4.4.00.0000.0279.73
4.3.110.0020.0219.73
4.3.100.0020.0109.73
4.3.90.0000.0169.73
4.3.80.0050.0129.73
4.3.70.0000.0159.73
4.3.60.0020.0199.73
4.3.50.0050.0179.73
4.3.40.0040.0129.73
4.3.30.0020.0189.73
4.3.20.0000.0249.73
4.3.10.0010.0159.73
4.3.00.0000.0169.73

preferences:
60.49 ms | 401 KiB | 5 Q