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(MY::class, 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.60.0120.00916.50
8.3.50.0110.01022.05
8.3.40.0070.01018.73
8.3.30.0040.01118.79
8.3.20.0060.00320.26
8.3.10.0030.00621.98
8.3.00.0000.00819.25
8.2.180.0070.01116.38
8.2.170.0150.00622.96
8.2.160.0030.01020.47
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0070.00019.41
8.2.110.0060.00322.07
8.2.100.0110.00017.63
8.2.90.0080.00018.91
8.2.80.0080.00017.97
8.2.70.0000.00817.38
8.2.60.0050.00317.80
8.2.50.0030.00618.07
8.2.40.0030.00619.88
8.2.30.0080.00017.88
8.2.20.0040.00417.62
8.2.10.0080.00017.94
8.2.00.0050.00317.61
8.1.280.0120.00325.92
8.1.270.0050.00320.43
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0080.00023.84
8.1.230.0070.00418.56
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0000.00817.10
8.1.180.0070.00018.10
8.1.170.0040.00420.32
8.1.160.0070.00021.99
8.1.150.0050.00218.69
8.1.140.0030.00517.25
8.1.130.0030.00317.82
8.1.120.0000.00717.41
8.1.110.0020.00517.39
8.1.100.0000.00717.29
8.1.90.0070.00017.42
8.1.80.0030.00317.43
8.1.70.0000.00717.41
8.1.60.0080.00017.54
8.1.50.0060.00317.46
8.1.40.0040.00417.35
8.1.30.0000.00817.50
8.1.20.0030.00617.57
8.1.10.0000.00817.32
8.1.00.0000.00817.30
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0050.00318.19
8.0.270.0000.00717.13
8.0.260.0060.00017.03
8.0.250.0070.00016.75
8.0.240.0000.00616.77
8.0.230.0030.00316.90
8.0.220.0000.00716.80
8.0.210.0000.00816.70
8.0.200.0030.00316.88
8.0.190.0030.00616.85
8.0.180.0030.00416.82
8.0.170.0000.00716.89
8.0.160.0000.00716.92
8.0.150.0030.00316.66
8.0.140.0030.00316.75
8.0.130.0030.00313.20
8.0.120.0080.00016.78
8.0.110.0040.00416.76
8.0.100.0050.00216.71
8.0.90.0000.00716.79
8.0.80.0110.01016.79
8.0.70.0040.00416.64
8.0.60.0000.00716.70
8.0.50.0050.00216.88
8.0.30.0090.00816.91
8.0.20.0130.00717.40
8.0.10.0040.00416.89
8.0.00.0100.00716.64
7.4.330.0030.00315.03
7.4.320.0030.00316.53
7.4.300.0000.00816.47
7.4.290.0000.00716.42
7.4.280.0030.00516.55
7.4.270.0000.00716.45
7.4.260.0000.00716.30
7.4.250.0000.00816.34
7.4.240.0030.00416.39
7.4.230.0000.00716.55
7.4.220.0120.00616.45
7.4.210.0110.00316.51
7.4.200.0000.00716.52
7.4.160.0130.01016.43
7.4.150.0090.00917.40
7.4.140.0080.01017.86
7.4.130.0030.01616.54
7.4.120.0070.01016.40
7.4.110.0110.00816.63
7.4.100.0100.01416.54
7.4.90.0150.00316.57
7.4.80.0130.00519.39
7.4.70.0130.00416.34
7.4.60.0090.00616.47
7.4.50.0030.00316.45
7.4.40.0120.00616.37
7.4.30.0180.00516.47
7.4.00.0070.00814.73
7.3.330.0000.00613.20
7.3.320.0060.00913.25
7.3.310.0000.00616.24
7.3.300.0030.00316.22
7.3.290.0070.00716.22
7.3.280.0070.01116.26
7.3.270.0150.00317.40
7.3.260.0090.00916.51
7.3.250.0150.00316.25
7.3.240.0000.01916.49
7.3.230.0030.01416.50
7.3.210.0110.00616.40
7.3.200.0070.01119.39
7.3.190.0140.00716.29
7.3.180.0130.00316.15
7.3.170.0070.01616.50
7.3.160.0100.00616.42
7.2.330.0130.00416.25
7.2.320.0060.01516.63
7.2.310.0140.00816.57
7.2.300.0000.01716.62
7.2.290.0160.00316.20
7.2.00.0130.01019.25
7.1.100.0000.01118.09
7.1.70.0030.00617.13
7.1.60.0110.01519.46
7.1.50.0200.01334.82
7.1.00.0030.07722.31
7.0.200.0090.00616.56
7.0.140.0000.03722.00
7.0.60.0070.08019.96
7.0.50.0000.04317.81
7.0.40.0030.07320.30
7.0.30.0330.06720.08
7.0.20.0170.04320.21
7.0.10.0100.06020.25
7.0.00.0130.08020.07
5.6.280.0000.07721.09
5.6.210.0100.03320.56
5.6.200.0030.04318.28
5.6.190.0100.08720.39
5.6.180.3800.04320.64
5.6.170.0370.04320.39
5.6.160.0070.08020.52
5.6.150.0130.07718.15
5.6.140.0030.04018.14
5.6.130.0200.07318.21
5.6.120.0070.07721.03
5.6.110.0070.09321.14
5.6.100.0200.07321.13
5.6.90.0030.05320.99
5.6.80.0200.05720.38
5.6.70.3200.03720.41
5.5.350.0030.04020.42
5.5.340.0200.06318.08
5.5.330.0030.04320.31
5.5.320.0300.05020.28
5.5.310.0100.04720.27
5.5.300.0100.04317.95
5.5.290.0000.09017.95
5.5.280.0130.06320.77
5.5.270.0000.09020.98
5.5.260.0070.06720.89
5.5.250.0200.07320.69
5.5.240.0100.07320.19
5.4.450.0700.05319.61
5.4.440.0170.05719.47
5.4.430.0170.05719.58
5.4.420.0070.06319.61
5.4.410.0170.07319.18
5.4.400.0130.06018.52
5.4.390.0100.05718.53
5.4.380.0100.05718.47
5.4.370.0170.05018.76
5.4.360.0030.06018.75
5.4.350.0130.05718.77
5.4.340.0270.04718.70
5.4.320.0200.05018.77
5.4.310.0130.05718.75
5.4.300.0100.05718.70
5.4.290.0200.05018.50
5.4.280.0130.05718.61
5.4.270.0130.05318.52
5.4.260.0170.05018.58
5.4.250.0170.05718.78
5.4.240.0130.05318.77
5.4.230.0200.04718.82
5.4.220.0230.05018.71
5.4.210.0170.05018.74
5.4.200.0170.04716.55
5.4.190.0170.06018.48
5.4.180.0200.04718.79
5.4.170.0130.05318.57
5.4.160.0230.04318.44
5.4.150.0270.04718.76
5.4.140.0130.05016.36
5.4.130.0270.03716.47
5.4.120.0170.04716.29
5.4.110.0270.03716.35
5.4.100.0130.05316.23
5.4.90.0270.04016.35
5.4.80.0130.05016.47
5.4.70.0200.04716.25
5.4.60.0200.04316.29
5.4.50.0170.04316.25
5.4.40.0100.05716.23
5.4.30.0130.04716.40
5.4.20.0100.05716.25
5.4.10.0200.04316.25
5.4.00.0130.05015.87
5.3.290.0170.05314.83
5.3.280.0100.05314.76
5.3.270.0170.05314.73
5.3.260.0200.05014.77
5.3.250.0230.04314.82
5.3.240.0130.05314.59
5.3.230.0200.04314.70
5.3.220.0170.04714.70
5.3.210.0270.04714.77
5.3.200.0200.04314.61
5.3.190.0170.05014.55
5.3.180.0130.05014.58
5.3.170.0130.05314.66
5.3.160.0100.05314.59
5.3.150.0200.04714.54
5.3.140.0130.05014.68
5.3.130.0100.05714.59
5.3.120.0130.05714.57
5.3.110.0170.05314.54
5.3.100.0130.05314.26
5.3.90.0200.04714.03
5.3.80.0200.05014.05
5.3.70.0130.05014.18
5.3.60.0200.04313.98
5.3.50.0030.06714.07
5.3.40.0130.05314.04
5.3.30.0200.04314.01
5.3.20.0170.04713.89
5.3.10.0130.05013.71
5.3.00.0130.05313.75
5.2.170.0200.03311.13
5.2.160.0200.03311.09
5.2.150.0070.04711.18
5.2.140.0230.04011.27
5.2.130.0100.04311.03
5.2.120.0130.03711.09
5.2.110.0100.04011.14
5.2.100.0130.03711.16
5.2.90.0070.04311.24
5.2.80.0270.02711.05
5.2.70.0100.04311.05
5.2.60.0130.04010.97
5.2.50.0100.04310.98
5.2.40.0170.03310.94
5.2.30.0030.05010.95
5.2.20.0130.03711.09
5.2.10.0070.04010.97
5.2.00.0200.04010.71
5.1.60.0200.0209.95
5.1.50.0100.03710.09
5.1.40.0100.0339.99
5.1.30.0130.03310.47
5.1.20.0130.04010.34
5.1.10.0130.03010.08
5.1.00.0070.03710.20
5.0.50.0000.0338.52
5.0.40.0030.0408.52
5.0.30.0100.0378.36
5.0.20.0000.0338.38
5.0.10.0030.0308.18
5.0.00.0000.0478.27
4.4.90.0030.0235.83
4.4.80.0070.0205.87
4.4.70.0070.0205.91
4.4.60.0070.0205.81
4.4.50.0030.0235.95
4.4.40.0070.0405.86
4.4.30.0000.0275.82
4.4.20.0070.0205.96
4.4.10.0030.0236.00
4.4.00.0070.0335.91
4.3.110.0100.0235.85
4.3.100.0070.0235.87
4.3.90.0130.0105.79
4.3.80.0070.0305.91
4.3.70.0030.0205.82
4.3.60.0030.0205.86
4.3.50.0070.0205.87
4.3.40.0070.0335.88
4.3.30.0030.0204.59
4.3.20.0030.0204.58
4.3.10.0030.0204.57
4.3.00.0130.0207.02

preferences:
42.19 ms | 401 KiB | 5 Q