3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * ClassDocComment * * @copyright Copyright (c) 2011 * @author author * @see http://php.net */ class ClassDocComment { /** * Some Doc comment */ } #echo (new ReflectionClass ('ClassDocComment'))->getDocComment(); var_dump ((string) new ReflectionClass ('ClassDocComment'));

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.0040.01116.63
8.3.50.0160.00621.98
8.3.40.0150.00018.54
8.3.30.0140.00718.54
8.3.20.0000.00820.26
8.3.10.0040.00420.41
8.3.00.0080.00023.66
8.2.180.0110.00716.32
8.2.170.0170.00722.96
8.2.160.0130.00322.11
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0090.00020.66
8.2.120.0070.00026.35
8.2.110.0030.00619.51
8.2.100.0110.00017.91
8.2.90.0060.00318.92
8.2.80.0030.00617.97
8.2.70.0000.00917.50
8.2.60.0040.00417.80
8.2.50.0030.00518.09
8.2.40.0030.00522.32
8.2.30.0000.00719.24
8.2.20.0000.00817.54
8.2.10.0050.00317.93
8.2.00.0040.00418.07
8.1.280.0180.00325.92
8.1.270.0030.00521.91
8.1.260.0000.00828.09
8.1.250.0070.00028.09
8.1.240.0000.00922.07
8.1.230.0070.00717.70
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.10
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0000.00818.47
8.1.160.0040.00420.69
8.1.150.0080.00018.82
8.1.140.0030.00619.32
8.1.130.0000.00817.58
8.1.120.0000.00717.27
8.1.110.0040.00417.37
8.1.100.0000.00817.30
8.1.90.0070.00017.34
8.1.80.0000.00817.40
8.1.70.0070.00017.41
8.1.60.0030.00617.55
8.1.50.0000.00817.32
8.1.40.0000.00717.44
8.1.30.0080.00017.52
8.1.20.0080.00017.46
8.1.10.0000.00817.52
8.1.00.0080.00017.36
8.0.300.0060.00318.77
8.0.290.0000.00916.75
8.0.280.0070.00018.38
8.0.270.0050.00516.93
8.0.260.0000.00718.34
8.0.250.0050.00216.87
8.0.240.0050.00316.93
8.0.230.0000.00716.79
8.0.220.0070.00016.79
8.0.210.0030.00316.75
8.0.200.0060.00016.79
8.0.190.0070.00016.72
8.0.180.0050.00316.82
8.0.170.0000.00816.80
8.0.160.0000.00716.79
8.0.150.0000.00816.69
8.0.140.0080.00016.76
8.0.130.0050.00013.21
8.0.120.0050.00216.73
8.0.110.0050.00216.82
8.0.100.0040.00416.68
8.0.90.0000.00716.59
8.0.80.0100.01016.83
8.0.70.0020.00516.61
8.0.60.0000.00716.60
8.0.50.0050.00216.61
8.0.30.0120.00816.89
8.0.20.0070.01117.40
8.0.10.0030.00516.95
8.0.00.0090.01216.71
7.4.330.0060.00016.73
7.4.320.0000.00616.38
7.4.300.0030.00316.58
7.4.290.0040.00416.53
7.4.280.0040.00416.42
7.4.270.0030.00316.37
7.4.260.0030.00316.52
7.4.250.0040.00416.50
7.4.240.0030.00316.45
7.4.230.0000.00716.19
7.4.220.0210.00616.58
7.4.210.0050.01016.40
7.4.200.0070.00016.61
7.4.160.0000.01716.47
7.4.150.0100.00717.40
7.4.140.0130.01017.86
7.4.130.0110.00916.44
7.4.120.0100.01016.40
7.4.110.0060.01216.48
7.4.100.0070.01416.54
7.4.90.0120.00916.17
7.4.80.0130.01219.39
7.4.70.0110.00516.45
7.4.60.0140.00616.51
7.4.50.0030.01016.39
7.4.40.0030.01316.32
7.4.30.0120.00916.38
7.4.10.0110.00714.71
7.4.00.0060.01014.85
7.3.330.0050.00013.19
7.3.320.0050.00013.11
7.3.310.0070.00016.29
7.3.300.0040.00416.08
7.3.290.0000.00616.25
7.3.280.0090.01016.23
7.3.270.0150.00317.40
7.3.260.0140.00316.29
7.3.250.0140.00516.28
7.3.240.0090.01116.19
7.3.230.0030.01316.39
7.3.210.0000.01616.17
7.3.200.0030.01316.21
7.3.190.0100.00716.34
7.3.180.0080.00816.22
7.3.170.0120.00316.46
7.3.160.0090.00616.41
7.3.130.0070.01314.58
7.3.120.0090.00314.84
7.3.110.0040.01514.52
7.3.100.0070.00714.80
7.3.90.0060.00914.51
7.3.80.0070.00715.01
7.3.70.0050.00514.78
7.3.60.0000.01114.50
7.3.50.0030.00614.62
7.3.40.0030.01014.49
7.3.30.0030.00714.84
7.3.20.0000.00916.79
7.3.10.0070.00716.42
7.3.00.0080.00416.49
7.2.330.0120.00616.34
7.2.320.0110.01116.62
7.2.310.0090.00616.40
7.2.300.0130.00316.64
7.2.290.0110.00516.34
7.2.260.0100.00714.66
7.2.250.0060.01214.79
7.2.240.0000.01614.85
7.2.230.0000.01215.01
7.2.220.0040.01414.94
7.2.210.0040.00814.83
7.2.200.0070.00714.84
7.2.190.0070.00414.69
7.2.180.0080.00414.54
7.2.170.0000.00814.88
7.2.160.0030.01115.04
7.2.150.0080.00416.84
7.2.140.0000.01516.88
7.2.130.0090.00216.73
7.2.120.0090.00716.64
7.2.110.0030.01116.67
7.2.100.0070.00716.72
7.2.90.0030.00916.77
7.2.80.0040.00916.75
7.2.70.0040.00616.78
7.2.60.0070.00816.79
7.2.50.0080.00516.71
7.2.40.0050.00916.74
7.2.30.0050.00916.67
7.2.20.0050.00516.68
7.2.10.0040.00716.69
7.2.00.0070.00517.66
7.1.330.0000.01215.41
7.1.320.0000.01515.76
7.1.310.0060.00615.77
7.1.300.0030.01015.57
7.1.290.0060.00615.48
7.1.280.0070.00415.83
7.1.270.0070.00315.61
7.1.260.0060.00615.71
7.1.250.0070.00915.72
7.1.240.0000.01015.93
7.1.230.0100.00515.69
7.1.220.0000.01515.38
7.1.210.0070.00315.68
7.1.200.0060.00815.65
7.1.190.0030.00915.80
7.1.180.0000.01115.48
7.1.170.0140.00015.74
7.1.160.0080.00015.80
7.1.150.0030.01315.62
7.1.140.0060.00615.63
7.1.130.0030.00915.61
7.1.120.0070.00715.81
7.1.110.0070.00715.72
7.1.100.0050.00716.76
7.1.90.0070.01015.77
7.1.80.0070.00715.63
7.1.70.0010.00816.52
7.1.60.0050.01317.52
7.1.50.0050.01016.18
7.1.40.0070.01015.70
7.1.30.0040.00715.83
7.1.20.0070.00715.79
7.1.10.0000.01415.61
7.1.00.0000.04819.06
7.0.330.0110.00415.03
7.0.320.0030.00615.44
7.0.310.0060.00615.32
7.0.300.0030.00615.27
7.0.290.0030.00615.06
7.0.280.0000.01015.43
7.0.270.0030.00515.37
7.0.260.0060.00615.36
7.0.250.0000.01615.14
7.0.240.0090.00915.40
7.0.230.0060.00315.21
7.0.220.0000.01015.29
7.0.210.0050.00315.02
7.0.200.0200.01014.88
7.0.190.0000.01615.50
7.0.180.0000.01415.39
7.0.170.0040.00915.32
7.0.160.0030.00715.28
7.0.150.0030.01315.27
7.0.140.0100.01015.15
7.0.130.0040.00915.09
7.0.120.0030.01015.40
7.0.110.0000.00915.20
7.0.100.0000.01215.43
7.0.90.0040.00815.37
7.0.80.0060.00915.30
7.0.70.0060.00615.22
7.0.60.0210.03017.69
7.0.50.0080.02616.62
7.0.40.0090.02816.83
7.0.30.0080.04816.71
7.0.20.0220.03016.60
7.0.10.0080.04716.76
7.0.00.0090.04316.82
5.6.400.0030.00714.27
5.6.390.0060.00614.26
5.6.380.0080.00613.91
5.6.370.0040.01114.49
5.6.360.0040.00414.27
5.6.350.0080.00314.36
5.6.340.0000.01014.02
5.6.330.0030.00614.55
5.6.320.0070.01014.54
5.6.310.0090.00313.91
5.6.300.0070.01314.14
5.6.290.0130.00314.61
5.6.280.0020.02217.77
5.6.270.0000.01414.23
5.6.260.0060.00614.29
5.6.250.0040.01414.25
5.6.240.0060.00614.39
5.6.230.0000.00914.21
5.6.220.0000.01414.19
5.6.210.0120.04017.34
5.6.200.0090.02516.26
5.6.190.0110.04017.46
5.6.180.0180.02717.52
5.6.170.0220.04017.53
5.6.160.0120.04317.36
5.6.150.0080.03116.42
5.6.140.0060.02516.12
5.6.130.0060.02316.23
5.6.120.0070.04217.69
5.6.110.0030.03317.70
5.6.100.0080.02017.71
5.6.90.0080.04217.62
5.6.80.0090.04517.25
5.6.70.0060.00914.34
5.6.60.0090.00614.01
5.6.50.0040.01114.39
5.6.40.0070.00714.12
5.6.30.0070.00713.95
5.6.20.0120.00614.25
5.6.10.0040.01214.21
5.6.00.0070.00314.29
5.5.380.0000.01214.35
5.5.370.0060.00613.96
5.5.360.0090.00614.25
5.5.350.0160.03817.26
5.5.340.0030.03816.25
5.5.330.0070.05017.35
5.5.320.0350.03517.30
5.5.310.0170.02317.27
5.5.300.0050.03116.12
5.5.290.0020.02916.07
5.5.280.0140.03817.64
5.5.270.0030.03217.49
5.5.260.0070.04817.45
5.5.250.0090.04517.31
5.5.240.0170.03417.27
5.5.230.0000.01013.85
5.5.220.0000.01814.30
5.5.210.0140.00014.26
5.5.200.0080.00414.24
5.5.190.0040.00713.72
5.5.180.0090.00613.93
5.5.170.0070.00714.25
5.5.160.0030.00614.30
5.5.150.0030.00713.89
5.5.140.0080.00314.09
5.5.130.0030.00713.87
5.5.120.0030.01314.31
5.5.110.0060.00914.22
5.5.100.0070.01014.37
5.5.90.0080.00414.26
5.5.80.0040.00714.00
5.5.70.0000.01314.00
5.5.60.0030.01314.44
5.5.50.0000.01314.21
5.5.40.0040.00714.32
5.5.30.0100.00714.16
5.5.20.0070.00714.21
5.5.10.0110.00414.04
5.5.00.0130.00014.17

preferences:
49.5 ms | 401 KiB | 5 Q