3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace My; function f() {} trait T {} class C {} interface I {} const CON = 10; $a = 11; var_dump(\WTF::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.70.0140.00716.50
8.3.60.0110.01116.75
8.3.50.0150.00521.97
8.3.40.0140.00018.54
8.3.30.0110.00318.77
8.3.20.0080.00020.04
8.3.10.0080.00023.61
8.3.00.0030.00619.25
8.2.190.0040.01116.58
8.2.180.0110.00716.38
8.2.170.0100.01022.96
8.2.160.0070.00720.44
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0090.00619.34
8.2.110.0060.00321.00
8.2.100.0090.00617.72
8.2.90.0030.00619.09
8.2.80.0030.00517.97
8.2.70.0050.00317.50
8.2.60.0040.00417.80
8.2.50.0060.00318.10
8.2.40.0030.00519.95
8.2.30.0040.00418.04
8.2.20.0000.00717.73
8.2.10.0000.00817.98
8.2.00.0040.00417.65
8.1.280.0070.00725.92
8.1.270.0060.00920.32
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00322.74
8.1.230.0040.00717.63
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0000.00817.35
8.1.190.0060.00317.10
8.1.180.0050.00318.10
8.1.170.0060.00618.56
8.1.160.0040.00421.87
8.1.150.0000.00718.81
8.1.140.0040.00417.47
8.1.130.0030.00317.81
8.1.120.0050.00217.39
8.1.110.0000.00817.43
8.1.100.0070.00017.29
8.1.90.0030.00317.49
8.1.80.0050.00317.50
8.1.70.0000.00717.47
8.1.60.0080.00017.53
8.1.50.0000.00817.49
8.1.40.0000.00817.39
8.1.30.0080.00017.61
8.1.20.0000.00817.50
8.1.10.0000.00817.32
8.1.00.0060.00317.38
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.25
8.0.270.0070.00017.18
8.0.260.0000.00617.14
8.0.250.0030.00316.78
8.0.240.0060.00016.88
8.0.230.0000.00816.85
8.0.220.0000.00716.86
8.0.210.0000.00716.77
8.0.200.0000.00616.95
8.0.190.0090.00016.93
8.0.180.0040.00416.86
8.0.170.0080.00016.91
8.0.160.0040.00416.90
8.0.150.0000.00716.82
8.0.140.0040.00416.71
8.0.130.0030.00313.23
8.0.120.0050.00216.75
8.0.110.0040.00416.77
8.0.100.0040.00416.67
8.0.90.0070.00016.90
8.0.80.0150.00716.93
8.0.70.0050.00216.93
8.0.60.0000.00716.71
8.0.50.0000.00716.83
8.0.30.0100.00916.97
8.0.20.0110.01117.40
8.0.10.0000.00716.95
8.0.00.0160.00216.73
7.4.330.0020.00215.08
7.4.320.0000.00716.63
7.4.300.0050.00316.42
7.4.290.0070.00016.44
7.4.280.0040.00416.37
7.4.270.0000.00616.50
7.4.260.0030.00316.57
7.4.250.0040.00416.52
7.4.240.0030.00316.54
7.4.230.0030.00316.42
7.4.220.0090.00916.59
7.4.210.0110.00316.53
7.4.200.0030.00316.48
7.4.160.0070.01416.52
7.4.150.0120.01217.40
7.4.140.0080.01017.86
7.4.130.0110.00516.49
7.4.120.0080.01116.49
7.4.110.0060.01616.65
7.4.100.0180.00516.63
7.4.90.0120.00916.54
7.4.80.0120.00619.39
7.4.70.0100.00616.43
7.4.60.0100.00616.61
7.4.50.0030.00616.32
7.4.40.0150.00716.58
7.4.30.0100.01316.68
7.4.00.0000.01114.88
7.3.330.0030.00313.25
7.3.320.0060.00613.21
7.3.310.0070.00016.14
7.3.300.0000.00716.09
7.3.290.0030.01116.29
7.3.280.0090.00816.24
7.3.270.0110.00817.40
7.3.260.0150.00316.22
7.3.250.0170.00516.36
7.3.240.0140.00316.54
7.3.230.0140.00916.39
7.3.210.0060.01316.32
7.3.200.0080.00819.39
7.3.190.0130.00916.24
7.3.180.0090.00616.21
7.3.170.0060.01316.45
7.3.160.0100.00616.23
7.2.330.0090.00916.39
7.2.320.0080.01116.55
7.2.310.0090.00816.56
7.2.300.0100.00716.26
7.2.290.0030.01516.75
7.2.00.0110.01119.22
7.1.100.0100.00317.98
7.1.70.0000.00916.90
7.1.60.0070.01719.46
7.1.50.0210.01134.76
7.1.00.0070.07322.41
7.0.200.0000.00716.66
7.0.140.0000.05022.07
7.0.70.4970.04719.94
7.0.60.0070.05720.02
7.0.50.0200.06717.85
7.0.40.0100.07720.02
7.0.30.0170.07320.06
7.0.20.0270.08720.23
7.0.10.0370.07320.16
7.0.00.0070.07720.26
5.6.280.0000.07721.09
5.6.210.0070.08020.76
5.6.200.0070.04018.16
5.6.190.0100.08320.63
5.6.180.0070.05020.65
5.6.170.0270.05020.43
5.6.160.0100.07720.66
5.6.150.0030.07718.25
5.6.140.0030.07018.21
5.6.130.0100.06718.24
5.6.120.0030.04720.90
5.6.110.0130.08721.12
5.6.100.0100.05021.11
5.6.90.0070.05321.04
5.6.80.0200.05020.50
5.6.70.0230.07020.39
5.5.350.0070.08320.39
5.5.340.0030.08018.07
5.5.330.0070.08720.47
5.5.320.0000.08020.13
5.5.310.0200.07320.34
5.5.300.0100.05718.02
5.5.290.0070.07018.04
5.5.280.0100.08020.88
5.5.270.0030.05720.74
5.5.260.0200.08020.69
5.5.250.0070.03720.78
5.5.240.0100.07720.19
5.4.450.0670.05319.50
5.4.440.0230.05019.34
5.4.430.0130.05719.58
5.4.420.0170.06719.45
5.4.410.0230.05019.41
5.4.400.0200.07018.81
5.4.390.0030.07018.73
5.4.380.0200.06018.57
5.4.370.0230.07018.52
5.4.360.0030.06718.75
5.4.350.0230.07018.47
5.4.340.0230.06718.59
5.4.320.0270.05318.75
5.4.310.0270.05018.61
5.4.300.0200.04718.74
5.4.290.0230.04718.80
5.4.280.0070.06018.74
5.4.270.0130.05718.70
5.4.260.0070.06018.61
5.4.250.0200.05018.52
5.4.240.0030.06318.74
5.4.230.0130.05318.55
5.4.220.0100.06018.70
5.4.210.0130.05718.52
5.4.200.0130.05016.54
5.4.190.0130.05318.57
5.4.180.0200.05018.77
5.4.170.0130.05318.75
5.4.160.0230.04318.75
5.4.150.0300.04018.67
5.4.140.0130.05016.34
5.4.130.0170.04716.23
5.4.120.0170.04716.45
5.4.110.0170.05016.29
5.4.100.0130.05316.46
5.4.90.0070.05716.30
5.4.80.0200.04316.24
5.4.70.0130.05016.43
5.4.60.0100.05316.26
5.4.50.0300.04716.20
5.4.40.0100.05316.29
5.4.30.0270.04316.24
5.4.20.0200.04716.27
5.4.10.0100.05316.26
5.4.00.0230.04015.64
5.3.290.0100.06014.80
5.3.280.0230.04314.80
5.3.270.0200.05014.64
5.3.260.0070.06314.63
5.3.250.0200.04714.63
5.3.240.0330.03714.77
5.3.230.0170.05714.70
5.3.220.0100.05714.55
5.3.210.0170.06714.70
5.3.200.0100.05314.70
5.3.190.0170.05014.77
5.3.180.0200.05014.61
5.3.170.0230.04014.66
5.3.160.0200.05014.61
5.3.150.0100.05714.66
5.3.140.0100.05714.66
5.3.130.0170.05014.56
5.3.120.0330.04314.57
5.3.110.0100.07314.54
5.3.100.0030.06314.13
5.3.90.0070.06314.05
5.3.80.0200.04314.04
5.3.70.0170.05014.12
5.3.60.0070.06014.03
5.3.50.0130.05314.02
5.3.40.0130.05014.02
5.3.30.0170.05313.95
5.3.20.0200.04313.71
5.3.10.0100.05013.75
5.3.00.0200.04313.82
5.2.170.0100.04711.20
5.2.160.0130.04011.11
5.2.150.0100.04311.30
5.2.140.0130.04011.21
5.2.130.0170.03311.02
5.2.120.0130.03711.05
5.2.110.0100.04011.07
5.2.100.0070.04711.02
5.2.90.0130.03711.06
5.2.80.0130.04011.05
5.2.70.0230.03011.08
5.2.60.0070.04711.10
5.2.50.0100.04311.16
5.2.40.0130.04011.02
5.2.30.0200.03710.95
5.2.20.0100.04010.92
5.2.10.0100.04010.81
5.2.00.0130.04010.81
5.1.60.0030.0409.99
5.1.50.0070.03710.13
5.1.40.0100.03310.01
5.1.30.0100.03310.30
5.1.20.0100.03310.39
5.1.10.0100.03310.12
5.1.00.0070.03710.08
5.0.50.0000.0338.58
5.0.40.0070.0278.44
5.0.30.0030.0478.22
5.0.20.0100.0238.31
5.0.10.0030.0308.29
5.0.00.0100.0378.18
4.4.90.0030.0235.90
4.4.80.0030.0235.86
4.4.70.0100.0175.94
4.4.60.0170.0105.87
4.4.50.0130.0135.91
4.4.40.0070.0335.87
4.4.30.0100.0175.89
4.4.20.0070.0205.92
4.4.10.0030.0235.89
4.4.00.0100.0305.94
4.3.110.0070.0275.83
4.3.100.0070.0205.77
4.3.90.0030.0235.91
4.3.80.0070.0335.82
4.3.70.0030.0235.81
4.3.60.0070.0205.87
4.3.50.0030.0235.82
4.3.40.0070.0305.77
4.3.30.0030.0204.66
4.3.20.0030.0204.63
4.3.10.0000.0234.52
4.3.00.0100.0207.02

preferences:
59.87 ms | 401 KiB | 5 Q