3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Filter { function __construct() {} // 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.0120.00316.38
8.3.50.0200.01021.92
8.3.40.0180.00418.52
8.3.30.0110.00418.59
8.3.20.0070.00020.34
8.3.10.0040.00423.48
8.3.00.0040.00419.85
8.2.180.0070.00716.38
8.2.170.0100.00722.96
8.2.160.0110.00420.31
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00419.26
8.2.120.0000.00726.35
8.2.110.0030.00619.27
8.2.100.0050.00517.66
8.2.90.0080.00019.27
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0000.00817.55
8.2.50.0000.00818.07
8.2.40.0030.00619.28
8.2.30.0040.00420.59
8.2.20.0070.00017.52
8.2.10.0000.00818.10
8.2.00.0040.00417.92
8.1.280.0070.01425.92
8.1.270.0000.00922.06
8.1.260.0070.00028.09
8.1.250.0030.00528.09
8.1.240.0090.00021.12
8.1.230.0070.00417.42
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0080.00317.35
8.1.180.0020.00518.10
8.1.170.0040.00418.44
8.1.160.0000.00720.64
8.1.150.0070.00018.88
8.1.140.0040.00419.50
8.1.130.0000.00717.63
8.1.120.0040.00417.30
8.1.110.0040.00417.28
8.1.100.0000.00817.24
8.1.90.0070.00017.29
8.1.80.0040.00417.35
8.1.70.0070.00017.22
8.1.60.0040.00417.51
8.1.50.0030.00617.33
8.1.40.0000.01017.42
8.1.30.0000.00817.50
8.1.20.0000.00717.54
8.1.10.0060.00317.57
8.1.00.0040.00417.46
8.0.300.0050.00218.77
8.0.290.0000.00716.75
8.0.280.0000.00818.25
8.0.270.0030.00317.11
8.0.260.0040.00417.17
8.0.250.0000.00716.86
8.0.240.0070.00016.92
8.0.230.0000.00816.93
8.0.220.0040.00416.88
8.0.210.0050.00216.90
8.0.200.0040.00416.77
8.0.190.0030.00516.91
8.0.180.0080.00016.71
8.0.170.0000.00716.74
8.0.160.0030.00416.82
8.0.150.0030.00316.76
8.0.140.0000.00816.81
8.0.130.0000.00713.18
8.0.120.0000.00716.82
8.0.110.0030.00516.75
8.0.100.0040.00416.80
8.0.90.0070.00016.84
8.0.80.0060.01516.81
8.0.70.0040.00416.78
8.0.60.0040.00416.86
8.0.50.0000.00816.70
8.0.30.0090.01117.01
8.0.20.0130.01517.40
8.0.10.0040.00416.98
8.0.00.0100.00716.79
7.4.330.0000.00516.71
7.4.320.0000.00616.37
7.4.300.0030.00316.41
7.4.290.0030.00316.54
7.4.280.0040.00416.57
7.4.270.0030.00316.51
7.4.260.0030.00316.38
7.4.250.0040.00416.51
7.4.240.0070.00016.40
7.4.230.0040.00416.23
7.4.220.0130.01316.46
7.4.210.0090.00916.49
7.4.200.0030.00316.52
7.4.160.0140.00716.31
7.4.150.0070.01417.40
7.4.140.0070.01517.86
7.4.130.0130.00716.43
7.4.120.0110.00716.44
7.4.110.0090.00916.50
7.4.100.0070.01716.51
7.4.90.0090.00916.53
7.4.80.0130.00719.39
7.4.70.0000.01616.30
7.4.60.0050.00116.38
7.4.50.0070.00716.45
7.4.40.0150.00416.46
7.4.30.0030.01316.27
7.4.00.0030.01514.84
7.3.330.0050.00013.01
7.3.320.0000.00513.05
7.3.310.0040.00416.23
7.3.300.0040.00316.05
7.3.290.0080.00916.15
7.3.280.0110.00716.14
7.3.270.0170.00717.40
7.3.260.0150.00016.20
7.3.250.0140.00416.13
7.3.240.0080.01016.37
7.3.230.0060.00916.39
7.3.210.0060.01016.00
7.3.200.0110.00616.26
7.3.190.0120.00416.10
7.3.180.0100.00616.29
7.3.170.0130.00516.27
7.3.160.0160.00016.06
7.3.120.0060.01314.63
7.3.110.0000.01714.59
7.3.100.0060.01114.45
7.3.90.0070.00714.54
7.3.80.0030.00914.86
7.3.70.0030.00714.68
7.3.60.0080.00414.72
7.3.50.0000.01614.76
7.3.40.0040.01214.68
7.3.30.0110.00314.81
7.3.20.0000.00916.55
7.3.10.0080.00616.52
7.3.00.0060.00816.43
7.2.330.0110.01116.30
7.2.320.0100.01016.44
7.2.310.0030.01916.61
7.2.300.0060.01116.37
7.2.290.0110.01016.36
7.2.250.0150.00314.93
7.2.240.0070.01414.90
7.2.230.0070.01014.90
7.2.220.0070.00314.62
7.2.210.0030.01014.92
7.2.200.0110.00414.66
7.2.190.0070.00714.91
7.2.180.0070.01015.01
7.2.170.0000.00914.86
7.2.130.0050.00516.71
7.2.120.0000.01116.57
7.2.110.0040.00716.85
7.2.100.0040.00716.68
7.2.90.0030.00816.36
7.2.80.0000.01116.81
7.2.70.0030.00716.56
7.2.60.0040.00716.78
7.2.50.0040.00416.82
7.2.40.0080.00316.92
7.2.30.0060.00716.94
7.2.20.0000.01116.88
7.2.10.0050.00516.81
7.2.00.0050.00417.91
7.1.330.0090.00615.39
7.1.320.0040.01115.54
7.1.310.0030.01015.72
7.1.300.0090.00615.76
7.1.290.0070.00715.63
7.1.280.0030.00715.69
7.1.270.0030.01415.48
7.1.260.0070.00715.35
7.1.250.0100.00015.49
7.1.100.0100.00318.07
7.1.70.0030.01317.05
7.1.60.0170.00719.50
7.1.50.0030.01916.52
7.1.00.0030.07722.45
7.0.200.0510.00614.48
7.0.60.0070.08020.02
7.0.50.0100.08317.86
7.0.40.0100.04720.24
7.0.30.0230.05020.07
7.0.20.0270.08020.15
7.0.10.0100.05720.24
7.0.00.0100.04320.09
5.6.280.0030.04721.08
5.6.210.0170.06020.65
5.6.200.0030.04018.15
5.6.190.0170.07320.50
5.6.180.0300.06020.33
5.6.170.0300.07320.47
5.6.160.0100.05020.44
5.6.150.0070.04018.19
5.6.140.0100.07318.18
5.6.130.0000.04318.28
5.6.120.0130.05321.15
5.6.110.0100.04721.13
5.6.100.0070.08320.97
5.6.90.0170.07021.13
5.6.80.0130.07720.29
5.5.350.4230.04020.38
5.5.340.0000.04318.07
5.5.330.0100.07720.35
5.5.320.0070.06320.24
5.5.310.0230.06320.28
5.5.300.0130.07317.96
5.5.290.0070.04717.95
5.5.280.0030.08020.80
5.5.270.0170.07720.87
5.5.260.0070.08320.79
5.5.250.0100.04020.50
5.5.240.0170.07320.35
5.4.450.0270.05019.45
5.4.440.0100.06319.46
5.4.430.0200.05319.24
5.4.420.0200.05319.53
5.4.410.0230.05019.31
5.4.400.0230.04719.14
5.4.390.0230.06019.21
5.4.380.0570.06319.12
5.4.370.0600.05018.96
5.4.360.0530.05319.36
5.4.350.0600.06319.07
5.4.340.0670.06319.28
5.4.320.0670.05319.36
5.4.310.0730.04319.28
5.4.300.0770.05319.00
5.4.290.0900.05319.20
5.4.280.0600.06018.83
5.4.270.0630.04719.29
5.4.260.0500.05019.10
5.4.250.0470.05719.11
5.4.240.0670.06018.95
5.4.230.0570.04718.80
5.4.220.0670.05319.11
5.4.210.0630.06719.12
5.4.200.0670.06718.95
5.4.190.0500.04718.93
5.4.180.0500.05319.27
5.4.170.0530.05018.82
5.4.160.0600.04018.79
5.4.150.0500.06318.94
5.4.140.0570.05716.58
5.4.130.0530.05316.47
5.4.120.0670.04316.43
5.4.110.0600.05016.37
5.4.100.0630.04316.38
5.4.90.0670.04316.22
5.4.80.0570.05016.39
5.4.70.0500.04716.52
5.4.60.0430.05316.20
5.4.50.0600.05016.54
5.4.40.0600.05316.50
5.4.30.0470.04716.54
5.4.20.0530.05316.50
5.4.10.0600.04716.50
5.4.00.0530.05316.03
5.3.290.0570.05714.65
5.3.280.0630.05014.73
5.3.270.0700.04714.80
5.3.260.0430.05714.44
5.3.250.0770.06314.46
5.3.240.0530.05714.46
5.3.230.0570.05314.61
5.3.220.0530.05714.56
5.3.210.0570.05314.43
5.3.200.0500.05714.56
5.3.190.0730.04714.63
5.3.180.0530.05314.58
5.3.170.0700.04014.57
5.3.160.0470.05314.63
5.3.150.0670.05314.43
5.3.140.0630.04714.61
5.3.130.0470.06314.52
5.3.120.0570.05314.41
5.3.110.0600.05314.62
5.3.100.0600.05013.90
5.3.90.0570.07013.99
5.3.80.0600.04713.93
5.3.70.0630.04713.93
5.3.60.0630.04314.07
5.3.50.0700.04313.79
5.3.40.0730.04314.14
5.3.30.0600.05013.92
5.3.20.0670.06713.57
5.3.10.0700.03713.69
5.3.00.0670.04013.54
5.2.170.0430.05011.35
5.2.160.0530.04011.08
5.2.150.0470.04711.29
5.2.140.0470.04311.18
5.2.130.0530.03711.02
5.2.120.0630.03011.24
5.2.110.0630.03311.13
5.2.100.0500.04010.98
5.2.90.0430.04311.13
5.2.80.0470.04311.09
5.2.70.0470.04310.97
5.2.60.0500.04010.95
5.2.50.0330.05010.89
5.2.40.0330.05011.14
5.2.30.0400.04011.02
5.2.20.0400.03710.87
5.2.10.0470.05010.86
5.2.00.0430.04710.69
5.1.60.0430.03010.02
5.1.50.0270.0409.86
5.1.40.0430.0239.80
5.1.30.0370.05310.21
5.1.20.0430.04710.49
5.1.10.0500.03710.27
5.1.00.0400.03310.13
5.0.50.0170.0338.41
5.0.40.0200.0278.39
5.0.30.0230.0408.15
5.0.20.0230.0238.16
5.0.10.0200.0308.04
5.0.00.0130.0478.23
4.4.90.0300.0276.25
4.4.80.0200.0206.25
4.4.70.0170.0206.25
4.4.60.0200.0206.25
4.4.50.0200.0276.25
4.4.40.0200.0336.25
4.4.30.0170.0236.25
4.4.20.0170.0236.25
4.4.10.0200.0206.25
4.4.00.0170.0376.25
4.3.110.0200.0206.25
4.3.100.0270.0136.25
4.3.90.0200.0206.25
4.3.80.0200.0336.25
4.3.70.0170.0236.25
4.3.60.0200.0206.25
4.3.50.0170.0276.25
4.3.40.0200.0336.25
4.3.30.0070.0236.25
4.3.20.0130.0206.25
4.3.10.0100.0206.25
4.3.00.0100.0206.25

preferences:
66.51 ms | 401 KiB | 5 Q