3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{ const AAA = array(1); function function_name($param) { self::AAA[1]; } }

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.0110.00718.18
8.3.50.0070.01017.71
8.3.40.0110.00418.67
8.3.30.0110.00318.85
8.3.20.0040.00420.16
8.3.10.0080.00021.75
8.3.00.0030.00619.01
8.2.180.0060.01218.29
8.2.170.0090.00622.96
8.2.160.0070.00720.22
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0030.00519.11
8.2.110.0060.00322.20
8.2.100.0110.00017.70
8.2.90.0000.00917.72
8.2.80.0000.00817.97
8.2.70.0040.00417.68
8.2.60.0040.00418.09
8.2.50.0030.00618.10
8.2.40.0080.00019.06
8.2.30.0070.00019.04
8.2.20.0000.00717.55
8.2.10.0040.00418.03
8.2.00.0000.00717.45
8.1.270.0060.00318.79
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0080.00417.23
8.1.230.0120.00020.76
8.1.220.0090.00017.74
8.1.210.0030.00618.92
8.1.200.0040.00417.22
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0000.00818.43
8.1.160.0000.00818.67
8.1.150.0020.00518.66
8.1.140.0000.00817.23
8.1.130.0030.00317.66
8.1.120.0040.00417.27
8.1.110.0040.00417.38
8.1.100.0060.00317.32
8.1.90.0040.00417.35
8.1.80.0030.00517.31
8.1.70.0030.00317.36
8.1.60.0040.00417.28
8.1.50.0040.00417.29
8.1.40.0030.00617.38
8.1.30.0040.00417.55
8.1.20.0070.00017.41
8.1.10.0040.00417.23
8.1.00.0040.00417.28
8.0.300.0020.00519.66
8.0.290.0000.00716.63
8.0.280.0000.00718.23
8.0.270.0040.00417.09
8.0.260.0030.00317.06
8.0.250.0000.00716.76
8.0.240.0000.00716.69
8.0.230.0070.00016.81
8.0.220.0070.00016.61
8.0.210.0070.00016.69
8.0.200.0030.00316.70
8.0.190.0060.00316.77
8.0.180.0030.00516.81
8.0.170.0080.00016.78
8.0.160.0050.00316.77
8.0.150.0000.00716.68
8.0.140.0000.00816.72
8.0.130.0080.00013.15
8.0.120.0030.00616.63
8.0.110.0000.00716.65
8.0.100.0000.00716.82
8.0.90.0000.00816.88
8.0.80.0030.01416.70
8.0.70.0000.00716.67
8.0.60.0040.00416.61
8.0.50.0040.00416.63
8.0.30.0120.01316.98
8.0.20.0100.00917.40
8.0.10.0070.00016.91
8.0.00.0100.01016.49
7.4.330.0000.00515.03
7.4.320.0000.00616.47
7.4.300.0000.00616.36
7.4.290.0030.00316.38
7.4.280.0040.00416.46
7.4.270.0030.00316.49
7.4.260.0030.00316.31
7.4.250.0000.00716.38
7.4.240.0040.00316.46
7.4.230.0030.00316.41
7.4.220.0090.01616.43
7.4.210.0090.00716.35
7.4.200.0070.00016.36
7.4.160.0060.01616.34
7.4.150.0120.00917.40
7.4.140.0110.01117.86
7.4.130.0100.01016.42
7.4.120.0070.01016.50
7.4.110.0120.00616.34
7.4.100.0070.01116.43
7.4.90.0110.00516.37
7.4.80.0030.01719.39
7.4.70.0090.00616.38
7.4.60.0130.00316.27
7.4.50.0040.00416.06
7.4.40.0030.01416.25
7.4.30.0130.01016.27
7.4.00.0090.00614.70
7.3.330.0040.00412.96
7.3.320.0160.00012.96
7.3.310.0030.00316.13
7.3.300.0040.00416.05
7.3.290.0000.00716.21
7.3.280.0040.01216.18
7.3.270.0140.00417.40
7.3.260.0170.00016.10
7.3.250.0120.00616.19
7.3.240.0100.00716.15
7.3.230.0080.01116.39
7.3.210.0060.00916.23
7.3.200.0090.00919.39
7.3.190.0100.00716.25
7.3.180.0060.01116.09
7.3.170.0030.01316.36
7.3.160.0080.00816.35
7.3.10.0030.00916.32
7.3.00.0070.00716.27
7.2.330.0100.00716.30
7.2.320.0070.01016.53
7.2.310.0130.00616.43
7.2.300.0070.01116.54
7.2.290.0090.00916.53
7.2.130.0000.01416.61
7.2.120.0100.00716.49
7.2.110.0110.00616.14
7.2.100.0230.00816.31
7.2.90.0050.01116.48
7.2.80.0090.00316.78
7.2.70.0000.01316.37
7.2.60.0090.00616.57
7.2.50.0100.00316.80
7.2.40.0150.00016.82
7.2.30.0030.01316.70
7.2.20.0130.00316.42
7.2.10.0280.00916.61
7.2.00.0140.00617.78
7.1.250.0070.01015.67
7.1.100.0000.01117.83
7.1.70.0020.00517.09
7.1.60.0130.00619.50
7.1.50.0070.01616.77
7.1.00.0000.08022.28
7.0.200.0610.01014.57
7.0.140.0030.06321.95
7.0.60.0130.07719.96
7.0.50.0100.08017.81
7.0.40.0130.07320.18
7.0.30.0270.05020.20
7.0.20.0230.07320.19
7.0.10.0130.08720.19
7.0.00.0030.09320.03
5.6.280.0030.07320.90
5.6.210.0070.08020.48
5.6.200.0000.04718.12
5.6.190.0000.04320.60
5.6.180.0300.08020.65
5.6.170.0270.05720.50
5.6.160.0130.04020.55
5.6.150.0100.07718.19
5.6.140.0030.08718.18
5.6.130.0070.07318.28
5.6.120.0100.07721.12
5.6.110.0130.07721.11
5.6.100.0170.07320.93
5.6.90.0130.07721.12
5.6.80.0030.06020.48
5.6.70.0330.06020.37
5.5.350.0400.06720.32
5.5.340.0000.04717.99
5.5.330.0130.08020.42
5.5.320.0100.05020.20
5.5.310.0400.04320.35
5.5.300.0030.08718.08
5.5.290.0070.08017.91
5.5.280.0070.03720.80
5.5.270.0100.07020.85
5.5.260.0130.09020.76
5.5.250.0100.08320.70
5.5.240.0100.08020.23
5.4.450.0130.06319.48
5.4.440.0900.05719.43
5.4.430.1030.06019.26
5.4.420.1030.05719.44
5.4.410.0100.05318.70
5.4.400.0730.06718.50
5.4.390.0870.06718.57
5.4.380.0970.07318.76
5.4.370.0630.08018.71
5.4.360.0730.07318.84
5.4.350.0870.05718.77
5.4.340.0770.05018.61
5.4.320.0800.06018.71
5.4.310.1030.06018.50
5.4.300.0770.07318.80
5.4.290.1000.05018.61
5.4.280.0630.06318.58
5.4.270.0830.07018.75
5.4.260.0870.05718.76
5.4.250.0900.05018.52
5.4.240.0630.06018.54
5.4.230.0830.04718.57
5.4.220.0870.04718.45
5.4.210.1100.04318.75
5.4.200.1170.06016.53
5.4.190.0900.07018.54
5.4.180.0600.07018.77
5.4.170.0970.04718.57
5.4.160.0770.05718.71
5.4.150.0730.06018.71
5.4.140.0800.05316.45
5.4.130.1000.05316.17
5.4.120.0870.06016.45
5.4.110.0730.05016.31
5.4.100.0630.06016.28
5.4.90.0900.04316.23
5.4.80.0800.04316.31
5.4.70.0930.05016.14
5.4.60.0970.06016.26
5.4.50.0830.05716.12
5.4.40.1170.04316.42
5.4.30.1170.05716.24
5.4.20.1130.05716.17
5.4.10.0830.06016.38
5.4.00.1070.05715.68
5.3.290.1100.06714.66
5.3.280.0700.07714.63
5.3.270.1070.05714.71
5.3.260.0870.06714.58
5.3.250.1030.05314.62
5.3.240.1230.07014.78
5.3.230.3830.06714.57
5.3.220.0930.06014.70
5.3.210.1200.06014.56
5.3.200.1070.06014.72
5.3.190.0970.06314.59
5.3.180.0900.06314.77
5.3.170.1000.06314.60
5.3.160.0870.05714.70
5.3.150.0830.05014.55
5.3.140.0870.06014.77
5.3.130.1100.05714.53
5.3.120.0870.06014.56
5.3.110.0930.08014.68
5.3.100.0900.06314.01
5.3.90.0600.06014.06
5.3.80.0900.05314.05
5.3.70.0870.06014.05
5.3.60.1000.07014.05
5.3.50.1030.06013.96
5.3.40.0270.06014.00
5.3.30.0770.06313.94
5.3.20.0900.05313.70
5.3.10.0930.06313.71
5.3.00.1030.05013.75
5.2.170.0600.05011.19
5.2.160.0830.05711.18
5.2.150.0770.04011.23
5.2.140.0870.03711.23
5.2.130.0530.04311.16
5.2.120.0670.04011.29
5.2.110.0800.05011.09
5.2.100.0900.04711.13
5.2.90.0900.04711.22
5.2.80.0700.06011.21
5.2.70.0700.05011.29
5.2.60.0530.06011.07
5.2.50.0330.04311.13
5.2.40.0630.05711.05
5.2.30.0370.05711.11
5.2.20.0330.05711.15
5.2.10.0830.04710.83
5.2.00.0730.06310.76
5.1.60.0670.04710.17
5.1.50.0600.05310.06
5.1.40.0730.0339.99
5.1.30.0700.04010.43
5.1.20.0730.05010.36
5.1.10.0570.05710.27
5.1.00.2230.03710.12
5.0.50.0570.0308.56
5.0.40.0530.0278.50
5.0.30.0230.0638.27
5.0.20.0430.0338.23
5.0.10.0470.0378.24
5.0.00.0430.0508.24
4.4.90.0470.0306.02
4.4.80.0330.0305.88
4.4.70.0370.0235.88
4.4.60.0430.0275.90
4.4.50.0470.0206.02
4.4.40.0270.0475.93
4.4.30.0370.0305.89
4.4.20.0470.0205.94
4.4.10.0300.0305.98
4.4.00.0230.0406.04
4.3.110.0370.0235.85
4.3.100.0300.0305.84
4.3.90.0270.0305.78
4.3.80.0270.0475.88
4.3.70.0300.0275.77
4.3.60.0270.0235.83
4.3.50.0300.0205.79
4.3.40.0330.0305.80
4.3.30.0230.0175.32
4.3.20.0170.0235.32
4.3.10.0130.0275.32
4.3.00.0000.0236.91

preferences:
106.51 ms | 400 KiB | 5 Q