3v4l.org

run code in 200+ PHP versions simultaneously
<?php function foo(): int { return 1; } 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.10.0060.01216.35
7.4.00.0090.00615.67
7.3.130.0140.00716.24
7.3.120.0080.00814.90
7.3.110.0100.00714.96
7.3.100.0070.00814.95
7.3.90.0090.00914.77
7.3.80.0100.00614.85
7.3.70.0100.00714.75
7.3.60.0090.00814.75
7.3.50.0080.00814.76
7.3.40.0090.00714.81
7.3.30.0090.00914.82
7.3.20.0270.00815.44
7.3.10.0200.00915.15
7.3.00.0180.00815.17
7.2.260.0080.01416.32
7.2.250.0120.00416.04
7.2.240.0100.00815.08
7.2.230.0080.00814.99
7.2.220.0070.01014.94
7.2.210.0090.00814.86
7.2.200.0090.00814.89
7.2.190.0080.00914.92
7.2.180.0080.00914.82
7.2.170.0090.00814.87
7.2.160.0090.00914.90
7.2.150.0220.00715.44
7.2.140.0240.00815.42
7.2.130.0130.00715.31
7.2.120.0190.00915.35
7.2.110.0480.00715.30
7.2.100.0280.00815.28
7.2.90.0290.00715.32
7.2.80.0300.00915.33
7.2.70.0270.00815.37
7.2.60.0220.00915.37
7.2.50.0290.00715.41
7.2.40.0310.00915.51
7.2.30.0210.00815.49
7.2.20.0340.00815.48
7.2.10.0300.00815.44
7.2.00.0250.00815.49
7.1.330.0100.00914.30
7.1.320.0100.00614.25
7.1.310.0130.00614.49
7.1.300.0190.00614.40
7.1.290.0120.00814.32
7.1.280.0080.00814.34
7.1.270.0180.00714.31
7.1.260.0200.00714.25
7.1.250.0190.00714.24
7.1.240.0220.00714.11
7.1.230.0200.00714.11
7.1.220.0400.00614.09
7.1.210.0310.00914.09
7.1.200.0280.00814.22
7.1.190.0310.00614.06
7.1.180.0340.00814.03
7.1.170.0350.00914.09
7.1.160.0360.00814.22
7.1.150.0390.00614.35
7.1.140.0210.00814.26
7.1.130.0220.00914.27
7.1.120.0250.01014.23
7.1.110.0250.00714.24
7.1.100.0270.00614.22
7.1.90.0350.00814.18
7.1.80.0380.00714.21
7.1.70.0390.00814.17
7.1.60.0390.00716.75
7.1.50.0250.00816.61
7.1.40.0340.00816.48
7.1.30.0460.00816.68
7.1.20.0410.00816.67
7.1.10.0240.00813.94
7.1.00.0310.00813.99
7.0.330.0190.00813.75
7.0.320.0310.00714.20
7.0.310.0490.00914.17
7.0.300.0450.00914.14
7.0.290.0320.01014.43
7.0.280.0330.00614.10
7.0.270.0280.00714.46
7.0.260.0310.00814.41
7.0.250.0190.00914.35
7.0.240.0190.00714.40
7.0.230.0210.01014.37
7.0.220.0280.00514.40
7.0.210.0520.00914.22
7.0.200.0650.00814.01
7.0.190.0490.00814.06
7.0.180.0380.00714.04
7.0.170.0590.00714.00
7.0.160.0590.00813.95
7.0.150.0440.00713.96
7.0.140.0260.00813.99
7.0.130.0280.00914.01
7.0.120.0490.00913.98
7.0.110.0360.01013.99
7.0.100.0310.00714.01
7.0.90.0300.00914.01
7.0.80.0330.00914.02
7.0.70.0410.00713.93
7.0.60.0240.01013.95
7.0.50.0440.00813.94
7.0.40.0400.00714.04
7.0.30.0470.00613.98
7.0.20.0290.01014.05
7.0.10.0210.00814.12
7.0.00.0230.00914.22
5.6.400.0110.00914.20
5.6.390.0130.00514.24
5.6.380.0110.00814.23
5.6.370.0120.01014.41
5.6.360.0130.00814.35
5.6.350.0140.00814.27
5.6.340.0120.01114.25
5.6.330.0110.00814.10
5.6.320.0080.01214.26
5.6.310.0120.00814.29
5.6.300.0110.01615.05
5.6.290.0110.01815.08
5.6.280.0110.01815.22
5.6.270.0110.01715.15
5.6.260.0130.01415.10
5.6.250.0120.01615.05
5.6.240.0150.01415.12
5.6.230.0140.01515.06
5.6.220.0120.01515.06
5.6.210.0130.01514.99
5.6.200.0140.01515.02
5.6.190.0150.01515.11
5.6.180.0140.01415.14
5.6.170.0120.01415.11
5.6.160.0120.01515.06
5.6.150.0120.01715.11
5.6.140.0140.01515.15
5.6.130.0130.01515.08
5.6.120.0100.01915.05
5.6.110.0130.01615.14
5.6.100.0140.01215.09
5.6.90.0120.01515.22
5.6.80.0110.01514.98
5.6.70.0140.01415.03
5.6.60.0130.01414.85
5.6.50.0110.01614.97
5.6.40.0090.01714.97
5.6.30.0100.01615.01
5.6.20.0100.01714.95
5.6.10.0110.01514.93
5.6.00.0120.01514.95
5.5.380.0130.01314.09
5.5.370.0130.01614.11
5.5.360.0140.01614.02
5.5.350.0120.01814.11
5.5.340.0130.01414.15
5.5.330.0140.01414.18
5.5.320.0140.01514.18
5.5.310.0110.01414.21
5.5.300.0130.01414.12
5.5.290.0140.01614.15
5.5.280.0120.01814.04
5.5.270.0100.01714.09
5.5.260.0120.01514.13
5.5.250.0130.01514.10
5.5.240.0120.01613.95
5.5.230.0120.01614.05
5.5.220.0120.01514.07
5.5.210.0130.01613.92
5.5.200.0100.01513.89
5.5.190.0110.01613.95
5.5.180.0100.02014.01
5.5.170.0120.00713.84
5.5.160.0130.01413.93
5.5.150.0100.01413.96
5.5.140.0140.01014.05
5.5.130.0120.01413.94
5.5.120.0110.01813.95
5.5.110.0100.01613.94
5.5.100.0150.01414.03
5.5.90.0100.01813.92
5.5.80.0130.01513.94
5.5.70.0120.01713.82
5.5.60.0110.01413.81
5.5.50.0110.01513.82
5.5.40.0140.01314.08
5.5.30.0110.01514.00
5.5.20.0130.01313.98
5.5.10.0100.01613.91
5.5.00.0110.01413.84
5.4.450.0100.01412.30
5.4.440.0130.01312.35
5.4.430.0120.01312.34
5.4.420.0090.01412.38
5.4.410.0080.01612.34
5.4.400.0090.01512.28
5.4.390.0120.01412.36
5.4.380.0120.01212.36
5.4.370.0100.01212.25
5.4.360.0100.01212.30
5.4.350.0090.01412.31
5.4.340.0110.01312.22
5.4.330.0090.00411.16
5.4.320.0100.01312.26
5.4.310.0100.01212.25
5.4.300.0070.01512.34
5.4.290.0100.01412.25
5.4.280.0100.01412.30
5.4.270.0080.01612.29
5.4.260.0100.01512.23
5.4.250.0080.01312.17
5.4.240.0090.01312.24
5.4.230.0110.01412.25
5.4.220.0090.01512.23
5.4.210.0070.01712.29
5.4.200.0110.01312.26
5.4.190.0090.01312.33
5.4.180.0100.01212.31
5.4.170.0110.01212.26
5.4.160.0090.01512.27
5.4.150.0070.01612.24
5.4.140.0090.01311.83
5.4.130.0080.01411.96
5.4.120.0090.01611.98
5.4.110.0090.01411.83
5.4.100.0100.01212.00
5.4.90.0080.01311.97
5.4.80.0090.01211.98
5.4.70.0100.01511.96
5.4.60.0080.01311.99
5.4.50.0100.01111.88
5.4.40.0080.01511.98
5.4.30.0090.01411.94
5.4.20.0110.01111.88
5.4.10.0080.01611.97
5.4.00.0110.00911.82
5.3.290.0110.01111.50
5.3.280.0090.01311.49
5.3.270.0090.01311.44
5.3.260.0090.01411.47
5.3.250.0110.01411.47
5.3.240.0110.01311.46
5.3.230.0110.01211.45
5.3.220.0110.01211.46
5.3.210.0090.01311.36
5.3.200.0090.01211.47
5.3.190.0080.01311.47
5.3.180.0090.01111.53
5.3.170.0080.01311.51
5.3.160.0070.01311.51
5.3.150.0110.01111.54
5.3.140.0100.01111.48
5.3.130.0100.01311.42
5.3.120.0090.01311.47
5.3.110.0090.01411.51
5.3.100.0080.01311.34
5.3.90.0080.01311.43
5.3.80.0080.01211.37
5.3.70.0080.01311.38
5.3.60.0100.01111.36
5.3.50.0090.01211.34
5.3.40.0100.01311.39
5.3.30.0070.01411.34
5.3.20.0110.01011.30
5.3.10.0090.01211.25
5.3.00.0090.01011.20
5.2.170.0060.01110.61
5.2.160.0080.01010.55
5.2.150.0080.01010.55
5.2.140.0060.01110.60
5.2.130.0090.00910.56
5.2.120.0080.01110.50
5.2.110.0090.01010.58
5.2.100.0080.00910.56
5.2.90.0080.01010.53
5.2.80.0090.00910.53
5.2.70.0060.01210.50
5.2.60.0100.01010.52
5.2.50.0060.01110.58
5.2.40.0050.01210.56
5.2.30.0080.00910.53
5.2.20.0070.01010.52
5.2.10.0080.00910.50
5.2.00.0060.01210.42
5.1.60.0060.01110.25
5.1.50.0080.00910.23
5.1.40.0080.00710.29
5.1.30.0050.00910.37
5.1.20.0060.01210.34
5.1.10.0080.00710.30
5.1.00.0060.01010.27
5.0.50.0040.00910.01
5.0.40.0050.0099.97
5.0.30.0050.0109.98
5.0.20.0060.0079.97
5.0.10.0060.0069.97
5.0.00.0060.0109.97
4.4.90.0050.0069.97
4.4.80.0040.0079.97
4.4.70.0030.0079.97
4.4.60.0050.0069.97
4.4.50.0060.0049.97
4.4.40.0060.0069.97
4.4.30.0060.0049.97
4.4.20.0050.0059.97
4.4.10.0040.0089.97
4.4.00.0040.0099.97
4.3.110.0050.0069.97
4.3.100.0040.0079.97
4.3.90.0040.0089.97
4.3.80.0050.0079.97
4.3.70.0040.0089.97
4.3.60.0040.0069.97
4.3.50.0050.0059.97
4.3.40.0030.0109.97
4.3.30.0040.0059.97
4.3.20.0050.0059.97
4.3.10.0040.0079.97
4.3.00.0030.0079.97