3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait MyTrait { /** * Comes from trait */ private $foo; } class MyClass { use MyTrait; /** * Comes from class */ private $foo; } $classFoo = new \ReflectionProperty('MyClass', 'foo'); $traitFoo = new \ReflectionProperty('MyTrait', 'foo'); var_export($traitFoo->getDocComment() == $classFoo->getDocComment());

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.4.120.0120.00820.77
8.4.110.0150.00822.38
8.4.100.0110.01017.69
8.4.90.0090.00318.58
8.4.80.0120.00917.87
8.4.70.0060.00318.04
8.4.60.0140.00618.57
8.4.50.0110.00918.71
8.4.40.0070.01417.79
8.4.30.0140.00717.70
8.4.20.0210.00319.63
8.4.10.0130.00617.76
8.3.250.0020.00618.94
8.3.240.0130.00716.59
8.3.230.0110.00816.72
8.3.220.0080.00617.01
8.3.210.0120.00816.47
8.3.200.0060.00316.75
8.3.190.0120.00717.29
8.3.180.0030.00616.82
8.3.170.0070.00717.02
8.3.160.0070.01017.19
8.3.150.0130.00718.87
8.3.140.0060.00317.05
8.3.130.0080.00018.32
8.3.120.0030.00620.77
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0060.00326.77
8.3.80.0040.00418.43
8.3.70.0030.01318.18
8.3.60.0110.00418.18
8.3.50.0100.00817.58
8.3.40.0070.00718.71
8.3.30.0120.00318.54
8.3.20.0070.00019.06
8.3.10.0080.00021.90
8.3.00.0080.00023.50
8.2.290.0130.00620.41
8.2.280.0130.00518.46
8.2.270.0120.00317.21
8.2.260.0070.01118.32
8.2.250.0040.00416.71
8.2.240.0000.00918.75
8.2.230.0000.01122.58
8.2.220.0060.00337.54
8.2.210.0070.00026.77
8.2.200.0000.00918.28
8.2.190.0060.01516.75
8.2.180.0130.00618.41
8.2.170.0110.00322.96
8.2.160.0120.00419.46
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00021.19
8.2.120.0090.00626.35
8.2.110.0060.00320.38
8.2.100.0130.00017.91
8.2.90.0040.00417.75
8.2.80.0040.00418.80
8.2.70.0060.00317.93
8.2.60.0050.00318.22
8.2.50.0090.00018.10
8.2.40.0050.00319.42
8.2.30.0040.00419.15
8.2.20.0000.00718.12
8.2.10.0070.00018.11
8.2.00.0040.00419.23
8.1.330.0100.00921.74
8.1.320.0110.01016.24
8.1.310.0070.01018.46
8.1.300.0060.00320.34
8.1.290.0060.00330.84
8.1.280.0120.00625.92
8.1.270.0050.00221.98
8.1.260.0070.00026.35
8.1.250.0060.00828.09
8.1.240.0060.00323.86
8.1.230.0110.00020.84
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.13
8.1.190.0030.00517.23
8.1.180.0000.00818.10
8.1.170.0050.00318.53
8.1.160.0000.00718.88
8.1.150.0040.00418.87
8.1.140.0040.00420.57
8.1.130.0030.00319.01
8.1.120.0000.00717.45
8.1.110.0030.00717.42
8.1.100.0040.00417.45
8.1.90.0000.00817.42
8.1.80.0000.00717.34
8.1.70.0060.00317.43
8.1.60.0000.01117.56
8.1.50.0040.00417.35
8.1.40.0040.00417.51
8.1.30.0040.00417.62
8.1.20.0000.00717.62
8.1.10.0080.00017.38
8.1.00.0030.00517.49
8.0.300.0040.00418.77
8.0.290.0030.00716.75
8.0.280.0000.00718.45
8.0.270.0040.00416.88
8.0.260.0080.00017.31
8.0.250.0070.00016.90
8.0.240.0080.00016.92
8.0.230.0030.00316.91
8.0.220.0040.00416.88
8.0.210.0030.00316.93
8.0.200.0030.00617.01
8.0.190.0040.00416.95
8.0.180.0060.00316.86
8.0.170.0090.00016.92
8.0.160.0000.00716.81
8.0.150.0000.00816.72
8.0.140.0040.00416.69
8.0.130.0030.00313.29
8.0.120.0040.00416.88
8.0.110.0040.00416.84
8.0.100.0070.00016.80
8.0.90.0040.00416.91
8.0.80.0040.01216.87
8.0.70.0000.00716.84
8.0.60.0040.00416.67
8.0.50.0000.00716.92
8.0.30.0110.00816.77
8.0.20.0100.00917.40
8.0.10.0060.00316.84
8.0.00.0090.00816.61
7.4.330.0030.00315.55
7.4.320.0070.00016.62
7.4.300.0040.00416.50
7.4.290.0070.00016.61
7.4.280.0000.00816.41
7.4.270.0060.00316.63
7.4.260.0070.00016.61
7.4.250.0000.00816.49
7.4.240.0000.00716.40
7.4.230.0030.00316.39
7.4.220.0040.00416.44
7.4.210.0030.01016.56
7.4.200.0030.00316.48
7.4.160.0090.00716.49
7.4.140.0100.00717.86
7.4.130.0050.01016.52
7.4.120.0100.00916.57
7.4.110.0140.00416.54
7.4.100.0100.01316.64
7.4.90.0160.00816.45
7.4.80.0050.01419.39
7.4.70.0120.00616.30
7.4.60.0040.01316.46
7.4.50.0100.00316.45
7.4.40.0090.00916.50
7.4.10.0090.00914.97
7.4.00.0050.01115.04
7.3.330.0020.00513.05
7.3.320.0000.00613.02
7.3.310.0080.00016.22
7.3.300.0000.00716.29
7.3.290.0000.00816.31
7.3.280.0110.00516.24
7.3.260.0100.01116.32
7.3.240.0070.01016.33
7.3.230.0100.00716.59
7.3.210.0130.00416.30
7.3.200.0120.00916.20
7.3.190.0040.01416.33
7.3.180.0060.01016.38
7.3.170.0120.00316.16
7.3.160.0100.00716.45
7.3.130.0040.01414.53
7.3.120.0090.00614.82
7.3.110.0030.01714.97
7.3.100.0090.00614.45
7.3.90.0070.00714.91
7.3.80.0050.00314.93
7.3.70.0070.00714.52
7.3.60.0040.00414.71
7.3.50.0040.01114.59
7.3.40.0080.00414.65
7.3.30.0000.01514.52
7.3.20.0080.00616.76
7.3.10.0060.00916.50
7.3.00.0090.00616.55
7.2.330.0090.00916.51
7.2.320.0030.01416.39
7.2.310.0110.00716.54
7.2.300.0100.00616.73
7.2.290.0130.00916.44
7.2.260.0090.00915.18
7.2.250.0100.00714.87
7.2.240.0100.00614.74
7.2.230.0090.00914.90
7.2.220.0030.01314.88
7.2.210.0030.00614.96
7.2.200.0030.01014.84
7.2.190.0110.00714.98
7.2.180.0090.00914.59
7.2.170.0050.00515.05
7.2.160.0120.00414.95
7.2.150.0070.00716.59
7.2.140.0030.01016.85
7.2.130.0030.01017.00
7.2.120.0040.00716.90
7.2.110.0070.01017.04
7.2.100.0030.01316.89
7.2.90.0000.01416.80
7.2.80.0060.00316.90
7.2.70.0400.00916.02
7.2.60.0180.00515.95
7.2.50.0170.00615.76
7.2.40.0280.00516.01
7.2.30.0230.01315.95
7.2.20.0230.00915.73
7.2.10.0220.00215.79
7.2.00.0250.00816.01
7.1.330.0060.00615.86
7.1.320.0030.00915.84
7.1.310.0000.01315.66
7.1.300.0030.00715.77
7.1.290.0000.01315.66
7.1.280.0060.00615.74
7.1.270.0060.00615.48
7.1.260.0050.01015.74
7.1.250.0120.00315.62
7.1.240.0030.00915.72
7.1.230.0080.00315.43
7.1.220.0070.00415.84
7.1.210.0050.00515.57
7.1.200.0070.00515.68
7.1.190.0070.00715.64
7.1.180.0040.00815.81
7.1.170.0200.00814.90
7.1.160.0230.01114.59
7.1.150.0230.01014.77
7.1.140.0240.00814.51
7.1.130.0150.01214.68
7.1.120.0260.00814.81
7.1.110.0420.00514.72
7.1.100.0420.01214.87
7.1.90.0300.00614.82
7.1.80.0310.01014.68
7.1.70.0580.00814.66
7.1.60.0530.01023.47
7.1.50.0470.00223.79
7.1.40.0590.00423.54
7.1.30.0580.00623.53
7.1.20.0500.00523.54
7.1.10.0310.00914.65
7.1.00.0460.01014.79
7.0.330.0090.00615.28
7.0.320.0060.00315.14
7.0.310.0070.00415.41
7.0.300.0030.00515.48
7.0.290.0070.00715.31
7.0.280.0070.00715.47
7.0.270.0050.00515.14
7.0.260.0030.00615.10
7.0.250.0080.00315.27
7.0.240.0060.00615.46
7.0.230.0030.00715.29
7.0.220.0070.00715.37
7.0.210.0080.00015.32
7.0.200.0110.00315.29
7.0.190.0040.00415.18
7.0.180.0070.00715.39
7.0.170.0060.00315.22
7.0.160.0110.00715.45
7.0.150.0070.01015.27
7.0.140.0030.00615.38
7.0.130.0000.00815.12
7.0.120.0050.00515.47
7.0.110.0160.00015.20
7.0.100.0000.01515.50
7.0.90.0130.00015.18
7.0.80.0000.01515.57
7.0.70.0030.01015.42
7.0.60.0070.01115.34
7.0.50.0090.00615.40
7.0.40.0070.00713.20
7.0.30.0100.00313.65
7.0.20.0060.00913.08
7.0.10.0060.00613.43
7.0.00.0090.00613.49
5.6.400.0080.00314.61
5.6.390.0070.00714.60
5.6.380.0030.01214.62
5.6.370.0030.01014.22
5.6.360.0040.00814.14
5.6.350.0000.00914.25
5.6.340.0110.00314.24
5.6.330.0040.01214.60
5.6.320.0060.00614.54
5.6.310.0040.01114.57
5.6.300.0120.00614.68
5.6.290.0030.00914.61
5.6.280.0000.01114.10
5.6.270.0030.00914.31
5.6.260.0000.00914.37
5.6.250.0090.00614.33
5.6.240.0060.01014.44
5.6.230.0030.01014.11
5.6.220.0120.00614.16
5.6.210.0030.01014.33
5.6.200.0060.00614.08
5.6.190.0070.00714.04
5.6.180.0080.00414.14
5.6.170.0070.00714.16
5.6.160.0120.00314.40
5.6.150.0030.00913.98
5.6.140.0030.01114.34
5.6.130.0070.00714.42
5.6.120.0040.01114.26
5.6.110.0040.01114.31
5.6.100.0030.01314.33
5.6.90.0080.00614.25
5.6.80.0000.01214.25
5.6.70.0000.01014.12
5.6.60.0070.00713.97
5.6.50.0100.00714.24
5.6.40.0040.00413.99
5.6.30.0060.00314.15
5.6.20.0130.00014.25
5.6.10.0080.00014.26
5.6.00.0030.01014.17

preferences:
29.07 ms | 403 KiB | 5 Q