3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = microtime(true); $i=0; while($i < 60000) { $i++; $data[] = substr('../sites/swissquote.eu.fx', strrpos('../sites/swissquote.eu.fx', '/')+1); } $time = microtime(true) - $time; echo 'substr() took ' . number_format($time, 3) . ' seconds and returned ' . count($data) . " entries\n";

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.0140.01419.92
7.3.120.0100.02419.57
7.3.110.0110.01819.84
7.3.100.0100.01320.01
7.3.90.0130.01319.87
7.3.80.0070.01719.76
7.3.70.0070.01619.83
7.3.60.0130.01619.94
7.3.50.0040.02819.75
7.3.40.0080.01519.77
7.3.30.0060.01919.83
7.3.20.0100.01620.48
7.3.10.0130.01320.52
7.3.00.0040.01820.52
7.2.250.0170.02020.34
7.2.240.0070.02519.73
7.2.230.0070.02120.10
7.2.220.0170.01019.99
7.2.210.0030.01720.37
7.2.200.0100.01619.83
7.2.190.0060.01919.80
7.2.180.0030.02419.89
7.2.170.0000.02620.00
7.2.00.0030.01723.18
7.1.330.0130.01619.63
7.1.320.0070.02019.72
7.1.310.0100.01919.64
7.1.300.0040.01919.65
7.1.290.0100.01619.67
7.1.280.0070.02319.71
7.1.270.0090.02219.79
7.1.260.0090.01919.59
7.1.70.0070.02021.10
7.1.60.0170.02020.87
7.1.50.0120.01220.82
7.1.00.0000.04026.18
7.0.200.0190.00619.73
7.0.140.0030.08726.00
7.0.70.0070.08725.71
7.0.60.0030.09025.72
7.0.50.0100.08326.09
7.0.40.0100.08722.05
7.0.30.0030.09322.14
7.0.20.0070.09022.07
7.0.10.0100.08321.99
7.0.00.0100.08022.08
5.6.280.0100.11031.23
5.6.220.0070.12731.19
5.6.210.0130.09331.24
5.6.200.0030.08731.55
5.6.190.0070.12031.50
5.6.180.0100.09031.58
5.6.170.0070.11331.53
5.6.160.0130.05731.49
5.6.150.0070.10731.48
5.6.140.0100.07331.55
5.6.130.0170.10031.52
5.6.120.0000.12331.50
5.6.110.0030.12031.64
5.6.100.0200.09731.42
5.6.90.0130.12031.46
5.6.80.0070.06031.04
5.6.70.0130.08031.02
5.6.60.0030.12030.79
5.6.50.0130.10730.88
5.6.40.0070.12030.86
5.6.30.0100.10330.78
5.6.20.0030.11030.88
5.6.10.0200.10730.86
5.6.00.0200.10030.84
5.5.360.0070.13030.88
5.5.350.0030.11330.94
5.5.340.0130.11331.21
5.5.330.0070.09031.39
5.5.320.0130.06731.13
5.5.310.0170.08731.40
5.5.300.0000.08331.27
5.5.290.0070.11731.12
5.5.280.0000.07031.28
5.5.270.0170.10731.30
5.5.260.0030.12331.23
5.5.250.0000.07031.18
5.5.240.0100.06330.75
5.5.230.0130.08030.65
5.5.220.0030.07030.70
5.5.210.0070.11030.73
5.5.200.0130.08730.72
5.5.190.0130.10030.71
5.5.180.0030.07030.66
5.5.160.0130.11030.62
5.5.150.0000.11030.66
5.5.140.0170.07730.60
5.5.130.0030.07730.66
5.5.120.0100.11730.56
5.5.110.0070.12030.46
5.5.100.0070.07330.54
5.5.90.0200.08030.63
5.5.80.0100.10330.61
5.5.70.0070.06330.57
5.5.60.0130.05730.41
5.5.50.0100.06030.63
5.5.40.0000.07030.54
5.5.30.0000.06730.47
5.5.20.0070.06730.40
5.5.10.0030.06330.43
5.5.00.0070.06030.45
5.4.450.0100.11729.79
5.4.440.0100.12329.94
5.4.430.0170.12030.02
5.4.420.0070.07729.73
5.4.410.0170.09329.81
5.4.400.0070.06029.66
5.4.390.0130.12329.46
5.4.380.0070.12729.53
5.4.370.0030.11329.57
5.4.360.0070.10729.36
5.4.350.0030.12329.41
5.4.340.0100.10729.37
5.4.320.0130.11329.57
5.4.310.0170.06029.76
5.4.300.0000.07329.46
5.4.290.0030.07729.49
5.4.280.0070.12329.34
5.4.270.0030.11729.48
5.4.260.0070.09029.38
5.4.250.0100.05729.34
5.4.240.0100.05729.38
5.4.230.0100.05729.36
5.4.220.0070.06029.52
5.4.210.0070.06329.61
5.4.200.0100.05729.37
5.4.190.0100.06029.68
5.4.180.0100.05729.52
5.4.170.0100.05729.37
5.4.160.0130.08329.35
5.4.150.0070.10329.47
5.4.140.0070.12326.79
5.4.130.0030.06026.99
5.4.120.0070.06026.74
5.4.110.0030.05726.86
5.4.100.0000.07726.97
5.4.90.0000.05326.93
5.4.80.0100.05726.91
5.4.70.0000.06026.92
5.4.60.0070.05326.93
5.4.50.0000.06026.65
5.4.40.0000.08327.03
5.4.30.0070.05726.91
5.4.20.0100.10726.71
5.4.10.0000.06727.00
5.4.00.0000.06726.30
5.3.290.0130.11024.79
5.3.280.0200.05024.67
5.3.270.0070.06324.70
5.3.260.0070.06324.83
5.3.250.0130.05324.68
5.3.240.0130.06024.84
5.3.230.0030.06724.66
5.3.220.0030.07324.63
5.3.210.0070.05724.70
5.3.200.0100.06324.78
5.3.190.0070.09724.59
5.3.180.0030.05724.70
5.3.170.0030.06324.63
5.3.160.0070.05724.75
5.3.150.0000.11024.78
5.3.140.0030.05724.68
5.3.130.0000.08024.71
5.3.120.0070.09024.79
5.3.110.0170.11324.62
5.3.100.0000.06724.20
5.3.90.0000.07324.25
5.3.80.0000.07024.08
5.3.70.0030.06324.19
5.3.60.0070.08324.02
5.3.50.0100.11023.93
5.3.40.0030.06324.13
5.3.30.0030.05324.07
5.3.20.0100.09723.85
5.3.10.0070.11723.82
5.3.00.0100.10323.69
5.2.170.0030.05720.78
5.2.160.0030.05720.86
5.2.150.0070.05320.57
5.2.140.0030.07720.72
5.2.130.0030.10720.58
5.2.120.0070.08320.53
5.2.110.0070.09020.67
5.2.100.0030.05720.51
5.2.90.0100.06320.59
5.2.80.0030.06720.64
5.2.70.0130.08020.57
5.2.60.0070.10020.62
5.2.50.0070.08020.71
5.2.40.0030.11320.74
5.2.30.0070.11320.69
5.2.20.0130.06720.72
5.2.10.0070.07020.61
5.2.00.0130.09020.46
5.1.60.0030.05723.84
5.1.50.0100.10323.98
5.1.40.0130.08723.95
5.1.30.0170.09724.29
5.1.20.0230.09024.41
5.1.10.0070.10323.95
5.1.00.0170.08724.05
5.0.50.0070.10722.52
5.0.40.0100.11022.44
5.0.30.0030.13022.29
5.0.20.0030.11322.21
5.0.10.0170.08022.23
5.0.00.0130.12022.22
4.4.90.0030.06019.98
4.4.80.0070.09019.92
4.4.70.0070.09720.00
4.4.60.0070.10019.91
4.4.50.0170.08719.97
4.4.40.0000.06319.92
4.4.30.0100.08719.92
4.4.20.0070.10020.02
4.4.10.0070.06720.02
4.4.00.0070.10319.95
4.3.110.0100.08719.88
4.3.100.0170.08719.83
4.3.90.0070.10319.84
4.3.80.0000.06319.92
4.3.70.0100.08019.92
4.3.60.0030.10319.82
4.3.50.0070.10319.91
4.3.40.0030.06719.89
4.3.30.0070.10018.68
4.3.20.0070.08318.62
4.3.10.0030.10718.57
4.3.00.0130.09018.51

preferences:
38.18 ms | 400 KiB | 5 Q