3v4l.org

run code in 200+ PHP versions simultaneously
<?php function foo(): string { return ''; } foo();

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)
7.4.00.0080.01014.87
7.3.120.0030.01714.71
7.3.110.0090.00914.61
7.3.100.0100.00714.70
7.3.90.0060.00914.45
7.3.80.0080.00514.70
7.3.70.0050.00614.51
7.3.60.0100.00414.76
7.3.50.0060.00814.54
7.3.40.0050.00914.63
7.3.30.0060.00714.79
7.3.20.0310.00715.70
7.3.10.0370.00615.58
7.3.00.0320.00715.57
7.2.250.0070.01014.71
7.2.240.0040.01514.79
7.2.230.0030.00914.68
7.2.220.0080.00414.86
7.2.210.0070.00814.64
7.2.200.0080.00814.90
7.2.190.0110.00614.78
7.2.180.0090.00714.89
7.2.170.0070.00614.87
7.2.160.0080.00814.87
7.2.150.0540.00615.31
7.2.140.0640.00715.39
7.2.130.0330.00615.54
7.2.120.0570.00715.63
7.2.110.0390.00615.59
7.2.100.0320.00815.61
7.2.90.0300.00815.53
7.2.80.0370.00515.50
7.2.70.0360.00915.47
7.2.60.0300.01015.75
7.2.50.0310.01015.64
7.2.40.0530.00915.88
7.2.30.0460.00915.97
7.2.20.0320.01115.92
7.2.10.0500.01015.92
7.2.00.0530.00816.00
7.1.330.0070.00715.43
7.1.320.0070.00415.63
7.1.310.0120.00514.67
7.1.300.0070.00914.94
7.1.290.0130.00415.03
7.1.280.0130.00214.95
7.1.270.0050.01114.97
7.1.260.0090.00514.94
7.1.250.0520.01014.51
7.1.240.0390.01114.15
7.1.230.0440.01014.13
7.1.220.0530.00914.18
7.1.210.0460.00914.10
7.1.200.0370.01014.46
7.1.190.0500.00514.22
7.1.180.0560.00314.03
7.1.170.0520.00814.13
7.1.160.0580.01014.57
7.1.150.0680.00814.65
7.1.140.0620.00814.71
7.1.130.0330.01114.68
7.1.120.0540.01114.76
7.1.110.0580.00914.53
7.1.100.0450.00914.51
7.1.90.0430.01114.64
7.1.80.0510.00614.67
7.1.70.0310.01014.31
7.1.60.0650.00818.06
7.1.50.0550.00917.95
7.1.40.0810.01017.90
7.1.30.0530.00917.85
7.1.20.0290.01117.91
7.1.10.0480.01014.14
7.1.00.0450.01214.29
7.0.330.0450.00713.81
7.0.320.0590.00713.43
7.0.310.0850.01113.38
7.0.300.0520.00913.40
7.0.290.0780.01514.45
7.0.280.0560.00913.42
7.0.270.0810.01114.27
7.0.260.0720.01114.42
7.0.250.0670.01114.27
7.0.240.0850.01014.20
7.0.230.0630.01014.19
7.0.220.0570.00614.08
7.0.210.0600.00813.85
7.0.200.0660.00913.78
7.0.190.0560.01113.69
7.0.180.0670.00613.59
7.0.170.0480.00913.67
7.0.160.0590.01013.71
7.0.150.0570.01113.69
7.0.140.0710.00613.77
7.0.130.0520.01313.89
7.0.120.0420.00913.82
7.0.110.1190.01113.81
7.0.100.0580.01113.83
7.0.90.0590.00913.70
7.0.80.0540.01113.83
7.0.70.0540.01213.63
7.0.60.0620.00913.84
7.0.50.0560.01013.71
7.0.40.0280.01213.85
7.0.30.0560.00714.00
7.0.20.0570.00813.77
7.0.10.0630.00713.81
7.0.00.0640.00813.80
5.6.400.0120.01014.21
5.6.390.0160.00614.09
5.6.380.0130.01114.08
5.6.370.0140.00914.24
5.6.360.0150.01114.03
5.6.350.0160.00714.08
5.6.340.0130.00813.94
5.6.330.0190.00914.00
5.6.320.0170.00914.05
5.6.310.0150.00914.11
5.6.300.0190.02616.36
5.6.290.0170.02816.40
5.6.280.0190.02916.38
5.6.270.0180.03016.41
5.6.260.0130.03416.30
5.6.250.0190.02616.48
5.6.240.0170.03716.46
5.6.230.0170.02816.37
5.6.220.0180.03016.28
5.6.210.0160.02516.19
5.6.200.0160.02816.29
5.6.190.0160.03116.26
5.6.180.0090.02816.24
5.6.170.0140.03416.26
5.6.160.0180.02816.18
5.6.150.0160.03016.26
5.6.140.0140.03416.24
5.6.130.0160.03316.23
5.6.120.0180.03316.29
5.6.110.0150.03016.23
5.6.100.0170.02816.26
5.6.90.0160.02816.29
5.6.80.0170.02215.98
5.6.70.0150.02815.91
5.6.60.0150.02716.06
5.6.50.0160.03016.01
5.6.40.0210.02216.10
5.6.30.0160.03116.05
5.6.20.0150.03316.06
5.6.10.0130.02816.02
5.6.00.0160.03116.01
5.5.380.0140.02914.15
5.5.370.0160.02814.21
5.5.360.0140.02613.98
5.5.350.0140.02314.07
5.5.340.0200.02514.20
5.5.330.0160.02714.25
5.5.320.0160.03114.18
5.5.310.0100.03414.29
5.5.300.0170.02814.35
5.5.290.0180.02414.36
5.5.280.0110.02914.25
5.5.270.0170.02914.26
5.5.260.0110.03214.34
5.5.250.0150.02614.27
5.5.240.0100.02713.97
5.5.230.0120.03113.86
5.5.220.0130.02613.97
5.5.210.0130.02413.89
5.5.200.0170.02113.91
5.5.190.0140.02313.84
5.5.180.0190.02714.05
5.5.170.0080.01012.41
5.5.160.0120.03014.10
5.5.150.0160.02713.83
5.5.140.0160.02614.15
5.5.130.0160.02914.05
5.5.120.0120.02913.98
5.5.110.0150.02313.95
5.5.100.0140.02714.00
5.5.90.0140.02014.11
5.5.80.0120.02814.02
5.5.70.0180.02513.88
5.5.60.0140.02313.90
5.5.50.0140.03314.09
5.5.40.0180.01814.08
5.5.30.0160.02713.92
5.5.20.0140.02913.96
5.5.10.0140.02814.01
5.5.00.0150.02813.94
5.4.450.0130.02913.57
5.4.440.0150.02713.79
5.4.430.0120.02913.58
5.4.420.0140.02713.63
5.4.410.0110.02713.64
5.4.400.0080.02413.45
5.4.390.0150.02913.36
5.4.380.0140.02513.46
5.4.370.0130.02813.44
5.4.360.0120.02913.59
5.4.350.0090.03113.46
5.4.340.0140.02613.39
5.4.330.0080.00910.92
5.4.320.0110.02313.54
5.4.310.0210.02313.47
5.4.300.0120.02513.43
5.4.290.0140.02513.54
5.4.280.0150.02813.38
5.4.270.0100.03313.48
5.4.260.0130.02413.51
5.4.250.0120.02313.39
5.4.240.0150.02913.38
5.4.230.0170.02513.58
5.4.220.0100.02713.38
5.4.210.0120.02513.41
5.4.200.0140.02313.58
5.4.190.0170.02313.38
5.4.180.0180.02213.52
5.4.170.0140.02413.56
5.4.160.0160.02913.45
5.4.150.0120.02413.43
5.4.140.0180.02212.79
5.4.130.0150.02512.77
5.4.120.0130.02212.51
5.4.110.0130.02412.76
5.4.100.0150.02212.72
5.4.90.0130.02612.61
5.4.80.0120.02512.65
5.4.70.0160.02012.77
5.4.60.0120.02312.70
5.4.50.0120.02112.71
5.4.40.0100.02112.64
5.4.30.0110.02512.46
5.4.20.0150.02112.73
5.4.10.0170.02012.68
5.4.00.0170.02112.48
5.3.290.0120.02211.87
5.3.280.0130.02411.75
5.3.270.0150.02411.66
5.3.260.0160.02211.76
5.3.250.0130.02311.74
5.3.240.0120.02711.74
5.3.230.0110.02611.73
5.3.220.0110.02311.74
5.3.210.0110.02311.77
5.3.200.0160.02511.69
5.3.190.0190.02011.71
5.3.180.0110.02511.83
5.3.170.0130.02511.74
5.3.160.0130.02011.81
5.3.150.0100.02411.89
5.3.140.0110.02711.72
5.3.130.0120.03011.71
5.3.120.0130.03011.73
5.3.110.0090.02811.69
5.3.100.0070.02711.52
5.3.90.0120.02611.56
5.3.80.0090.02511.52
5.3.70.0130.02711.57
5.3.60.0100.02911.54
5.3.50.0090.02211.55
5.3.40.0140.02011.54
5.3.30.0150.01811.50
5.3.20.0100.02511.36
5.3.10.0120.01911.14
5.3.00.0150.02311.09
5.2.170.0100.0229.98
5.2.160.0090.02310.04
5.2.150.0090.0229.97
5.2.140.0070.0249.84
5.2.130.0110.0179.92
5.2.120.0110.01410.01
5.2.110.0120.0179.95
5.2.100.0100.0229.95
5.2.90.0130.01810.03
5.2.80.0080.0259.83
5.2.70.0090.0229.95
5.2.60.0090.0189.86
5.2.50.0100.0219.86
5.2.40.0120.0199.86
5.2.30.0100.0219.92
5.2.20.0080.0219.80
5.2.10.0120.0169.68
5.2.00.0120.0209.77
5.1.60.0070.0169.25
5.1.50.0100.0179.20
5.1.40.0060.0159.38
5.1.30.0120.0149.46
5.1.20.0090.0179.39
5.1.10.0080.0189.30
5.1.00.0080.0169.17
5.0.50.0030.0178.53
5.0.40.0060.0168.51
5.0.30.0090.0188.51
5.0.20.0090.0128.51
5.0.10.0070.0138.51
5.0.00.0090.0198.51
4.4.90.0060.0098.51
4.4.80.0060.0108.51
4.4.70.0050.0128.51
4.4.60.0070.0098.51
4.4.50.0060.0138.51
4.4.40.0070.0168.51
4.4.30.0050.0098.51
4.4.20.0080.0108.51
4.4.10.0080.0098.51
4.4.00.0070.0148.51
4.3.110.0070.0118.51
4.3.100.0060.0118.51
4.3.90.0080.0088.51
4.3.80.0060.0158.51
4.3.70.0050.0118.51
4.3.60.0060.0098.51
4.3.50.0050.0148.51
4.3.40.0040.0168.51
4.3.30.0060.0108.51
4.3.20.0040.0118.51
4.3.10.0050.0118.51
4.3.00.0020.0138.51