3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = range(1000, 9999); shuffle($a); printf("%.2F MB\n%.2F MB\n", memory_get_usage() / 1024 / 1024, memory_get_peak_usage() / 1024 / 1024);

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.2.00.0100.00719.30
7.1.70.0000.00817.16
7.1.60.0130.01319.82
7.1.50.0070.01716.78
7.1.00.0070.07022.57
7.0.200.0090.00416.55
7.0.140.0030.06722.04
7.0.60.0070.08720.31
7.0.50.0030.07718.08
7.0.40.0100.03720.03
7.0.30.0170.04720.00
7.0.20.0230.08320.15
7.0.10.0230.07720.02
7.0.00.0100.07320.03
5.6.280.0030.07722.45
5.6.210.0100.07721.77
5.6.200.0100.07719.43
5.6.190.0070.05321.74
5.6.180.3600.03021.50
5.6.170.0230.06321.61
5.6.160.0100.07021.51
5.6.150.0070.07319.23
5.6.140.0070.05019.46
5.6.130.0130.08319.43
5.6.120.0130.07322.28
5.6.110.0000.04722.34
5.6.100.0100.09022.41
5.6.90.0130.08722.43
5.6.80.0030.09021.82
5.6.70.2770.02721.73
5.5.350.0030.07021.68
5.5.340.0070.08019.28
5.5.330.0030.04721.42
5.5.320.0330.07021.46
5.5.310.0300.06321.38
5.5.300.0070.07319.19
5.5.290.0100.05319.16
5.5.280.0170.08322.20
5.5.270.0130.08721.98
5.5.260.0030.04322.17
5.5.250.0100.08721.99
5.5.240.0030.05721.31
5.4.450.0500.05020.58
5.4.440.0730.05720.80
5.4.430.0200.06320.84
5.4.420.0070.06020.67
5.4.410.0070.06020.60
5.4.400.0030.06020.13
5.4.390.0030.07320.08
5.4.380.0230.06020.04
5.4.370.0270.05320.04
5.4.360.0270.05020.08
5.4.350.0300.05320.06
5.4.340.0270.05320.03
5.4.320.0020.04213.84
5.4.310.0070.03913.84
5.4.300.0030.04013.85
5.4.290.0050.04113.84
5.4.280.0080.04613.73
5.4.270.0070.06720.06
5.4.260.0070.06020.06
5.4.250.0200.05319.90
5.4.240.0200.07020.06
5.4.230.0100.08020.02
5.4.220.0230.05320.09
5.4.210.0100.08020.16
5.4.200.0170.06720.11
5.4.190.0100.05719.87
5.4.180.0100.07020.05
5.4.170.0070.07019.88
5.4.160.0200.06320.00
5.4.150.0170.05719.86
5.4.140.0170.06717.74
5.4.130.0130.07717.73
5.4.120.0170.04717.50
5.4.110.0130.06017.43
5.4.100.0130.05317.69
5.4.90.0100.07017.50
5.4.80.0170.06717.68
5.4.70.0100.06317.59
5.4.60.0000.06017.57
5.4.50.0030.07717.68
5.4.40.0100.07717.43
5.4.30.0100.07017.70
5.4.20.0170.04017.53
5.4.10.0200.07017.36
5.4.00.0030.06717.02
5.3.290.0060.04014.02
5.3.280.0100.07315.79
5.3.270.0030.08315.81
5.3.260.0130.08315.77
5.3.250.0070.06715.48
5.3.240.0170.07015.81
5.3.230.0200.04715.75
5.3.220.0200.05715.73
5.3.210.0030.07715.84
5.3.200.0070.05715.76
5.3.190.0070.06015.73
5.3.180.0170.06015.76
5.3.170.0070.05715.75
5.3.160.0100.05015.44
5.3.150.0170.05015.77
5.3.140.0070.06715.51
5.3.130.0030.06015.84
5.3.120.0170.06015.73
5.3.110.0100.05715.42
5.3.100.0170.06315.24
5.3.90.0070.06715.21
5.3.80.0100.07315.21
5.3.70.0100.07315.20
5.3.60.0130.04715.54
5.3.50.0100.05715.22
5.3.40.0030.06015.02
5.3.30.0070.05714.92
5.3.20.0130.06314.97
5.3.10.0170.04714.68
5.3.00.0100.05714.50
5.2.170.0130.05712.14
5.2.160.0170.03712.01
5.2.150.0070.05012.15
5.2.140.0100.04312.16
5.2.130.0230.05012.11
5.2.120.0170.05012.11
5.2.110.0100.05312.19
5.2.100.0130.04712.30
5.2.90.0100.04312.17
5.2.80.0270.02712.10
5.2.70.0070.05312.00
5.2.60.0130.04011.91
5.2.50.0030.05712.02
5.2.40.0170.04711.74
5.2.30.0170.04711.84
5.2.20.0070.05312.04
5.2.10.0130.05011.84
5.2.00.0200.05011.87
5.1.60.0130.04311.52
5.1.50.0130.04711.61
5.1.40.0070.03711.43
5.1.30.0070.04311.78
5.1.20.0170.04711.92
5.1.10.0030.05711.51
5.1.00.0130.04711.65
5.0.50.0100.04010.14
5.0.40.0100.0309.93
5.0.30.0170.0509.83
5.0.20.0030.0339.84
5.0.10.0130.0379.71
5.0.00.0030.0439.71
4.4.90.0100.0277.42
4.4.80.0030.0377.25
4.4.70.0070.0407.32
4.4.60.0100.0277.37
4.4.50.0030.0337.41
4.4.40.0100.0407.53
4.4.30.0130.0277.38
4.4.20.0100.0237.48
4.4.10.0170.0207.47
4.4.00.0100.0377.49
4.3.110.0070.0337.32
4.3.100.0100.0207.34
4.3.90.0100.0237.29
4.3.80.0030.0437.30
4.3.70.0030.0277.32
4.3.60.0030.0337.25
4.3.50.0070.0207.38
4.3.40.0070.0437.34
4.3.30.0000.0376.84
4.3.20.0030.0406.84
4.3.10.0000.0406.84
4.3.00.0070.0276.50

preferences:
35.31 ms | 401 KiB | 5 Q