3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { const constant = 'constant value'; function showConstant() { echo self::constant . "\n"; } }

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.00918.43
8.3.50.0090.00821.81
8.3.40.0040.01118.58
8.3.30.0040.01118.41
8.3.20.0150.00018.58
8.3.10.0030.00620.41
8.3.00.0170.00023.36
8.2.180.0150.00316.50
8.2.170.0100.01022.96
8.2.160.0130.00720.52
8.2.150.0090.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00820.96
8.2.110.0000.00922.19
8.2.100.0070.00417.72
8.2.90.0000.00819.09
8.2.80.0050.00317.97
8.2.70.0060.00317.25
8.2.60.0040.00417.68
8.2.50.0110.00018.07
8.2.40.0060.00318.09
8.2.30.0040.00419.58
8.2.20.0000.00717.63
8.2.10.0000.00717.43
8.2.00.0050.00217.54
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0080.00022.48
8.1.230.0040.00820.95
8.1.220.0060.00318.77
8.1.210.0080.00018.77
8.1.200.0070.00217.10
8.1.190.0040.00417.28
8.1.180.0030.00518.10
8.1.170.0030.00618.62
8.1.160.0070.00018.80
8.1.150.0000.00818.50
8.1.140.0040.00417.35
8.1.130.0070.00017.67
8.1.120.0000.00717.34
8.1.110.0040.00417.21
8.1.100.0040.00417.33
8.1.90.0000.00717.17
8.1.80.0020.00517.36
8.1.70.0000.00717.16
8.1.60.0000.01117.46
8.1.50.0030.00517.35
8.1.40.0000.00717.42
8.1.30.0040.00417.55
8.1.20.0040.00417.43
8.1.10.0000.00717.36
8.1.00.0040.00417.27
8.0.300.0000.00719.73
8.0.290.0000.00717.05
8.0.280.0000.00718.37
8.0.270.0070.00017.13
8.0.260.0070.00016.60
8.0.250.0000.00716.77
8.0.240.0000.00816.72
8.0.230.0070.00016.84
8.0.220.0050.00216.72
8.0.210.0040.00416.78
8.0.200.0030.00316.68
8.0.190.0030.00616.71
8.0.180.0000.00716.69
8.0.170.0040.00416.78
8.0.160.0040.00416.78
8.0.150.0040.00416.68
8.0.140.0000.00716.73
8.0.130.0000.00513.23
8.0.120.0070.00016.62
8.0.110.0000.00816.73
8.0.100.0040.00416.79
8.0.90.0040.00316.67
8.0.80.0040.01116.74
8.0.70.0000.00816.64
8.0.60.0000.00716.82
8.0.50.0070.00016.76
8.0.30.0130.00516.90
8.0.20.0130.00517.40
8.0.10.0000.00716.77
8.0.00.0050.01216.55
7.4.330.0000.00514.57
7.4.320.0080.00016.36
7.4.300.0000.00716.42
7.4.290.0040.00416.48
7.4.280.0030.00516.36
7.4.270.0000.00716.29
7.4.260.0050.00013.04
7.4.250.0000.00716.32
7.4.240.0030.00316.30
7.4.230.0070.00016.18
7.4.220.0060.00916.40
7.4.210.0070.01016.47
7.4.200.0040.00416.46
7.4.190.0070.00016.37
7.4.160.0060.01216.51
7.4.150.0110.00717.40
7.4.140.0150.00617.86
7.4.130.0090.00816.30
7.4.120.0080.01216.24
7.4.110.0060.01616.29
7.4.100.0180.00316.27
7.4.90.0060.01016.45
7.4.80.0070.01419.37
7.4.70.0030.01316.34
7.4.60.0110.00616.11
7.4.50.0040.00416.29
7.4.40.0000.01122.27
7.4.30.0060.01616.37
7.4.00.0100.00714.54
7.3.330.0030.00312.95
7.3.320.0030.00313.13
7.3.310.0070.00016.21
7.3.300.0060.00016.05
7.3.290.0030.01016.11
7.3.280.0070.01116.16
7.3.270.0170.00017.40
7.3.260.0130.00718.24
7.3.250.0140.00916.16
7.3.240.0110.00516.29
7.3.230.0140.00616.45
7.3.210.0070.01016.36
7.3.200.0070.01419.39
7.3.190.0040.01816.14
7.3.180.0110.00716.11
7.3.170.0130.00616.27
7.3.160.0140.00616.30
7.3.120.0060.00914.89
7.2.330.0120.00616.20
7.2.320.0070.01016.16
7.2.310.0110.00716.47
7.2.300.0060.01016.40
7.2.290.0030.01316.25
7.2.00.0060.00619.37
7.1.200.0040.00715.69
7.1.100.0030.01018.14
7.1.70.0040.00416.78
7.1.60.0000.02519.40
7.1.50.0080.00316.71
7.1.00.0100.06322.33
7.0.200.0030.00316.65
7.0.140.0030.06722.21
7.0.120.0070.05722.04
7.0.110.0030.07722.05
7.0.100.0030.07322.15
7.0.90.0030.07722.19
7.0.80.0030.07322.10
7.0.70.0030.07022.05
7.0.60.0070.05721.98
7.0.50.0030.06021.99
7.0.40.0070.06721.98
7.0.30.0000.07022.11
7.0.20.0100.04322.03
7.0.10.0070.05022.19
7.0.00.0100.06722.18
5.6.280.0030.07321.02
5.6.260.0030.07020.96
5.6.250.0030.07321.04
5.6.240.0030.07720.88
5.6.230.0030.07020.98
5.6.220.0030.06021.02
5.6.210.0000.07021.05
5.6.200.0000.08020.99
5.6.190.0070.06721.04
5.6.180.0070.07020.93
5.6.170.0100.06321.00
5.6.160.0070.07020.93
5.6.150.0000.08021.01
5.6.140.0030.06020.94
5.6.130.0030.07321.00
5.6.120.0070.06720.85
5.6.110.0000.07720.82
5.6.100.0070.06721.07
5.6.90.0070.06720.91
5.6.80.0000.06020.21
5.6.70.0000.07320.18
5.6.60.0030.07320.27
5.6.50.0130.06020.29
5.6.40.0030.07020.39
5.6.30.0000.06320.21
5.6.20.0100.06320.28
5.6.10.0070.06720.19
5.6.00.0000.07020.07
5.5.380.0070.06717.70
5.5.370.0000.07317.69
5.5.360.0000.06317.71
5.5.350.0000.07017.55
5.5.340.0000.06318.14
5.5.330.0070.07017.96
5.5.320.0070.06718.11
5.5.310.0030.07317.92
5.5.300.0000.07318.10
5.5.290.0030.07317.91
5.5.280.0030.06018.10
5.5.270.0030.07317.92
5.5.260.0030.07318.09
5.5.250.0030.05717.74
5.5.240.0030.06317.32
5.5.230.0070.07017.45
5.5.220.0030.04717.50
5.5.210.0000.07017.60
5.5.200.0070.05317.40
5.5.190.0030.07017.27
5.5.180.0070.05017.42
5.5.160.0000.07017.30
5.5.150.0030.06017.60
5.5.140.0030.04017.27
5.5.130.0000.06017.26
5.5.120.0000.06017.28
5.5.110.0000.04317.53
5.5.100.0000.04017.38
5.5.90.0030.06317.47
5.5.80.0070.06317.38
5.5.70.0030.06017.47
5.5.60.0000.04017.37
5.5.50.0000.03317.17
5.5.40.0000.03317.41
5.5.30.0000.06317.50
5.5.20.0100.06317.17
5.5.10.0030.05717.36
5.5.00.0000.03317.36
5.4.450.0000.07719.52
5.4.440.0070.06719.32
5.4.430.0100.05319.50
5.4.420.0070.06719.35
5.4.410.0070.05719.21
5.4.400.0000.06319.02
5.4.390.0030.07019.23
5.4.380.0000.05719.08
5.4.370.0030.05319.09
5.4.360.0000.06018.99
5.4.350.0130.05719.33
5.4.340.0000.05719.33
5.4.320.0000.06319.16
5.4.310.0070.06319.30
5.4.300.0000.03719.21
5.4.290.0000.05319.32
5.4.280.0030.06019.17
5.4.270.0000.05319.09
5.4.260.0030.04019.17
5.4.250.0000.04019.02
5.4.240.0000.06719.01
5.4.230.0000.04019.00
5.4.220.0000.03319.21
5.4.210.0000.04019.08
5.4.200.0000.03019.15
5.4.190.0030.04719.16
5.4.180.0030.06719.07
5.4.170.0030.03019.01
5.4.160.0030.02719.06
5.4.150.0000.07019.15
5.4.140.0000.05716.51
5.4.130.0000.03316.34
5.4.120.0070.06016.38
5.4.110.0030.05316.54
5.4.100.0000.03716.55
5.4.90.0000.06316.50
5.4.80.0130.04316.41
5.4.70.0000.03716.51
5.4.60.0070.05316.38
5.4.50.0000.03716.39
5.4.40.0000.03716.43
5.4.30.0030.06016.47
5.4.20.0000.06016.28
5.4.10.0000.03716.43
5.4.00.0030.05315.83
5.3.290.0000.06714.70
5.3.280.0030.04014.63
5.3.270.0100.03014.62
5.3.260.0030.04014.59
5.3.250.0070.06314.62
5.3.240.0030.06314.62
5.3.230.0000.03014.73
5.3.220.0000.04714.62
5.3.210.0000.04314.50
5.3.200.0000.05714.64
5.3.190.0000.06014.55
5.3.180.0000.05314.68
5.3.170.0030.04314.53
5.3.160.0000.06014.68
5.3.150.0000.03714.79
5.3.140.0000.04314.68
5.3.130.0030.07014.77
5.3.120.0030.05714.55
5.3.110.0000.04714.54
5.3.100.0000.05013.90
5.3.90.0030.04714.14
5.3.80.0030.06314.05
5.3.70.0000.06014.02
5.3.60.0030.05014.07
5.3.50.0070.03313.95
5.3.40.0000.04713.95
5.3.30.0070.03313.91
5.3.20.0030.04313.76
5.3.10.0000.04713.66
5.3.00.0000.03313.77
5.2.170.0000.03711.16
5.2.160.0030.03710.99
5.2.150.0030.04311.28
5.2.140.0000.04311.21
5.2.130.0000.03711.23
5.2.120.0070.04311.32
5.2.110.0030.03311.11
5.2.100.0030.04711.11
5.2.90.0000.05011.07
5.2.80.0000.05711.23
5.2.70.0030.05011.19
5.2.60.0030.05711.05
5.2.50.0030.04311.08
5.2.40.0000.03010.96
5.2.30.0000.02710.95
5.2.20.0000.02311.02
5.2.10.0030.02011.00
5.2.00.0030.02010.71
5.1.60.0000.02010.28
5.1.50.0000.02010.28
5.1.40.0000.02010.28
5.1.30.0000.02010.34
5.1.20.0000.02310.57
5.1.10.0000.02010.28
5.1.00.0000.03010.31
5.0.50.0000.02010.28
5.0.40.0000.01710.28
5.0.30.0000.03010.28
5.0.20.0070.03710.28
5.0.10.0000.03010.28
5.0.00.0030.04010.28
4.4.90.0000.02710.28
4.4.80.0000.02710.28
4.4.70.0030.01010.28
4.4.60.0000.01310.28
4.4.50.0000.01010.28
4.4.40.0030.01710.28
4.4.30.0000.01010.28
4.4.20.0000.01310.28
4.4.10.0000.01710.28
4.4.00.0030.01710.28
4.3.110.0000.01310.28
4.3.100.0030.02710.28
4.3.90.0000.02710.28
4.3.80.0000.03710.28
4.3.70.0030.01710.28
4.3.60.0030.01310.28
4.3.50.0000.01710.28
4.3.40.0000.02310.28
4.3.30.0000.01710.28
4.3.20.0030.01310.28
4.3.10.0030.01310.28
4.3.00.0030.02310.28

preferences:
56.72 ms | 400 KiB | 5 Q