3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array_fill(0, 1000, 'xxxxx'); $runs = 100; $first = 0.0; $second = 0.0; for ($i = 0; $i < $runs; $i++) { $start = microtime(true); foreach ($arr as $value) { strpos('xxxxxxx', $value); } $end = microtime(true); $first += ($end-$start); } print "First: " . ($first/$runs) . 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)
7.2.00.0000.01219.62
7.1.70.0160.01317.04
7.1.60.0070.02419.24
7.1.50.0250.02234.57
7.1.00.0070.10022.51
7.0.200.0120.00916.80
7.0.140.0030.07022.18
7.0.60.0100.08719.86
7.0.50.0070.08717.92
7.0.40.0130.09020.21
7.0.30.0270.06020.16
7.0.20.0430.07020.00
7.0.10.0070.04320.16
7.0.00.0130.06720.24
5.6.280.0030.09320.94
5.6.210.0030.10320.60
5.6.200.0100.09718.22
5.6.190.0130.10020.45
5.6.180.0230.09020.32
5.6.170.0330.05020.49
5.6.160.0070.09720.51
5.6.150.0200.05318.25
5.6.140.0170.07718.26
5.6.130.0130.08718.15
5.6.120.0000.06321.05
5.6.110.0100.10021.07
5.6.100.0100.09321.07
5.6.90.0100.09720.91
5.6.80.0170.04720.36
5.6.70.4100.05320.43
5.5.350.0100.10020.37
5.5.340.0030.10717.98
5.5.330.0030.07020.36
5.5.320.0400.06020.17
5.5.310.0170.07720.29
5.5.300.0000.06718.02
5.5.290.0000.05717.91
5.5.280.0230.05321.01
5.5.270.0100.07720.90
5.5.260.0030.10320.71
5.5.250.0130.09020.49
5.5.240.0200.03720.40
5.4.450.0200.10019.34
5.4.440.0870.08719.60
5.4.430.0170.07319.25
5.4.420.0330.09319.41
5.4.410.0130.08718.99
5.4.400.0270.07718.59
5.4.390.0200.08318.77
5.4.380.0270.07318.61
5.4.370.0230.06018.71
5.4.360.0000.06318.62
5.4.350.0070.05012.07
5.4.340.0070.05212.06
5.4.320.0050.05012.55
5.4.310.0070.05112.54
5.4.300.0070.04812.55
5.4.290.0050.05112.55
5.4.280.0050.04812.45
5.4.270.0090.04612.44
5.4.260.0060.05012.45
5.4.250.0090.05812.44
5.4.240.0110.04812.45
5.4.230.0060.05012.44
5.4.220.0070.04612.43
5.4.210.0040.05112.44
5.4.200.0030.05312.44
5.4.190.0080.04812.43
5.4.180.0050.05212.43
5.4.170.0200.05712.43
5.4.160.0160.06012.43
5.4.150.0180.05912.42
5.4.140.0120.06212.11
5.4.130.0380.10412.09
5.4.120.0160.06312.05
5.4.110.0110.06412.05
5.4.100.0210.05812.04
5.4.90.0210.05812.05
5.4.80.0210.05912.05
5.4.70.0190.06012.04
5.4.60.0180.05812.04
5.4.50.0170.06012.04
5.4.40.0130.06312.03
5.4.30.0180.08812.03
5.4.20.0180.06212.03
5.4.10.0210.05812.03
5.4.00.0160.05711.52
5.3.290.0040.05812.80
5.3.280.0040.05612.73
5.3.270.0290.11612.74
5.3.260.0230.06812.74
5.3.250.0170.06412.73
5.3.240.0170.06512.73
5.3.230.0130.07012.73
5.3.220.0150.06912.70
5.3.210.0190.06612.70
5.3.200.0210.06512.70
5.3.190.0230.06512.70
5.3.180.0120.07112.69
5.3.170.0180.06612.69
5.3.160.0200.09912.70
5.3.150.0210.06812.70
5.3.140.0210.07012.70
5.3.130.0210.06112.68
5.3.120.0180.06412.68
5.3.110.0240.09012.68
5.3.100.0160.07112.16
5.3.90.0230.09512.15
5.3.80.0170.06412.14
5.3.70.0170.06712.14
5.3.60.0200.06612.13
5.3.50.0210.06012.07
5.3.40.0190.06112.07
5.3.30.0180.07012.04
5.3.20.0160.06611.82
5.3.10.0210.06311.78
5.3.00.0130.07111.76
5.2.170.0100.0589.28
5.2.160.0160.0519.27
5.2.150.0140.0539.28
5.2.140.0190.0549.27
5.2.130.0160.0619.23
5.2.120.0180.0569.23
5.2.110.0200.0689.24
5.2.100.0330.1019.23
5.2.90.0140.0569.23
5.2.80.0100.0639.23
5.2.70.0190.0639.23
5.2.60.0150.0539.18
5.2.50.0160.0659.15
5.2.40.0210.0519.13
5.2.30.0160.0599.10
5.2.20.0130.0599.11
5.2.10.0160.0609.04
5.2.00.0080.0598.89
5.1.60.0140.0558.20
5.1.50.0140.0478.19
5.1.40.0120.0468.18
5.1.30.0130.0478.52
5.1.20.0130.0498.56
5.1.10.0140.0468.28
5.1.00.0110.0488.27
5.0.50.0100.0666.75
5.0.40.0090.0666.61
5.0.30.0120.0836.43
5.0.20.0080.0676.41
5.0.10.0100.0636.38
5.0.00.0120.0716.37
4.4.90.0070.0504.78
4.4.80.0060.0534.76
4.4.70.0270.0954.76
4.4.60.0080.0504.76
4.4.50.0080.0504.78
4.4.40.0200.0884.77
4.4.30.0090.0514.76
4.4.20.0070.0504.84
4.4.10.0050.0544.85
4.4.00.0120.0554.79
4.3.110.0070.0504.71
4.3.100.0070.0514.69
4.3.90.0060.0644.69
4.3.80.0090.0644.68
4.3.70.0100.0594.68
4.3.60.0100.0614.68
4.3.50.0080.0574.68
4.3.40.0050.0754.64
4.3.30.0070.0563.45
4.3.20.0070.0683.43
4.3.10.0050.0633.39
4.3.00.0170.0738.15

preferences:
38.2 ms | 403 KiB | 5 Q