3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface foo { public function generate($length = null); } class bar implements foo { public function generate($length = 16) { echo 'generate'; } } $bar = new bar(); $bar->generate();

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.0210.00018.31
8.3.50.0120.00922.00
8.3.40.0090.00918.79
8.3.30.0100.00719.10
8.3.20.0040.00420.16
8.3.10.0080.00020.53
8.3.00.0060.00319.25
8.2.180.0160.00316.63
8.2.170.0140.00022.96
8.2.160.0070.00719.25
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00422.29
8.2.110.0060.00320.16
8.2.100.0090.00318.09
8.2.90.0080.00019.13
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0060.00318.21
8.2.30.0080.00019.11
8.2.20.0040.00417.69
8.2.10.0040.00417.96
8.2.00.0030.00617.54
8.1.280.0070.01025.92
8.1.270.0040.00423.97
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00323.84
8.1.230.0080.00419.08
8.1.220.0050.00317.79
8.1.210.0050.00318.77
8.1.200.0060.00617.34
8.1.190.0050.00317.23
8.1.180.0060.00318.10
8.1.170.0030.00518.63
8.1.160.0000.00721.95
8.1.150.0040.00418.90
8.1.140.0040.00417.48
8.1.130.0040.00417.83
8.1.120.0070.00017.46
8.1.110.0030.00617.32
8.1.100.0000.00717.33
8.1.90.0030.00317.49
8.1.80.0040.00417.36
8.1.70.0000.00817.36
8.1.60.0030.00517.50
8.1.50.0060.00317.43
8.1.40.0000.00817.40
8.1.30.0040.00417.59
8.1.20.0060.00317.55
8.1.10.0030.00617.45
8.1.00.0000.00817.54
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0030.00318.48
8.0.270.0000.00817.28
8.0.260.0000.00617.26
8.0.250.0070.00016.87
8.0.240.0060.00016.97
8.0.230.0040.00416.87
8.0.220.0000.00716.94
8.0.210.0000.00716.83
8.0.200.0030.00316.96
8.0.190.0050.00316.98
8.0.180.0040.00416.81
8.0.170.0000.00716.80
8.0.160.0000.00716.77
8.0.150.0030.00316.85
8.0.140.0040.00416.74
8.0.130.0070.00013.40
8.0.120.0040.00416.85
8.0.110.0070.00016.90
8.0.100.0030.00416.84
8.0.90.0050.00216.77
8.0.80.0100.01316.86
8.0.70.0000.00816.97
8.0.60.0040.00416.73
8.0.50.0000.00716.72
8.0.30.0060.01316.99
8.0.20.0160.00317.40
8.0.10.0030.00616.83
8.0.00.0130.00816.74
7.4.330.0000.00515.02
7.4.320.0060.00016.66
7.4.300.0030.00316.58
7.4.290.0030.00616.41
7.4.280.0040.00416.41
7.4.270.0030.00316.61
7.4.260.0000.00716.42
7.4.250.0080.00016.47
7.4.240.0030.00316.47
7.4.230.0060.00016.62
7.4.220.0070.01016.45
7.4.210.0030.01016.49
7.4.200.0070.00016.59
7.4.160.0070.01416.36
7.4.150.0120.00617.40
7.4.140.0120.00617.86
7.4.130.0110.00716.47
7.4.120.0090.00816.43
7.4.110.0130.00616.50
7.4.100.0070.01016.58
7.4.90.0030.01416.70
7.4.80.0130.00318.80
7.4.70.0110.01216.39
7.4.60.0120.00316.42
7.4.50.0080.00016.41
7.4.40.0040.01416.62
7.4.30.0060.00916.48
7.4.10.0090.00715.00
7.4.00.0050.00715.02
7.3.330.0030.00313.24
7.3.320.0050.00013.24
7.3.310.0000.00716.24
7.3.300.0000.00716.25
7.3.290.0040.01116.20
7.3.280.0110.00816.22
7.3.270.0110.00717.40
7.3.260.0040.01316.58
7.3.250.0100.00716.30
7.3.240.0100.01416.38
7.3.230.0090.00616.39
7.3.210.0180.00616.24
7.3.200.0040.01419.39
7.3.190.0070.01416.33
7.3.180.0070.01016.38
7.3.170.0000.01716.49
7.3.160.0070.00716.16
7.3.130.0050.01214.51
7.3.120.0080.00814.67
7.3.110.0080.01014.84
7.3.100.0070.00714.75
7.3.90.0050.00714.55
7.3.80.0100.00214.75
7.3.70.0060.00714.70
7.3.60.0050.00814.65
7.3.50.0080.00714.47
7.3.40.0060.00714.70
7.3.30.0040.00914.64
7.3.20.0080.00616.60
7.3.10.0050.00416.40
7.3.00.0080.00616.40
7.2.330.0130.00316.68
7.2.320.0080.00816.37
7.2.310.0100.00716.57
7.2.300.0100.01316.57
7.2.290.0100.01116.77
7.2.260.0080.00814.93
7.2.250.0090.00914.91
7.2.240.0090.00715.02
7.2.230.0060.00914.88
7.2.220.0060.00915.05
7.2.210.0060.00714.77
7.2.200.0070.00815.06
7.2.190.0000.01314.81
7.2.180.0040.01014.90
7.2.170.0020.01215.02
7.2.160.0020.00914.94
7.2.150.0110.00416.90
7.2.140.0050.01016.81
7.2.130.0060.00916.88
7.2.120.0050.00816.77
7.2.110.0090.00316.70
7.2.100.0040.01016.83
7.2.90.0070.00916.76
7.2.80.0060.00816.79
7.2.70.0070.00716.89
7.2.60.0070.00916.76
7.2.50.0030.01116.79
7.2.40.0060.00916.82
7.2.30.0050.00916.90
7.2.20.0100.00516.82
7.2.10.0090.00616.78
7.2.00.0050.00917.50
7.1.330.0070.00515.72
7.1.320.0090.00415.66
7.1.310.0050.00815.63
7.1.300.0090.00415.63
7.1.290.0020.01215.58
7.1.280.0080.00615.60
7.1.270.0120.00315.49
7.1.260.0080.00615.75
7.1.250.0030.00915.73
7.1.240.0050.00715.69
7.1.230.0080.00615.56
7.1.220.0030.00815.67
7.1.210.0040.01115.68
7.1.200.0070.00515.78
7.1.190.0070.00515.70
7.1.180.0080.00615.76
7.1.170.0040.00715.58
7.1.160.0050.00815.67
7.1.150.0060.00615.71
7.1.140.0010.01015.54
7.1.130.0020.00915.77
7.1.120.0060.00715.68
7.1.110.0050.00715.71
7.1.100.0040.00916.19
7.1.90.0090.00415.52
7.1.80.0080.00515.74
7.1.70.0060.00515.97
7.1.60.0050.00916.54
7.1.50.0060.01116.03
7.1.40.0020.01115.62
7.1.30.0100.00615.67
7.1.20.0060.00515.79
7.1.10.0050.00415.56
7.1.00.0060.02417.29
7.0.330.0070.00715.35
7.0.320.0070.00615.28
7.0.310.0040.00715.31
7.0.300.0040.00815.25
7.0.290.0090.00115.19
7.0.280.0060.00815.29
7.0.270.0070.00715.17
7.0.260.0070.00415.26
7.0.250.0100.00415.26
7.0.240.0070.00415.36
7.0.230.0060.00715.33
7.0.220.0040.00715.25
7.0.210.0050.00615.41
7.0.200.0050.00615.54
7.0.190.0040.01015.26
7.0.180.0050.01015.32
7.0.170.0060.00615.17
7.0.160.0080.00615.40
7.0.150.0080.00315.32
7.0.140.0050.02516.92
7.0.130.0030.00815.34
7.0.120.0040.00915.22
7.0.110.0040.00915.29
7.0.100.0070.00715.26
7.0.90.0040.00915.31
7.0.80.0050.00815.32
7.0.70.0060.00715.40
7.0.60.0050.02416.50
7.0.50.0060.02015.86
7.0.40.0040.02215.10
7.0.30.0080.01815.00
7.0.20.0070.02615.04
7.0.10.0070.02615.12
7.0.00.0060.01715.06
5.6.400.0050.00914.25
5.6.390.0080.00914.33
5.6.380.0080.00714.43
5.6.370.0040.00714.33
5.6.360.0050.00714.16
5.6.350.0020.00714.42
5.6.340.0070.00714.53
5.6.330.0060.00814.33
5.6.320.0020.00914.27
5.6.310.0070.00814.47
5.6.300.0070.00614.40
5.6.290.0080.00414.33
5.6.280.0050.02416.12
5.6.270.0010.01114.31
5.6.260.0050.01014.32
5.6.250.0040.00814.34
5.6.240.0060.00614.28
5.6.230.0030.01014.28
5.6.220.0050.00914.39
5.6.210.0040.02915.91
5.6.200.0070.02615.29
5.6.190.0080.02615.90
5.6.180.1020.01715.80
5.6.170.0090.02015.93
5.6.160.0040.01515.92
5.6.150.0060.01715.27
5.6.140.0060.02515.20
5.6.130.0050.02215.21
5.6.120.0050.02115.97
5.6.110.0090.02515.86
5.6.100.0060.02916.00
5.6.90.0050.02515.93
5.6.80.0100.02315.77
5.6.70.1090.01615.74
5.6.60.0040.00914.33
5.6.50.0100.00314.35
5.6.40.0070.00314.10
5.6.30.0030.01014.28
5.6.20.0020.01114.11
5.6.10.0070.00714.28
5.6.00.0040.00914.23
5.5.380.0040.00814.31
5.5.370.0050.00814.27
5.5.360.0060.00814.02
5.5.350.0070.02515.68
5.5.340.0040.01715.23
5.5.330.0070.02515.70
5.5.320.0110.01415.76
5.5.310.0110.01715.70
5.5.300.0070.02615.05
5.5.290.0080.02415.16
5.5.280.0080.01915.78
5.5.270.0070.02915.80
5.5.260.0040.03015.90
5.5.250.0080.01915.83
5.5.240.0060.01515.62
5.5.230.0070.01014.24
5.5.220.0010.01214.10
5.5.210.0020.01014.07
5.5.200.0060.00414.27
5.5.190.0030.01014.14
5.5.180.0050.00814.15
5.5.170.0030.00814.23
5.5.160.0060.00814.34
5.5.150.0070.00614.20
5.5.140.0090.00314.20
5.5.130.0060.00813.90
5.5.120.0060.00814.12
5.5.110.0030.00514.06
5.5.100.0070.00514.29
5.5.90.0040.00714.20
5.5.80.0060.00614.19
5.5.70.0020.01014.07
5.5.60.0020.00914.13
5.5.50.0040.00614.06
5.5.40.0030.01014.16
5.5.30.0050.00614.15
5.5.20.0030.00914.08
5.5.10.0030.00914.02
5.5.00.0040.01014.05
5.4.450.0050.01513.94
5.4.440.0210.01914.00
5.4.430.0280.01713.95
5.4.420.0180.00714.03
5.4.410.0210.00413.95
5.4.400.0200.00513.87
5.4.390.0180.00513.88
5.4.380.0110.01713.80
5.4.370.0090.01713.83
5.4.360.0170.02113.85
5.4.350.0120.01813.82
5.4.340.0160.01613.70
5.4.330.0030.00512.06
5.4.320.0070.01112.23
5.4.310.0040.01512.29
5.4.300.0060.01512.29
5.4.290.0040.01612.25
5.4.280.0040.01612.20
5.4.270.0040.01312.25
5.4.260.0060.01412.30
5.4.250.0040.01712.18
5.4.240.0050.01512.24
5.4.230.0050.01412.25
5.4.220.0050.01512.14
5.4.210.0070.01112.22
5.4.200.0050.01412.17
5.4.190.0030.01512.15
5.4.180.0030.01512.25
5.4.170.0070.01012.16
5.4.160.0050.01312.18
5.4.150.0020.01512.24
5.4.140.0050.01312.14
5.4.130.0040.01412.21
5.4.120.0030.01212.13
5.4.110.0050.01212.14
5.4.100.0040.01312.14
5.4.90.0050.01212.08
5.4.80.0050.01512.07
5.4.70.0050.01912.09
5.4.60.0050.01512.09
5.4.50.0040.01512.11
5.4.40.0040.01312.13
5.4.30.0050.01312.13
5.4.20.0040.01212.15
5.4.10.0040.01412.12
5.4.00.0040.01412.01
5.3.290.0050.04312.80
5.3.280.0080.03612.71
5.3.270.0060.03912.72
5.3.260.0070.04412.72
5.3.250.0070.04312.71
5.3.240.0110.03212.72
5.3.230.0080.03612.71
5.3.220.0040.03912.68
5.3.210.0090.03712.68
5.3.200.0060.03712.68
5.3.190.0040.04212.67
5.3.180.0070.04712.67
5.3.170.0080.03312.67
5.3.160.0030.04012.68
5.3.150.0070.03612.67
5.3.140.0090.03912.66
5.3.130.0110.04812.66
5.3.120.0090.03712.65
5.3.110.0050.04012.66
5.3.100.0060.03712.13
5.3.90.0080.03512.10
5.3.80.0030.03912.10
5.3.70.0080.04312.10
5.3.60.0070.03812.08
5.3.50.0040.03712.03
5.3.40.0100.03712.03
5.3.30.0070.03811.98
5.3.20.0050.03611.77
5.3.10.0020.03811.73
5.3.00.0050.04011.72
5.2.170.0050.0309.22
5.2.160.0070.0269.23
5.2.150.0030.0339.23
5.2.140.0050.0319.22
5.2.130.0080.0389.18
5.2.120.0040.0289.18
5.2.110.0020.0329.19
5.2.100.0050.0339.18
5.2.90.0090.0269.18
5.2.80.0040.0329.18
5.2.70.0070.0329.17
5.2.60.0060.0319.13
5.2.50.0020.0349.10
5.2.40.0050.0279.07
5.2.30.0050.0299.05
5.2.20.0060.0279.04
5.2.10.0060.0278.94
5.2.00.0040.0348.80
5.1.60.0070.0308.09
5.1.50.0010.0288.09
5.1.40.0040.0258.07
5.1.30.0050.0298.41
5.1.20.0050.0348.44
5.1.10.0020.0298.17
5.1.00.0060.0258.17
5.0.50.0050.0216.64
5.0.40.0050.0236.50
5.0.30.0060.0306.32
5.0.20.0040.0196.28
5.0.10.0060.0196.26
5.0.00.0020.0326.25
4.4.90.0040.0144.78
4.4.80.0070.0224.75
4.4.70.0030.0154.76
4.4.60.0030.0214.76
4.4.50.0040.0144.77
4.4.40.0040.0254.71
4.4.30.0030.0154.76
4.4.20.0040.0194.84
4.4.10.0030.0154.85
4.4.00.0010.0264.76
4.3.110.0040.0164.67
4.3.100.0030.0154.67
4.3.90.0010.0164.63
4.3.80.0020.0254.58
4.3.70.0030.0144.63
4.3.60.0030.0164.62
4.3.50.0010.0164.63
4.3.40.0030.0254.54
4.3.30.0010.0173.28
4.3.20.0010.0173.26
4.3.10.0040.0173.22
4.3.00.0200.03016.39

preferences:
50.67 ms | 401 KiB | 5 Q