3v4l.org

run code in 300+ PHP versions simultaneously
<?php class My extends ReflectionMethod { public $name = 'test'; public $className; } $ref = new My(My::class, 'getDeclaringClass'); $ref->className = new stdClass; echo $ref->name, get_class($ref->class);

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.0090.00616.88
8.3.50.0120.01021.02
8.3.40.0120.00318.67
8.3.30.0110.00418.42
8.3.20.0040.00420.13
8.3.10.0070.00021.77
8.3.00.0070.00023.84
8.2.180.0060.00916.50
8.2.170.0070.00718.98
8.2.160.0090.00922.96
8.2.150.0060.00325.66
8.2.140.0050.00224.66
8.2.130.0050.00319.64
8.2.120.0040.00426.35
8.2.110.0040.00719.30
8.2.100.0040.00817.91
8.2.90.0040.00419.14
8.2.80.0000.00817.97
8.2.70.0050.00317.38
8.2.60.0000.00917.78
8.2.50.0060.00318.07
8.2.40.0000.00822.32
8.2.30.0070.00020.67
8.2.20.0000.00817.61
8.2.10.0050.00317.80
8.2.00.0040.00417.89
8.1.280.0090.00625.92
8.1.270.0110.00723.99
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0070.00321.10
8.1.230.0090.00317.42
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00617.11
8.1.190.0050.00317.22
8.1.180.0000.00818.10
8.1.170.0000.00818.48
8.1.160.0040.00420.61
8.1.150.0000.00718.75
8.1.140.0040.00419.42
8.1.130.0030.00317.64
8.1.120.0000.00717.29
8.1.110.0070.00017.39
8.1.100.0000.00817.22
8.1.90.0040.00417.32
8.1.80.0070.00417.32
8.1.70.0000.00717.21
8.1.60.0050.00217.41
8.1.50.0080.00017.29
8.1.40.0000.00917.27
8.1.30.0020.00517.48
8.1.20.0040.00417.44
8.1.10.0040.00417.42
8.1.00.0050.00217.14
8.0.300.0110.00018.77
8.0.290.0050.00216.63
8.0.280.0030.00318.43
8.0.270.0030.00517.20
8.0.260.0030.00317.25
8.0.250.0030.00517.06
8.0.240.0070.00316.88
8.0.230.0000.00716.81
8.0.220.0000.00716.93
8.0.210.0070.00016.89
8.0.200.0060.00016.94
8.0.190.0030.00316.84
8.0.180.0040.00416.93
8.0.170.0040.00416.80
8.0.160.0000.00816.95
8.0.150.0000.00816.79
8.0.140.0030.00316.90
8.0.130.0030.00313.35
8.0.120.0040.00416.74
8.0.110.0040.00416.82
8.0.100.0000.00916.71
8.0.90.0050.00216.78
8.0.80.0130.00316.77
8.0.70.0050.00316.75
8.0.60.0030.00516.94
8.0.50.0000.00816.72
8.0.30.0120.00517.12
8.0.20.0100.01217.40
8.0.10.0040.00416.88
8.0.00.0120.01016.81
7.4.330.0000.00616.76
7.4.320.0040.00416.50
7.4.300.0000.00616.50
7.4.290.0030.00316.42
7.4.280.0080.00016.41
7.4.270.0070.00016.54
7.4.260.0030.00616.51
7.4.250.0060.00316.34
7.4.240.0050.00216.51
7.4.230.0030.00316.18
7.4.220.0070.01316.54
7.4.210.0090.00916.55
7.4.200.0030.00316.29
7.4.160.0040.01116.60
7.4.150.0120.00617.40
7.4.140.0140.00517.86
7.4.130.0060.01316.42
7.4.120.0080.01616.35
7.4.110.0060.01016.39
7.4.100.0060.01216.38
7.4.90.0080.01416.46
7.4.80.0070.01019.39
7.4.70.0180.00016.47
7.4.60.0170.00016.37
7.4.50.0000.01216.18
7.4.40.0090.00916.43
7.4.30.0070.01316.59
7.4.10.0070.01014.65
7.4.00.0050.00814.87
7.3.330.0060.00013.31
7.3.320.0000.00613.31
7.3.310.0040.00416.43
7.3.300.0030.00316.26
7.3.290.0030.00316.18
7.3.280.0080.00816.32
7.3.270.0100.01017.40
7.3.260.0130.01016.38
7.3.250.0090.01016.40
7.3.240.0090.00616.23
7.3.230.0070.01016.39
7.3.210.0100.00716.44
7.3.200.0160.01419.39
7.3.190.0070.01016.33
7.3.180.0120.00916.23
7.3.170.0160.00416.40
7.3.160.0080.00816.47
7.3.130.0000.01314.88
7.3.120.0110.00714.77
7.3.110.0050.01114.88
7.3.100.0070.00914.75
7.3.90.0090.00614.95
7.3.80.0080.00714.70
7.3.70.0090.00514.70
7.3.60.0070.00914.71
7.3.50.0070.00514.51
7.3.40.0030.01314.74
7.3.30.0040.01014.82
7.3.20.0060.00816.65
7.3.10.0070.00916.55
7.3.00.0050.00816.63
7.2.330.0060.01216.74
7.2.320.0030.01316.56
7.2.310.0110.01516.85
7.2.300.0030.01316.47
7.2.290.0060.01116.86
7.2.260.0030.01714.97
7.2.250.0070.01015.20
7.2.240.0080.00714.96
7.2.230.0050.00714.86
7.2.220.0040.00915.14
7.2.210.0050.01115.17
7.2.200.0050.00815.09
7.2.190.0070.00915.11
7.2.180.0060.00915.02
7.2.170.0060.00715.10
7.2.160.0030.01115.17
7.2.150.0100.00516.90
7.2.140.0020.01316.85
7.2.130.0080.00816.78
7.2.120.0080.00616.85
7.2.110.0030.01417.04
7.2.100.0030.01116.86
7.2.90.0050.01017.17
7.2.80.0050.00917.04
7.2.70.0070.01016.98
7.2.60.0070.00717.01
7.2.50.0070.00916.85
7.2.40.0060.00817.10
7.2.30.0040.01117.10
7.2.20.0050.01216.94
7.2.10.0060.00916.85
7.2.00.0070.01017.70
7.1.330.0060.00815.73
7.1.320.0040.00915.67
7.1.310.0050.00815.69
7.1.300.0050.00915.60
7.1.290.0050.00715.69
7.1.280.0050.00915.61
7.1.270.0080.00815.67
7.1.260.0070.00915.55
7.1.250.0070.00815.73
7.1.240.0000.01515.70
7.1.230.0070.00715.60
7.1.220.0000.00915.79
7.1.210.0040.01115.68
7.1.200.0030.00515.51
7.1.190.0060.00915.66
7.1.180.0030.01015.84
7.1.170.0040.01115.85
7.1.160.0040.00415.68
7.1.150.0030.01015.88
7.1.140.0060.01215.61
7.1.130.0090.00615.47
7.1.120.0030.01415.32
7.1.110.0100.00315.63
7.1.100.0060.00916.84
7.1.90.0030.01215.74
7.1.80.0060.00615.75
7.1.70.0030.01216.40
7.1.60.0130.00717.48
7.1.50.0080.00816.05
7.1.40.0000.00815.42
7.1.30.0090.00315.74
7.1.20.0000.01815.88
7.1.10.0070.00715.79
7.1.00.0070.04019.02
7.0.330.0000.00815.27
7.0.320.0040.01215.42
7.0.310.0030.01015.46
7.0.300.0070.00715.44
7.0.290.0110.00315.45
7.0.280.0060.00615.15
7.0.270.0040.00815.38
7.0.260.0070.01015.52
7.0.250.0000.01615.19
7.0.240.0030.00715.20
7.0.230.0070.00415.53
7.0.220.0030.00915.52
7.0.210.0110.00415.40
7.0.200.0050.00515.96
7.0.190.0050.00515.41
7.0.180.0000.01515.48
7.0.170.0040.01115.34
7.0.160.0060.00615.31
7.0.150.0080.00315.16
7.0.140.0050.00515.21
7.0.130.0060.00615.42
7.0.120.0040.01215.50
7.0.110.0030.00615.24
7.0.100.0020.01215.28
7.0.90.0060.00815.52
7.0.80.0060.00615.35
7.0.70.0040.01115.54
7.0.60.0070.04418.64
7.0.50.0050.04516.62
7.0.40.0030.03216.71
7.0.30.0080.03016.87
7.0.20.0230.03816.84
7.0.10.0090.04816.90
7.0.00.0070.04716.71
5.6.400.0040.00414.60
5.6.390.0090.00614.34
5.6.380.0080.00014.33
5.6.370.0030.01014.39
5.6.360.0000.01014.22
5.6.350.0030.01314.31
5.6.340.0060.00614.25
5.6.330.0090.00614.58
5.6.320.0090.00914.30
5.6.310.0110.00414.34
5.6.300.0030.01214.15
5.6.290.0000.01814.66
5.6.280.0050.02017.45
5.6.270.0070.00713.99
5.6.260.0000.01614.40
5.6.250.0040.01214.30
5.6.240.0070.00714.05
5.6.230.0130.00014.49
5.6.220.0070.00714.34
5.6.210.0080.04217.47
5.6.200.0080.04216.22
5.6.190.0100.03617.30
5.6.180.0150.04217.54
5.6.170.0220.03717.50
5.6.160.0040.03017.32
5.6.150.0020.03016.23
5.6.140.0080.04016.21
5.6.130.0090.04416.40
5.6.120.0100.02517.65
5.6.110.0030.02617.73
5.6.100.0100.03717.72
5.6.90.0100.03117.72
5.6.80.0050.03117.32
5.6.70.0060.00314.46
5.6.60.0060.00614.15
5.6.50.0040.01114.53
5.6.40.0100.00314.54
5.6.30.0030.01014.35
5.6.20.0060.00314.45
5.6.10.0080.00614.38
5.6.00.0090.00014.19
5.5.380.0030.01214.57
5.5.370.0000.01514.41
5.5.360.0080.00814.28
5.5.350.0080.04717.36
5.5.340.0020.04616.18
5.5.330.0090.03917.48
5.5.320.0180.03517.18
5.5.310.0100.02717.32
5.5.300.0070.02116.08
5.5.290.0080.04616.00
5.5.280.0080.03217.31
5.5.270.0030.04917.44
5.5.260.0030.05117.63
5.5.250.0070.04417.25
5.5.240.0120.03917.22
5.5.230.0060.00614.09
5.5.220.0030.00914.07
5.5.210.0030.01214.42
5.5.200.0030.00614.10
5.5.190.0040.01114.30
5.5.180.0040.00814.16
5.5.170.0000.00914.12
5.5.160.0150.00014.13
5.5.150.0030.00614.21
5.5.140.0000.00914.14
5.5.130.0060.00613.97
5.5.120.0070.00714.43
5.5.110.0060.00614.08
5.5.100.0100.00314.08
5.5.90.0000.01314.32
5.5.80.0030.01214.17
5.5.70.0100.00314.12
5.5.60.0080.00414.29
5.5.50.0110.00013.76
5.5.40.0060.00614.23
5.5.30.0030.00613.71
5.5.20.0100.00313.91
5.5.10.0070.00314.34
5.5.00.0060.01014.43

preferences:
45.43 ms | 401 KiB | 5 Q