3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Filter { // PHP 5: filter is a constructor // PHP 7: filter is a constructor and E_DEPRECATED is raised // PHP 8: filter is a normal method and is not a constructor; no E_DEPRECATED is raised function filter($a) {} } $filter = new ReflectionMethod('Filter', 'filter'); // PHP 5: bool(true) // PHP 7: bool(true) // PHP 8: bool(false) var_dump($filter->isConstructor());

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.00016.50
8.3.50.0100.00718.05
8.3.40.0110.00418.77
8.3.30.0040.01218.56
8.3.20.0070.00019.98
8.3.10.0040.00423.61
8.3.00.0040.00419.85
8.2.180.0160.00316.63
8.2.170.0100.00322.96
8.2.160.0140.00020.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0090.00319.33
8.2.120.0040.00426.35
8.2.110.0070.00319.27
8.2.100.0040.00817.72
8.2.90.0030.00619.08
8.2.80.0080.00017.97
8.2.70.0050.00317.25
8.2.60.0030.00717.91
8.2.50.0030.00718.07
8.2.40.0060.00519.45
8.2.30.0040.00420.63
8.2.20.0040.00417.49
8.2.10.0080.00017.94
8.2.00.0000.00717.95
8.1.280.0000.01425.92
8.1.270.0060.00322.06
8.1.260.0070.00028.09
8.1.250.0050.00328.09
8.1.240.0040.00722.19
8.1.230.0080.00417.42
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0000.00917.35
8.1.190.0030.00617.22
8.1.180.0050.00318.10
8.1.170.0050.00318.65
8.1.160.0000.00720.68
8.1.150.0000.00718.79
8.1.140.0040.00419.51
8.1.130.0030.00317.65
8.1.120.0000.00817.33
8.1.110.0070.00017.43
8.1.100.0050.00317.39
8.1.90.0040.00417.40
8.1.80.0050.00317.29
8.1.70.0000.00717.27
8.1.60.0040.00417.48
8.1.50.0030.00617.43
8.1.40.0060.00317.44
8.1.30.0040.00417.61
8.1.20.0080.00017.59
8.1.10.0000.00717.52
8.1.00.0040.00417.30
8.0.300.0040.00418.77
8.0.290.0050.00216.63
8.0.280.0030.00318.28
8.0.270.0030.00317.07
8.0.260.0060.00017.18
8.0.250.0000.00716.77
8.0.240.0000.00716.86
8.0.230.0070.00016.75
8.0.220.0000.00816.84
8.0.210.0070.00016.87
8.0.200.0080.00016.89
8.0.190.0070.00016.78
8.0.180.0030.00516.89
8.0.170.0040.00416.76
8.0.160.0000.00716.79
8.0.150.0070.00016.67
8.0.140.0070.00016.66
8.0.130.0080.00013.30
8.0.120.0030.00516.78
8.0.110.0070.00016.79
8.0.100.0070.00016.70
8.0.90.0000.00716.69
8.0.80.0060.00916.78
8.0.70.0050.00216.62
8.0.60.0040.00416.90
8.0.50.0060.00316.83
8.0.30.0090.00917.11
8.0.20.0170.01317.40
8.0.10.0000.00716.80
8.0.00.0090.00816.69
7.4.330.0000.00516.76
7.4.320.0000.00616.51
7.4.300.0030.00316.39
7.4.290.0040.00416.54
7.4.280.0040.00416.43
7.4.270.0000.00716.37
7.4.260.0000.00716.48
7.4.250.0070.00016.50
7.4.240.0040.00416.38
7.4.230.0040.00416.43
7.4.220.0200.00616.65
7.4.210.0140.00416.57
7.4.200.0000.00716.54
7.4.160.0040.01216.41
7.4.150.0220.00317.40
7.4.140.0110.01117.86
7.4.130.0120.00816.41
7.4.120.0100.00916.52
7.4.110.0060.01216.57
7.4.100.0140.00716.44
7.4.90.0100.00716.23
7.4.80.0060.01219.39
7.4.70.0000.01616.35
7.4.60.0090.01116.42
7.4.50.0000.01516.38
7.4.40.0060.01016.28
7.4.30.0050.01116.27
7.4.00.0090.00614.94
7.3.330.0000.00513.26
7.3.320.0000.00513.26
7.3.310.0040.00416.13
7.3.300.0000.00716.24
7.3.290.0100.00616.19
7.3.280.0070.00916.21
7.3.270.0120.01017.40
7.3.260.0130.00316.50
7.3.250.0110.00616.35
7.3.240.0110.00816.21
7.3.230.0080.00816.40
7.3.210.0130.00316.25
7.3.200.0030.01516.16
7.3.190.0100.00816.40
7.3.180.0110.00516.48
7.3.170.0170.00016.27
7.3.160.0120.01016.29
7.2.330.0060.01216.32
7.2.320.0100.01016.63
7.2.310.0070.01016.57
7.2.300.0030.01316.59
7.2.290.0110.01116.28
7.2.60.0000.01516.89
7.2.00.0000.01419.23
7.1.200.0040.01115.74
7.1.100.0000.01317.95
7.1.70.0030.01317.16
7.1.60.0100.01419.50
7.1.50.0040.00716.73
7.1.00.0070.07322.25
7.0.200.0590.00314.48
7.0.60.0030.08720.08
7.0.50.0000.07317.89
7.0.40.0000.05720.11
7.0.30.0500.07320.06
7.0.20.0270.08320.21
7.0.10.0170.08020.25
7.0.00.0100.07020.33
5.6.280.0030.05721.15
5.6.210.0100.06020.57
5.6.200.0070.05018.19
5.6.190.0100.04720.45
5.6.180.0400.07020.57
5.6.170.0370.07020.44
5.6.160.0100.05020.50
5.6.150.0030.08018.18
5.6.140.0130.07718.21
5.6.130.0070.08718.28
5.6.120.0030.04021.08
5.6.110.0100.08021.01
5.6.100.0030.04020.98
5.6.90.0100.05320.88
5.6.80.0070.08720.48
5.5.350.2700.03320.41
5.5.340.0030.05017.99
5.5.330.0070.08320.47
5.5.320.0070.08320.34
5.5.310.0330.07320.41
5.5.300.0130.07717.98
5.5.290.0070.04017.96
5.5.280.0070.08320.98
5.5.270.0130.04320.84
5.5.260.0030.06320.76
5.5.250.0070.07720.62
5.5.240.0030.03720.07

preferences:
55.63 ms | 401 KiB | 5 Q