3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (['a', 'b', 'c'] as $val) { echo 'Hello ' . $val . PHP_EOL; }

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.140.0110.00418.95
8.3.130.0040.00418.15
8.3.120.0130.00320.60
8.3.110.0000.00820.94
8.3.100.0080.00024.06
8.3.90.0140.00426.77
8.3.80.0110.00018.31
8.3.70.0100.00716.58
8.3.60.0120.00318.03
8.3.50.0140.00518.13
8.3.40.0090.00618.45
8.3.30.0160.00418.63
8.3.20.0040.00418.85
8.3.10.0040.00421.77
8.3.00.0080.00023.66
8.2.250.0110.00316.30
8.2.240.0120.00317.13
8.2.230.0080.00022.58
8.2.220.0030.00637.54
8.2.210.0100.00326.77
8.2.200.0070.00316.25
8.2.190.0130.01016.58
8.2.180.0090.00918.04
8.2.170.0070.00718.96
8.2.160.0140.00322.96
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00726.16
8.2.110.0030.00621.12
8.2.100.0080.00317.66
8.2.90.0000.00817.84
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0050.00517.38
8.2.50.0030.00617.50
8.2.40.0040.00419.34
8.2.30.0000.00719.23
8.2.20.0070.00017.92
8.2.10.0040.00417.89
8.2.00.0040.00319.34
8.1.300.0150.00317.81
8.1.290.0030.00730.84
8.1.280.0110.00425.92
8.1.270.0000.00922.16
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0100.00021.15
8.1.230.0090.00320.94
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0030.00717.37
8.1.190.0000.00917.10
8.1.180.0060.00318.10
8.1.170.0060.00318.64
8.1.160.0040.00418.82
8.1.150.0030.00518.85
8.1.140.0000.00717.57
8.1.130.0030.00317.30
8.1.120.0000.00717.41
8.1.110.0030.00517.43
8.1.100.0070.00017.41
8.1.90.0080.00017.37
8.1.80.0040.00417.26
8.1.70.0000.00717.37
8.1.60.0040.00417.57
8.1.50.0000.00917.48
8.1.40.0000.00817.34
8.1.30.0080.00417.51
8.1.20.0000.00817.40
8.1.10.0040.00417.38
8.1.00.0000.00817.30
8.0.300.0030.00320.09
8.0.290.0040.00416.75
8.0.280.0000.00718.40
8.0.270.0030.00317.31
8.0.260.0070.00016.80
8.0.250.0070.00016.93
8.0.240.0000.00716.88
8.0.230.0000.00716.85
8.0.220.0030.00516.76
8.0.210.0030.00316.88
8.0.200.0060.00016.86
8.0.190.0030.00316.91
8.0.180.0030.00516.82
8.0.170.0030.00616.78
8.0.160.0050.00316.91
8.0.150.0050.00216.65
8.0.140.0000.00716.75
8.0.130.0000.00613.24
8.0.120.0040.00416.77
8.0.110.0060.00316.91
8.0.100.0000.00716.77
8.0.90.0070.00016.67
8.0.80.0110.01116.88
8.0.70.0020.00516.67
8.0.60.0000.00716.80
8.0.50.0020.00516.64
8.0.30.0080.00917.05
8.0.20.0130.00617.40
8.0.10.0030.00516.80
8.0.00.0090.01016.71
7.4.330.0040.00015.55
7.4.320.0070.00016.30
7.4.300.0000.00616.26
7.4.290.0040.00416.45
7.4.280.0000.00816.31
7.4.270.0020.00516.22
7.4.260.0070.00016.42
7.4.250.0070.00016.18
7.4.240.0070.00016.50
7.4.230.0030.00316.55
7.4.220.0040.00416.25
7.4.210.0000.01316.45
7.4.200.0000.00716.46
7.4.160.0090.00716.39
7.4.140.0100.00917.86
7.4.130.0030.01416.33
7.4.120.0090.01116.48
7.4.110.0050.01216.31
7.4.100.0090.00816.09
7.4.90.0120.00616.21
7.4.80.0120.00817.38
7.4.70.0100.00916.50
7.4.60.0070.01116.30
7.4.50.0070.00916.33
7.4.40.0080.01016.39
7.4.30.0030.01516.24
7.4.20.0110.00716.07
7.4.10.0190.00316.16
7.4.00.0060.01215.82
7.3.330.0000.00513.01
7.3.320.0060.00013.05
7.3.310.0070.00016.08
7.3.300.0030.00316.27
7.3.290.0000.00616.27
7.3.280.0090.00916.23
7.3.260.0110.00816.47
7.3.240.0090.01016.41
7.3.230.0120.00516.29
7.3.220.0130.00516.30
7.3.210.0110.00616.22
7.3.200.0070.01016.38
7.3.190.0100.00916.36
7.3.180.0070.01016.29
7.3.170.0090.00816.41
7.3.160.0110.00816.21
7.3.150.0090.00916.23
7.3.140.0110.00616.33
7.3.130.0080.01116.36
7.3.120.0140.00516.41
7.3.110.0060.01116.31
7.3.100.0090.00916.19
7.3.90.0080.00916.46
7.3.80.0110.00716.35
7.3.70.0080.01016.38
7.3.60.0130.00616.19
7.3.50.0080.00916.37
7.3.40.0080.00816.35
7.3.30.0080.00916.20
7.3.20.1710.00715.71
7.3.10.2780.01315.77
7.3.00.1870.00315.74
7.2.340.0090.01116.43
7.2.330.0120.00716.54
7.2.320.0120.00716.75
7.2.310.0060.01316.42
7.2.300.0110.00716.40
7.2.290.0120.00616.55
7.2.280.0090.01216.42
7.2.270.0090.00916.52
7.2.260.0100.01016.62
7.2.250.0090.01116.49
7.2.240.0110.01016.69
7.2.230.0090.00816.50
7.2.220.0090.00816.34
7.2.210.0130.00716.62
7.2.200.0090.01016.49
7.2.190.0120.00816.40
7.2.180.0070.01116.50
7.2.170.0090.01016.54
7.2.160.0090.01116.43
7.2.150.2010.00915.99
7.2.140.2370.00516.01
7.2.130.2100.00815.90
7.2.120.0120.01015.96
7.2.110.0200.00615.99
7.2.100.0950.00815.99
7.2.90.0130.01215.90
7.2.80.1000.01416.04
7.2.70.0770.00815.75
7.2.60.0940.00815.75
7.2.50.0620.01315.60
7.2.40.0530.01215.68
7.2.30.0560.01015.68
7.2.20.0540.00815.66
7.2.10.0630.00815.69
7.2.00.0430.01015.62
7.1.330.0240.01015.53
7.1.320.0270.00415.47
7.1.310.0230.00815.43
7.1.300.0260.00715.47
7.1.290.0240.00815.45
7.1.280.0180.01315.43
7.1.270.0260.00515.63
7.1.260.0210.01015.38
7.1.250.2550.01014.93
7.1.240.0370.01014.94
7.1.230.1720.01114.86
7.1.220.1380.01014.98
7.1.210.1170.01014.87
7.1.200.0190.00715.13
7.1.190.0880.01114.89
7.1.180.1080.01114.87
7.1.170.0590.00914.64
7.1.160.0590.00714.58
7.1.150.0660.01114.56
7.1.140.0560.01014.63
7.1.130.0670.01014.61
7.1.120.0570.00914.62
7.1.110.0740.00614.70
7.1.100.0530.01014.68
7.1.90.0610.00814.58
7.1.80.0470.00614.67
7.1.70.0390.01114.60
7.1.60.0400.01019.17
7.1.50.0510.00519.16
7.1.40.0420.01019.17
7.1.30.0400.01419.07
7.1.20.0420.01019.15
7.1.10.0420.00414.61
7.1.00.0350.00814.62
7.0.330.0370.00714.72
7.0.320.1410.00714.51
7.0.310.0910.00614.61
7.0.300.0700.00814.29
7.0.290.0710.00814.48
7.0.280.0640.01014.61
7.0.270.0800.00714.45
7.0.260.1050.00514.62
7.0.250.0780.00514.68
7.0.240.0680.00614.63
7.0.230.0400.00814.69
7.0.220.0370.00914.64
7.0.210.0380.01014.75
7.0.200.0390.00614.67
7.0.190.0360.00914.70
7.0.180.0320.01214.52
7.0.170.0380.00714.67
7.0.160.0470.01014.59
7.0.150.0400.00514.53
7.0.140.0300.00914.67
7.0.130.0320.01114.69
7.0.120.0380.01214.68
7.0.110.0400.00814.64
7.0.100.0330.01014.72
7.0.90.0410.00714.63
7.0.80.1470.01114.72
7.0.70.0300.01214.66
7.0.60.0320.00814.59
7.0.50.0280.01114.64
7.0.40.0410.00614.66
7.0.30.0350.00814.56
7.0.20.0300.01014.67
7.0.10.0280.01114.68
7.0.00.0300.00814.60
5.6.400.0240.00815.92
5.6.390.0210.00815.88
5.6.380.0130.01515.31
5.6.370.0190.00815.46
5.6.360.0150.01415.26
5.6.350.0200.01015.51
5.6.340.0170.00915.30
5.6.330.0220.00415.43
5.6.320.0170.01115.31
5.6.310.0180.01015.30
5.6.300.0180.00815.06
5.6.290.0220.00715.42
5.6.280.0190.01015.22
5.6.270.0140.01715.30
5.6.260.0210.00815.32
5.6.250.0200.01015.46
5.6.240.0140.01215.32
5.6.230.0190.00715.32
5.6.220.0180.01115.35
5.6.210.0180.01215.22
5.6.200.0200.01115.31
5.6.190.0210.00915.34
5.6.180.0200.01115.42
5.6.170.0240.01015.37
5.6.160.0180.00915.39
5.6.150.0130.01315.41
5.6.140.0230.00415.42
5.6.130.0200.00715.30
5.6.120.0190.00815.40
5.6.110.0220.00815.25
5.6.100.0140.01015.17
5.6.90.0230.00815.28
5.6.80.0260.00315.35
5.6.70.0180.00915.27
5.6.60.0150.01615.24
5.6.50.0170.01215.18
5.6.40.0150.01215.30
5.6.30.0200.00815.36
5.6.20.0210.00915.27
5.6.10.0160.00815.30
5.6.00.0220.00515.20

preferences:
17.52 ms | 403 KiB | 5 Q