3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numbers = range(1, 20); shuffle($numbers); foreach ($numbers as $number) { echo "$number "; } ?>

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.2.00.0130.00317.66
8.1.130.0100.00517.36
8.1.120.0100.00517.54
8.1.110.0090.00717.50
8.1.100.0140.00317.54
8.1.90.0140.00317.50
8.1.80.0120.00217.41
8.1.70.0040.00417.55
8.1.60.0080.00417.52
8.1.50.0160.00417.57
8.1.40.0170.00017.68
8.1.30.0050.00717.54
8.1.20.0090.00717.59
8.1.10.0070.00617.45
8.1.00.0070.00817.40
8.0.260.0050.00516.87
8.0.250.0100.00416.87
8.0.240.0090.00316.87
8.0.230.0130.00316.87
8.0.220.0140.00216.87
8.0.210.0110.00416.87
8.0.200.0070.00716.88
8.0.190.0070.00716.87
8.0.180.0150.00016.87
8.0.170.0090.00416.87
8.0.160.0100.00416.85
8.0.150.0070.00616.74
8.0.140.0130.00116.76
8.0.130.0090.00315.89
8.0.120.0080.00715.95
8.0.110.0110.00515.96
8.0.100.0160.00115.91
8.0.90.0090.00615.98
8.0.80.0110.00415.94
8.0.70.0100.00515.92
8.0.60.0100.00415.96
8.0.50.0090.00615.94
8.0.30.0150.00516.00
8.0.20.0130.00516.18
8.0.10.0110.00616.17
8.0.00.0100.00616.26
7.4.330.0100.00316.87
7.4.320.0160.00016.87
7.4.300.0160.00016.87
7.4.290.0080.00816.87
7.4.280.0100.00716.62
7.4.270.0140.00516.66
7.4.260.0140.00715.78
7.4.250.0180.00215.81
7.4.240.0130.00715.80
7.4.230.0160.00415.78
7.4.220.0120.00515.78
7.4.210.0130.00215.75
7.4.200.0090.00715.78
7.4.190.0130.00415.81
7.4.180.0130.00515.84
7.4.160.0140.00715.93
7.4.150.0140.00715.92
7.4.140.0150.00415.86
7.4.130.0160.00415.83
7.4.120.0140.00415.87
7.4.110.0120.00715.73
7.4.100.0140.00415.92
7.4.90.0130.00515.82
7.4.80.0130.00515.83
7.4.70.0120.00715.86
7.4.60.0100.00715.90
7.4.50.0140.00315.88
7.4.40.0080.00715.89
7.4.30.0120.00515.74
7.4.20.0110.00515.81
7.4.10.0120.00515.59
7.4.00.0110.00515.71
7.3.330.0180.00115.58
7.3.320.0130.00615.60
7.3.310.0110.00815.53
7.3.300.0150.00415.61
7.3.290.0160.00315.53
7.3.280.0170.00515.71
7.3.270.0150.00515.71
7.3.260.0140.00515.67
7.3.250.0160.00315.66
7.3.240.0130.00515.69
7.3.230.0140.00615.71
7.3.220.0160.00615.68
7.3.210.0130.00815.70
7.3.200.0190.00415.68
7.3.190.0170.00515.73
7.3.180.0170.00415.75
7.3.170.0170.00415.80
7.3.160.0150.00515.83
7.3.150.0140.00715.77
7.3.140.0150.00515.73
7.3.130.0130.00715.56
7.3.120.0130.00715.51
7.3.110.0110.00915.44
7.3.100.0100.00915.57
7.3.90.0120.00815.77
7.3.80.0130.00615.56
7.3.70.0130.00515.59
7.3.60.0140.00415.64
7.3.50.0110.00715.65
7.3.40.0100.00915.70
7.3.30.0110.00815.57
7.3.20.0160.00716.28
7.3.10.0150.00516.30
7.3.00.0150.00616.36
7.2.340.0140.00615.77
7.2.330.0130.00815.86
7.2.320.0150.00715.82
7.2.310.0180.00315.98
7.2.300.0140.00615.93
7.2.290.0150.00715.92
7.2.280.0150.00615.96
7.2.270.0150.00515.92
7.2.260.0140.00615.66
7.2.250.0130.00615.78
7.2.240.0130.00915.65
7.2.230.0130.00615.73
7.2.220.0110.00915.74
7.2.210.0100.00815.69
7.2.200.0150.00515.83
7.2.190.0120.00815.82
7.2.180.0140.00415.77
7.2.170.0130.00615.74
7.2.160.0120.00615.77
7.2.150.0160.00516.53
7.2.140.0130.00616.56
7.2.130.0120.00716.63
7.2.120.0130.00616.52
7.2.110.0120.00916.46
7.2.100.0130.00616.53
7.2.90.0140.00816.51
7.2.80.0140.00616.51
7.2.70.0140.00616.57
7.2.60.0110.00816.54
7.2.50.0130.00616.54
7.2.40.0180.00716.67
7.2.30.0170.00816.70
7.2.20.0180.00916.75
7.2.10.0180.00616.70
7.2.00.0150.00916.73
7.1.330.0140.00615.58
7.1.320.0070.01015.50
7.1.310.0170.00615.53
7.1.300.0130.00615.47
7.1.290.0130.00615.52
7.1.280.0140.00315.49
7.1.270.0120.00615.50
7.1.260.0130.00615.51
7.1.250.0140.00615.43
7.1.240.0140.00615.51
7.1.230.0120.00715.48
7.1.220.0150.00515.46
7.1.210.0130.00715.57
7.1.200.0140.00715.53
7.1.190.0120.00615.53
7.1.180.0130.00615.49
7.1.170.0130.00615.48
7.1.160.0160.00815.64
7.1.150.0190.00615.68
7.1.140.0200.00715.72
7.1.130.0170.00815.84
7.1.120.0240.00615.82
7.1.110.0190.00515.84
7.1.100.0270.00615.72
7.1.90.0310.00715.80
7.1.80.0280.00615.85
7.1.70.0260.00615.72
7.1.60.0300.00719.32
7.1.50.0300.00519.00
7.1.40.0260.00819.12
7.1.30.0390.00819.08
7.1.20.0500.00719.10
7.1.10.0270.00615.48
7.1.00.0230.00816.41
7.0.330.0110.00715.47
7.0.320.0110.00715.45
7.0.310.0140.00615.37
7.0.300.0140.00515.42
7.0.290.0160.00515.47
7.0.280.0120.00615.41
7.0.270.0170.00815.52
7.0.260.0170.00615.54
7.0.250.0180.00415.65
7.0.240.0260.00815.63
7.0.230.0290.00715.54
7.0.220.0270.00615.54
7.0.210.0290.00615.35
7.0.200.0260.00515.47
7.0.190.0270.00815.29
7.0.180.0270.00815.22
7.0.170.0280.00915.32
7.0.160.0260.00615.22
7.0.150.0310.00715.22
7.0.140.0250.01415.91
7.0.130.0300.00615.34
7.0.120.0340.00715.38
7.0.110.0330.00515.30
7.0.100.0270.00915.71
7.0.90.0250.01415.62
7.0.80.0210.01515.62
7.0.70.0210.00915.69
7.0.60.0250.01115.65
7.0.50.0260.01015.66
7.0.40.0280.01615.32
7.0.30.0270.01215.36
7.0.20.0200.01315.31
7.0.10.0270.01315.34
7.0.00.0260.01415.36
5.6.400.0100.00915.07
5.6.390.0120.00715.06
5.6.380.0120.00615.18
5.6.370.0130.00715.14
5.6.360.0110.00815.13
5.6.350.0130.00515.10
5.6.340.0140.00515.12
5.6.330.0120.00815.14
5.6.320.0150.00615.12
5.6.310.0150.00415.12
5.6.300.0120.01816.16
5.6.290.0110.01816.22
5.6.280.0140.02316.73
5.6.270.0120.01816.26
5.6.260.0140.01716.30
5.6.250.0110.02416.63
5.6.240.0130.02216.62
5.6.230.0110.02216.67
5.6.220.0120.02416.64
5.6.210.0100.02216.61
5.6.200.0120.02216.66
5.6.190.0120.02016.66
5.6.180.0120.02416.70
5.6.170.0140.01816.68
5.6.160.0120.02416.68
5.6.150.0120.02316.68
5.6.140.0120.02316.68
5.6.130.0120.02316.66
5.6.120.0130.02416.68
5.6.110.0120.02416.66
5.6.100.0110.02316.61
5.6.90.0130.01916.65
5.6.80.0140.02116.49
5.6.70.0120.02116.54
5.6.60.0130.02316.55
5.6.50.0110.02016.44
5.6.40.0120.02016.49
5.6.30.0110.02116.47
5.6.20.0100.02316.44
5.6.10.0110.02216.44
5.6.00.0100.02116.42
5.5.380.0130.02416.46
5.5.370.0140.02316.40
5.5.360.0140.02116.34
5.5.350.0130.02416.39
5.5.340.0150.02316.55
5.5.330.0130.02716.52
5.5.320.0140.02616.52
5.5.310.0130.02616.53
5.5.300.0120.02116.47
5.5.290.0130.02716.46
5.5.280.0150.02516.45
5.5.270.0150.02416.45
5.5.260.0130.02516.50
5.5.250.0110.02416.55
5.5.240.0140.02316.40
5.5.230.0150.02416.32
5.5.220.0120.02816.35
5.5.210.0130.02216.39
5.5.200.0120.02116.27
5.5.190.0110.02616.28
5.5.180.0120.02916.24
5.5.170.0110.00715.32
5.5.160.0110.02316.25
5.5.150.0120.02516.24
5.5.140.0110.02616.25
5.5.130.0140.02416.15
5.5.120.0120.02616.19
5.5.110.0140.02316.16
5.5.100.0110.02716.25
5.5.90.0150.02416.30
5.5.80.0110.02716.25
5.5.70.0150.02416.25
5.5.60.0150.02016.27
5.5.50.0130.02116.22
5.5.40.0130.02216.26
5.5.30.0140.02416.34
5.5.20.0110.02216.29
5.5.10.0140.02216.19
5.5.00.0120.02116.27
5.4.450.0110.02315.29
5.4.440.0120.02215.31
5.4.430.0110.02415.29
5.4.420.0110.02115.26
5.4.410.0140.02115.27
5.4.400.0110.02315.18
5.4.390.0120.02215.13
5.4.380.0120.02515.08
5.4.370.0130.01915.07
5.4.360.0100.02615.13
5.4.350.0090.02415.08
5.4.340.0120.02315.10
5.4.330.0110.00413.20
5.4.320.0100.02415.18
5.4.310.0110.02115.19
5.4.300.0140.01815.16
5.4.290.0100.02215.12
5.4.280.0120.02015.16
5.4.270.0110.02115.15
5.4.260.0120.02015.12
5.4.250.0110.02315.08
5.4.240.0120.02415.18
5.4.230.0110.02415.00
5.4.220.0110.02415.01
5.4.210.0130.02215.02
5.4.200.0130.01815.01
5.4.190.0100.02415.05
5.4.180.0120.02415.02
5.4.170.0140.01815.05
5.4.160.0110.02215.06
5.4.150.0130.02315.08
5.4.140.0130.01914.33
5.4.130.0110.02114.23
5.4.120.0100.02214.24
5.4.110.0120.01814.26
5.4.100.0120.02114.31
5.4.90.0110.02114.32
5.4.80.0100.02214.32
5.4.70.0100.02214.32
5.4.60.0090.02614.33
5.4.50.0100.02314.28
5.4.40.0100.02314.31
5.4.30.0130.02014.29
5.4.20.0130.02414.38
5.4.10.0110.02314.33
5.4.00.0120.02114.04
5.3.290.0100.02713.92
5.3.280.0130.01613.93
5.3.270.0090.02513.89
5.3.260.0120.02213.91
5.3.250.0130.02413.96
5.3.240.0100.02113.81
5.3.230.0120.01913.88
5.3.220.0120.02213.81
5.3.210.0140.02213.89
5.3.200.0130.02213.86
5.3.190.0120.02413.83
5.3.180.0110.02413.94
5.3.170.0130.02413.94
5.3.160.0120.02113.99
5.3.150.0130.02013.96
5.3.140.0130.01913.91
5.3.130.0120.02313.92
5.3.120.0120.02413.91
5.3.110.0120.02513.83
5.3.100.0110.02313.71
5.3.90.0130.02313.77
5.3.80.0090.02313.64
5.3.70.0100.02413.63
5.3.60.0110.02213.72
5.3.50.0120.02113.62
5.3.40.0120.02213.65
5.3.30.0100.01913.68
5.3.20.0110.02413.59
5.3.10.0110.02313.50
5.3.00.0110.02113.48

preferences:
47.06 ms | 401 KiB | 5 Q