3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $size = 100000; while($size--) $arr[] = md5(microtime()); $start = microtime(true); count($arr); echo round(microtime(true) - $start, 3); ?>

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.0100.11123.97
7.3.120.0130.10823.96
7.3.110.0030.10023.46
7.3.100.0170.07623.59
7.3.90.0170.09623.71
7.3.80.0070.07623.95
7.3.70.0070.10023.52
7.3.60.0130.06423.81
7.3.50.0100.09323.59
7.3.40.0130.07223.82
7.3.30.0170.06323.73
7.3.20.0070.07026.67
7.3.10.0100.06726.45
7.3.00.0030.07026.19
7.2.250.0130.11623.87
7.2.240.0100.07823.95
7.2.230.0160.07923.56
7.2.220.0140.07423.89
7.2.210.0130.07923.95
7.2.200.0100.10123.97
7.2.190.0070.08124.00
7.2.180.0130.11123.99
7.2.170.0070.10423.79
7.1.330.0000.08725.80
7.1.320.0000.09125.80
7.1.310.0100.12025.78
7.1.300.0030.09625.50
7.1.290.0130.08225.74
7.1.280.0000.12225.45
7.1.270.0030.09325.77
7.1.260.0070.08525.76
7.1.70.0640.06426.88
7.1.60.0160.10527.40
7.1.50.0130.08426.93
7.1.00.0030.08032.45
7.0.200.0030.06626.74
7.0.140.0030.15032.18
7.0.100.0130.09729.09
7.0.90.0330.10029.08
7.0.80.0530.11028.99
7.0.70.0200.12329.08
7.0.60.1130.12328.94
7.0.50.1730.13729.45
7.0.40.0100.15023.96
7.0.30.0270.14324.00
7.0.20.0130.09023.88
7.0.10.0270.14323.78
7.0.00.0070.14023.89
5.6.280.0170.16740.47
5.6.250.0070.12040.02
5.6.240.0130.15340.02
5.6.230.0100.18740.08
5.6.220.0200.15340.00
5.6.210.0230.16739.86
5.6.200.0070.21740.52
5.6.190.0170.17340.56
5.6.180.0170.14040.33
5.6.170.0200.16340.56
5.6.160.0230.16340.34
5.6.150.0270.13340.43
5.6.140.0070.11740.50
5.6.130.0070.17740.30
5.6.120.0130.13740.41
5.6.110.0200.10040.47
5.6.100.0070.12340.33
5.6.90.0030.12040.41
5.6.80.0070.14739.73
5.6.70.0170.18039.79
5.6.60.0130.14039.67
5.6.50.0030.11739.73
5.6.40.0030.11339.79
5.6.30.0070.16339.77
5.6.20.0130.11739.91
5.6.10.0130.16039.82
5.6.00.0030.18739.68
5.5.380.0200.16739.76
5.5.370.0100.18039.75
5.5.360.0130.11339.95
5.5.350.0100.16039.84
5.5.340.0170.17340.30
5.5.330.0130.14040.30
5.5.320.0230.13740.23
5.5.310.0070.13740.19
5.5.300.0270.14340.25
5.5.290.0200.11340.19
5.5.280.0170.17740.23
5.5.270.0330.08740.27
5.5.260.0000.12340.27
5.5.250.0170.16040.13
5.5.240.0130.11039.66
5.5.230.0170.10739.63
5.5.220.0070.11339.65
5.5.210.0130.12739.50
5.5.200.0170.15739.59
5.5.190.0170.13739.47
5.5.180.0130.16039.52
5.5.160.0170.12039.66
5.5.150.0100.21739.61
5.5.140.0370.14339.47
5.5.130.0070.16039.64
5.5.120.0200.18039.52
5.5.110.0200.10339.53
5.5.100.0270.18339.44
5.5.90.0230.12339.55
5.5.80.0070.12039.55
5.5.70.0030.12039.33
5.5.60.0170.11739.51
5.5.50.0130.09039.54
5.5.40.0100.11339.58
5.5.30.0130.11339.32
5.5.20.0170.10739.46
5.5.10.0130.12039.52
5.5.00.0030.12339.46
5.4.450.0200.10738.80
5.4.440.0100.16738.63
5.4.430.0100.15038.62
5.4.420.0030.11738.70
5.4.410.0070.17038.37
5.4.400.0200.16338.37
5.4.390.0070.11038.34
5.4.380.0000.13038.43
5.4.370.0130.12738.32
5.4.360.0100.15738.29
5.4.350.0170.16338.32
5.4.340.0170.14738.34
5.4.320.0070.17038.29
5.4.310.0130.18738.38
5.4.300.0100.18038.15
5.4.290.0330.14338.30
5.4.280.0070.17038.43
5.4.270.0200.14738.46
5.4.260.0130.15338.24
5.4.250.0070.17038.38
5.4.240.0100.12038.32
5.4.230.0230.12338.47
5.4.220.0100.11338.23
5.4.210.0100.10738.38
5.4.200.0370.09038.29
5.4.190.0070.11038.26
5.4.180.0070.11738.39
5.4.170.0230.09738.14
5.4.160.0130.13038.31
5.4.150.0030.14038.14
5.4.140.0170.11735.75
5.4.130.0100.11035.68
5.4.120.0000.12035.76
5.4.110.0030.11735.62
5.4.100.0030.11035.55
5.4.90.0130.10735.80
5.4.80.0130.10335.64
5.4.70.0130.10735.54
5.4.60.0100.11035.57
5.4.50.0130.15735.63
5.4.40.0330.15035.62
5.4.30.0000.17035.53
5.4.20.0270.16735.78
5.4.10.0270.11735.56
5.4.00.0170.14335.13
5.3.290.0170.17733.59
5.3.280.0170.10333.48
5.3.270.0170.12333.45
5.3.260.0070.12033.38
5.3.250.0030.12733.59
5.3.240.0130.11333.45
5.3.230.0070.14333.41
5.3.220.0100.11333.39
5.3.210.0030.12033.41
5.3.200.0030.12033.48
5.3.190.0000.14033.48
5.3.180.0130.13033.49
5.3.170.0130.10733.38
5.3.160.0030.12033.38
5.3.150.0130.16733.54
5.3.140.0030.13033.54
5.3.130.0170.14333.48
5.3.120.0130.17733.33
5.3.110.0200.15733.48
5.3.100.0100.14032.97
5.3.90.0170.14732.97
5.3.80.0030.19332.77
5.3.70.0100.18332.88
5.3.60.0300.16332.91
5.3.50.0170.16332.84
5.3.40.0130.18032.72
5.3.30.0170.16032.73
5.3.20.0100.19332.59
5.3.10.0170.20732.50
5.3.00.0030.12332.54
5.2.170.0200.17729.06
5.2.160.0070.18329.23
5.2.150.0130.15029.20
5.2.140.0130.16729.18
5.2.130.0130.13029.22
5.2.120.0200.15329.23
5.2.110.0130.15029.09
5.2.100.0130.11029.23
5.2.90.0200.13329.06
5.2.80.0070.11729.17
5.2.70.0130.15729.26
5.2.60.0030.16729.10
5.2.50.0070.12029.18
5.2.40.0070.15729.10
5.2.30.0230.13329.18
5.2.20.0170.29729.36
5.2.10.0070.30729.25
5.2.00.0170.22329.07
5.1.60.0030.30035.04
5.1.50.0070.25735.04
5.1.40.0100.22735.04
5.1.30.0030.31035.36
5.1.20.0070.24035.41
5.1.10.0000.29035.26
5.1.00.0300.21735.22
5.0.50.0100.28033.58
5.0.40.0070.30733.48
5.0.30.0300.29733.34
5.0.20.0100.26733.32
5.0.10.0130.29733.17
5.0.00.0070.29733.11
4.4.90.0070.30331.08
4.4.80.0200.21330.99
4.4.70.0100.24731.04
4.4.60.0030.23031.06
4.4.50.0030.30331.04
4.4.40.0200.27031.02
4.4.30.0030.29031.05
4.4.20.0070.29731.13
4.4.10.0200.26331.08
4.4.00.0230.24031.10
4.3.110.0100.30031.01
4.3.100.0200.28030.99
4.3.90.0070.28331.00
4.3.80.0130.30331.01
4.3.70.0070.30030.92
4.3.60.0170.26330.89
4.3.50.0200.27730.99
4.3.40.0200.22730.94
4.3.30.0070.27329.69
4.3.20.0030.27729.75
4.3.10.0100.30329.58
4.3.00.0170.28729.67

preferences:
42.92 ms | 400 KiB | 5 Q