3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace My; function f() {} trait T {} class C {} interface I {} const CON = 10; var_dump(f::class, T::class, C::class, I::class, CON::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.40.0070.00718.59
8.3.30.0110.00419.09
8.3.20.0080.00020.04
8.3.10.0090.00021.89
8.3.00.0040.00419.25
8.2.170.0100.01022.96
8.2.160.0100.00320.35
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0020.00526.16
8.2.120.0050.00319.54
8.2.110.0090.00022.23
8.2.100.0060.00617.50
8.2.90.0040.00419.15
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0040.00417.68
8.2.50.0030.00618.07
8.2.40.0060.00319.88
8.2.30.0040.00418.04
8.2.20.0040.00417.60
8.2.10.0000.00817.99
8.2.00.0050.00217.48
8.1.270.0040.00420.61
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0060.00320.26
8.1.230.0080.00418.70
8.1.220.0000.00817.79
8.1.210.0080.00018.77
8.1.200.0030.00617.10
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0030.00520.50
8.1.160.0000.00722.01
8.1.150.0000.00818.71
8.1.140.0070.00017.42
8.1.130.0030.00317.80
8.1.120.0050.00317.29
8.1.110.0060.00317.37
8.1.100.0000.00717.35
8.1.90.0000.00817.28
8.1.80.0040.00417.34
8.1.70.0000.00717.30
8.1.60.0040.00417.44
8.1.50.0030.00517.46
8.1.40.0000.00717.45
8.1.30.0030.00617.58
8.1.20.0030.00617.43
8.1.10.0000.00717.36
8.1.00.0000.00817.20
8.0.300.0000.00818.77
8.0.290.0040.00416.58
8.0.280.0000.00718.35
8.0.270.0070.00017.11
8.0.260.0000.00617.16
8.0.250.0070.00016.86
8.0.240.0030.00316.79
8.0.230.0040.00416.81
8.0.220.0040.00416.71
8.0.210.0040.00416.78
8.0.200.0000.00616.89
8.0.190.0040.00416.89
8.0.180.0000.00816.87
8.0.170.0000.00716.75
8.0.160.0030.00316.79
8.0.150.0040.00416.83
8.0.140.0000.00816.69
8.0.130.0030.00313.27
8.0.120.0000.00916.68
8.0.110.0040.00416.76
8.0.100.0040.00416.60
8.0.90.0030.00416.61
8.0.80.0120.00916.74
8.0.70.0070.00016.71
8.0.60.0070.00016.85
8.0.50.0050.00316.72
8.0.30.0080.01716.83
8.0.20.0080.01317.40
8.0.10.0000.00816.90
8.0.00.0150.00216.71
7.4.330.0050.00015.03
7.4.320.0030.00316.38
7.4.300.0030.00616.34
7.4.290.0040.00416.57
7.4.280.0040.00416.55
7.4.270.0030.00316.44
7.4.260.0030.00316.30
7.4.250.0040.00416.50
7.4.240.0020.00516.47
7.4.230.0000.00716.31
7.4.220.0060.01516.46
7.4.210.0030.01116.62
7.4.200.0050.00216.34
7.4.160.0140.00316.45
7.4.150.0060.01217.40
7.4.140.0070.01117.86
7.4.130.0100.00816.42
7.4.120.0100.00716.44
7.4.110.0100.00716.37
7.4.100.0120.01216.38
7.4.90.0170.00016.52
7.4.80.0080.00819.39
7.4.70.0040.01316.26
7.4.60.0110.00516.43
7.4.50.0000.00516.34
7.4.40.0060.01216.31
7.4.30.0090.00916.51
7.4.00.0000.01414.88
7.3.330.0040.00213.18
7.3.320.0150.00013.05
7.3.310.0030.00316.04
7.3.300.0040.00416.24
7.3.290.0090.00616.20
7.3.280.0060.00916.26
7.3.270.0140.00317.40
7.3.260.0060.01116.33
7.3.250.0100.01016.32
7.3.240.0000.01816.40
7.3.230.0110.00816.45
7.3.210.0060.01116.14
7.3.200.0140.00419.39
7.3.190.0080.00816.16
7.3.180.0090.00616.25
7.3.170.0030.01816.39
7.3.160.0120.00416.19
7.2.330.0140.00416.56
7.2.320.0120.00616.49
7.2.310.0040.01416.45
7.2.300.0100.00716.34
7.2.290.0070.01016.29
7.2.60.0120.00316.59
7.2.00.0100.01019.14
7.1.200.0030.00315.54
7.1.100.0040.00817.97
7.1.70.0040.00416.71
7.1.60.0080.01519.46
7.1.50.0130.01034.81
7.1.00.0070.07322.30
7.0.200.0000.00816.57
7.0.140.0000.03721.97
7.0.70.4500.04319.88
7.0.60.0030.08719.89
7.0.50.0030.07317.88
7.0.40.0100.05720.10
7.0.30.0200.04320.24
7.0.20.0270.05020.35
7.0.10.0430.07020.05
7.0.00.0170.08020.22
5.6.280.0000.08020.79
5.6.210.0130.07320.68
5.6.200.0070.04718.24
5.6.190.0000.09020.60
5.6.180.0170.04020.55
5.6.170.0370.06720.50
5.6.160.0100.08020.64
5.6.150.0030.08018.15
5.6.140.0070.07318.14
5.6.130.0030.08718.18
5.6.120.0000.04721.14
5.6.110.0100.08021.04
5.6.100.0030.04720.96
5.6.90.0030.08021.00
5.6.80.0030.07020.53
5.6.70.0270.07020.38
5.5.350.0170.07720.41
5.5.340.0030.06717.98
5.5.330.0100.08020.35
5.5.320.0030.07320.32
5.5.310.0300.06320.32
5.5.300.0030.08317.98
5.5.290.0100.07317.98
5.5.280.0030.05020.88
5.5.270.0000.07320.78
5.5.260.0230.06320.96
5.5.250.0000.04320.79
5.5.240.0100.07320.14
5.4.450.0700.04719.48
5.4.440.0170.05719.61
5.4.430.0100.06019.33
5.4.420.0170.05319.53
5.4.410.0200.05019.32
5.4.400.0100.05718.67
5.4.390.0170.05018.76
5.4.380.0230.04718.75
5.4.370.0200.04718.48
5.4.360.0170.05718.89
5.4.350.0170.05318.47
5.4.340.0130.05318.84
5.4.320.0230.04718.80
5.4.310.0130.05318.76
5.4.300.0170.05318.76
5.4.290.0200.05318.74
5.4.280.0270.04718.61
5.4.270.0230.04318.75
5.4.260.0100.05318.84
5.4.250.0100.05718.78
5.4.240.0170.05318.75
5.4.230.0170.05018.61
5.4.220.0130.05718.73
5.4.210.0170.05018.73
5.4.200.0130.05316.59
5.4.190.0200.05318.77
5.4.180.0170.05718.60
5.4.170.0070.06318.68
5.4.160.0230.04718.51
5.4.150.0100.06018.48
5.4.140.0100.05716.46
5.4.130.0200.05016.43
5.4.120.0200.04316.21
5.4.110.0200.05316.27
5.4.100.0270.04016.42
5.4.90.0200.05316.32
5.4.80.0200.04316.24
5.4.70.0130.05716.20
5.4.60.0200.04716.16
5.4.50.0270.03716.30
5.4.40.0170.04716.18
5.4.30.0130.05316.25
5.4.20.0270.04016.26
5.4.10.0170.04716.25
5.4.00.0170.04715.89
5.3.290.0100.06014.73
5.3.280.0130.05314.59
5.3.270.0170.05314.81
5.3.260.0130.05714.77
5.3.250.0270.04014.64
5.3.240.0230.04314.61
5.3.230.0130.05314.82
5.3.220.0170.05014.76
5.3.210.0170.05014.63
5.3.200.0230.04014.69
5.3.190.0100.06314.62
5.3.180.0100.05714.54
5.3.170.0100.05314.60
5.3.160.0130.05014.70
5.3.150.0100.05714.59
5.3.140.0200.04714.61
5.3.130.0170.05014.54
5.3.120.0200.04714.73
5.3.110.0130.05314.68
5.3.100.0130.05314.07
5.3.90.0200.04714.18
5.3.80.0170.04714.18
5.3.70.0170.04714.12
5.3.60.0100.05713.98
5.3.50.0170.05013.97
5.3.40.0130.05014.15
5.3.30.0030.05713.95
5.3.20.0170.04713.67
5.3.10.0100.05013.69
5.3.00.0170.05013.80
5.2.170.0100.04311.08
5.2.160.0070.04311.09
5.2.150.0030.05011.12
5.2.140.0100.04711.17
5.2.130.0230.03711.09
5.2.120.0100.04311.24
5.2.110.0130.04011.15
5.2.100.0100.04011.13
5.2.90.0130.04711.16
5.2.80.0170.03711.08
5.2.70.0100.04011.25
5.2.60.0170.03711.20
5.2.50.0070.04711.05
5.2.40.0070.04310.95
5.2.30.0170.03311.00
5.2.20.0030.04710.92
5.2.10.0030.04310.91
5.2.00.0100.04310.76
5.1.60.0070.03710.05
5.1.50.0100.03310.09
5.1.40.0100.03310.12
5.1.30.0070.04010.34
5.1.20.0070.04010.50
5.1.10.0130.03010.19
5.1.00.0130.03010.07
5.0.50.0070.0378.68
5.0.40.0030.0308.47
5.0.30.0070.0438.34
5.0.20.0070.0278.19
5.0.10.0070.0278.34
5.0.00.0000.0478.18
4.4.90.0070.0205.89
4.4.80.0070.0205.86
4.4.70.0030.0235.86
4.4.60.0070.0205.87
4.4.50.0000.0275.92
4.4.40.0070.0335.86
4.4.30.0030.0305.92
4.4.20.0130.0175.96
4.4.10.0100.0175.88
4.4.00.0030.0375.92
4.3.110.0030.0235.84
4.3.100.0000.0235.83
4.3.90.0000.0235.79
4.3.80.0030.0375.81
4.3.70.0030.0235.80
4.3.60.0100.0175.83
4.3.50.0070.0205.84
4.3.40.0000.0375.75
4.3.30.0000.0234.60
4.3.20.0070.0204.52
4.3.10.0070.0174.47
4.3.00.0070.0237.02

preferences:
42.58 ms | 400 KiB | 5 Q