3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Generic\Space { function bip() { 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\bip; trait NiceTrait { function bar() { echo "within the trait!" . __NAMESPACE__; } } } namespace { $foo = new Some\Other\Foo(); $foo->baz(); $foo->bar(); $foo->bip(); }

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.0150.00018.43
8.3.50.0130.00821.93
8.3.40.0040.01518.64
8.3.30.0110.00719.07
8.3.20.0090.00920.21
8.3.10.0090.00923.66
8.3.00.0120.00819.19
8.2.180.0150.00718.29
8.2.170.0150.00622.96
8.2.160.0130.00720.38
8.2.150.0120.00624.18
8.2.140.0110.00724.66
8.2.130.0180.00026.16
8.2.120.0130.00619.36
8.2.110.0030.00622.21
8.2.100.0120.00319.63
8.2.90.0030.00519.10
8.2.80.0000.00817.97
8.2.70.0050.00317.75
8.2.60.0030.00617.93
8.2.50.0060.00318.07
8.2.40.0000.00819.90
8.2.30.0040.00418.13
8.2.20.0050.00317.75
8.2.10.0000.00717.96
8.2.00.0040.00419.40
8.1.280.0100.01025.92
8.1.270.0110.00723.96
8.1.260.0090.00926.35
8.1.250.0090.00928.09
8.1.240.0090.00023.84
8.1.230.0070.00319.16
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0050.00317.13
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0070.00021.94
8.1.150.0040.00418.63
8.1.140.0000.00817.48
8.1.130.0030.00317.86
8.1.120.0020.00517.37
8.1.110.0030.00517.42
8.1.100.0030.00517.45
8.1.90.0000.00717.42
8.1.80.0070.00017.45
8.1.70.0030.00317.39
8.1.60.0080.00017.61
8.1.50.0000.00917.50
8.1.40.0030.00517.52
8.1.30.0040.00417.66
8.1.20.0000.00817.57
8.1.10.0030.00517.58
8.1.00.0000.00817.39
8.0.300.0040.00418.77
8.0.290.0060.00317.16
8.0.280.0000.00818.45
8.0.270.0000.00817.26
8.0.260.0000.00617.19
8.0.250.0030.00317.03
8.0.240.0000.00716.91
8.0.230.0040.00416.91
8.0.220.0000.00816.99
8.0.210.0070.00016.83
8.0.200.0000.00717.05
8.0.190.0070.00416.93
8.0.180.0000.00816.94
8.0.170.0000.00816.98
8.0.160.0000.00716.96
8.0.150.0030.00516.89
8.0.140.0050.00216.89
8.0.130.0060.00013.35
8.0.120.0040.00416.93
8.0.110.0050.00217.02
8.0.100.0000.00816.97
8.0.90.0000.00716.83
8.0.80.0070.01016.89
8.0.70.0040.00416.82
8.0.60.0050.00316.85
8.0.50.0030.00516.80
8.0.30.0110.00917.05
8.0.20.0110.00717.40
8.0.10.0000.00817.02
8.0.00.0090.01016.76
7.4.330.0020.00215.13
7.4.320.0000.00716.48
7.4.300.0000.00616.59
7.4.290.0050.00216.58
7.4.280.0000.00716.50
7.4.270.0000.00716.47
7.4.260.0030.00316.48
7.4.250.0040.00416.57
7.4.240.0030.00516.60
7.4.230.0070.00016.68
7.4.220.0070.01416.46
7.4.210.0090.00616.54
7.4.200.0080.00016.60
7.4.160.0120.00316.57
7.4.150.0180.00017.40
7.4.140.0120.01017.86
7.4.130.0120.00516.51
7.4.120.0090.00916.69
7.4.110.0090.00916.64
7.4.100.0090.00916.46
7.4.90.0090.00916.43
7.4.80.0110.00719.39
7.4.70.0120.01016.43
7.4.60.0100.01016.43
7.4.50.0000.00516.30
7.4.40.0120.00616.49
7.4.30.0070.01116.59
7.4.00.0030.01414.97
7.3.330.0000.00513.39
7.3.320.0060.00013.39
7.3.310.0070.00016.43
7.3.300.0030.00316.39
7.3.290.0110.00416.42
7.3.280.0080.00916.37
7.3.270.0170.00317.40
7.3.260.0100.00916.33
7.3.250.0090.00816.38
7.3.240.0190.00016.56
7.3.230.0070.01016.44
7.3.210.0070.01016.36
7.3.200.0140.00619.39
7.3.190.0110.00716.50
7.3.180.0030.01316.60
7.3.170.0120.00316.62
7.3.160.0060.01216.54
7.3.120.0030.01314.70
7.2.330.0130.00316.69
7.2.320.0040.01616.60
7.2.310.0130.00316.50
7.2.300.0040.01216.36
7.2.290.0130.01016.70
7.2.80.0000.01616.50
7.2.60.0030.01216.81
7.2.00.0070.00719.46
7.1.200.0040.00815.46
7.1.100.0090.00618.11
7.1.70.0040.00416.96
7.1.60.0060.01619.70
7.1.50.0100.01016.73
7.1.00.0100.07022.36
7.0.200.0030.00616.78
7.0.140.0000.07022.09
7.0.60.0100.08019.91
7.0.50.0070.05317.88
7.0.40.0030.05320.23
7.0.30.0370.07720.08
7.0.20.0300.05020.09
7.0.10.0070.09020.16
7.0.00.0030.04720.19
5.6.280.0070.07020.83
5.6.210.0100.03320.51
5.6.200.0030.04318.27
5.6.190.0100.07020.46
5.6.180.0430.04720.58
5.6.170.0170.04320.54
5.6.160.0100.08020.56
5.6.150.0030.08318.18
5.6.140.0000.05318.18
5.6.130.0000.04318.27
5.6.120.0130.08021.15
5.6.110.0030.07021.10
5.6.100.0170.07320.98
5.6.90.0070.07721.01
5.6.80.0100.06720.42
5.5.350.4370.03320.43
5.5.340.0030.07017.98
5.5.330.0100.07720.31
5.5.320.0100.06720.40
5.5.310.0100.04720.51
5.5.300.0100.05018.07
5.5.290.0030.06718.08
5.5.280.0100.04720.81
5.5.270.0100.08320.77
5.5.260.0170.07020.89
5.5.250.0130.08020.48
5.5.240.0200.07720.05
5.4.450.3630.04719.18
5.4.440.3500.04319.18
5.4.430.3800.04019.56
5.4.420.3770.03319.63
5.4.410.3930.03019.42
5.4.400.4030.04319.15
5.4.390.3570.03719.22
5.4.380.3300.03318.85
5.4.370.3570.03719.08
5.4.360.3600.04018.87
5.4.350.4500.03018.95
5.4.340.3870.03719.09
5.4.320.3430.03718.95
5.4.310.3470.04018.98
5.4.300.3770.04319.08
5.4.290.3370.04319.17
5.4.280.3570.03719.31
5.4.270.3330.02719.16
5.4.260.3730.03719.19
5.4.250.3930.03319.06
5.4.240.3900.03019.18
5.4.230.3700.03319.08
5.4.220.3600.04019.06
5.4.210.3600.03319.08
5.4.200.3100.04719.15
5.4.190.3730.03318.93
5.4.180.3770.03719.21
5.4.170.3600.02719.25
5.4.160.3330.04019.14
5.4.150.3530.04019.20
5.4.140.3770.04016.51
5.4.130.3630.03716.46
5.4.120.3700.03316.36
5.4.110.3670.03316.25
5.4.100.3430.03316.33
5.4.90.3700.03316.53
5.4.80.4100.03716.38
5.4.70.3800.03716.29
5.4.60.3570.03016.55
5.4.50.2670.03716.51
5.4.40.3330.03716.53
5.4.30.3530.02716.16
5.4.20.3700.02716.38
5.4.10.3700.02716.53
5.4.00.3030.03715.96
5.3.290.3570.04714.64
5.3.280.3700.03714.75
5.3.270.3530.03714.68
5.3.260.3530.04314.68
5.3.250.3830.03714.52
5.3.240.4130.04014.52
5.3.230.3770.03714.64
5.3.220.3400.03714.68
5.3.210.3670.04314.68
5.3.200.3570.03714.68
5.3.190.3600.04314.68
5.3.180.4100.02714.54
5.3.170.3830.04014.79
5.3.160.3530.04014.54
5.3.150.4130.03714.58
5.3.140.3130.03014.64
5.3.130.3300.04014.47
5.3.120.3330.03714.49
5.3.110.3430.03314.55
5.3.100.3430.03714.00
5.3.90.3170.04013.98
5.3.80.3030.03714.23
5.3.70.3100.03013.96
5.3.60.3600.02714.09
5.3.50.2930.03314.17
5.3.40.3170.03314.10
5.3.30.3400.04013.98
5.3.20.4270.03013.76
5.3.10.3970.03013.87
5.3.00.3730.02713.64
5.2.170.2830.02711.15
5.2.160.2970.02711.19
5.2.150.2900.03010.99
5.2.140.3230.02710.98
5.2.130.3270.02710.95
5.2.120.2930.03011.03
5.2.110.3100.03311.03
5.2.100.3170.03011.01
5.2.90.3400.03010.96
5.2.80.2900.02311.10
5.2.70.3070.03011.15
5.2.60.3070.03010.88
5.2.50.3470.02710.95
5.2.40.2670.03010.85
5.2.30.2370.02710.88
5.2.20.2530.03010.96
5.2.10.2270.03011.01
5.2.00.2400.03010.61
5.1.60.2730.0209.97
5.1.50.2700.0179.90
5.1.40.2430.0209.91
5.1.30.2400.03310.27
5.1.20.2570.02710.34
5.1.10.2970.02310.18
5.1.00.2670.0239.94
5.0.50.1670.0208.63
5.0.40.1430.0178.38
5.0.30.1470.0338.13
5.0.20.1230.0178.08
5.0.10.1230.0208.25
5.0.00.1430.0308.22
4.4.90.1230.0176.67
4.4.80.1200.0136.67
4.4.70.1100.0136.67
4.4.60.1300.0176.67
4.4.50.1130.0176.67
4.4.40.1230.0206.67
4.4.30.1130.0136.67
4.4.20.1200.0176.67
4.4.10.1530.0136.67
4.4.00.1270.0276.67
4.3.110.1570.0206.67
4.3.100.1330.0206.67
4.3.90.1170.0106.67
4.3.80.1430.0276.67
4.3.70.1330.0176.67
4.3.60.1430.0106.67
4.3.50.1400.0176.67
4.3.40.1370.0236.67
4.3.30.0670.0176.67
4.3.20.0700.0136.67
4.3.10.0770.0176.67
4.3.00.0700.0136.67

preferences:
35.94 ms | 401 KiB | 5 Q