3v4l.org

run code in 300+ PHP versions simultaneously
<?php // your code goes here $i = 0; while ($i < 5) { echo memory_get_usage() . "\n"; stream_context_create( array('http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => str_repeat('a', 99), ), ) ); $i++; }

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.0130.00614.98
7.3.120.0030.01314.49
7.3.110.0070.01014.98
7.3.100.0070.01014.78
7.3.90.0030.01214.97
7.3.80.0030.00714.67
7.3.70.0070.00414.80
7.3.60.0070.00414.62
7.3.50.0030.00914.79
7.3.40.0080.00314.86
7.3.30.0110.00014.88
7.3.20.0070.01016.68
7.3.10.0080.00316.65
7.3.00.0100.00316.40
7.2.250.0090.00615.25
7.2.240.0130.00714.93
7.2.230.0040.01115.00
7.2.220.0090.00615.06
7.2.210.0070.00315.26
7.2.200.0040.01414.68
7.2.190.0000.01515.06
7.2.180.0030.01215.07
7.2.170.0000.01314.84
7.2.00.0030.01019.20
7.1.330.0100.00715.59
7.1.320.0030.00615.99
7.1.310.0030.01015.72
7.1.300.0060.00615.66
7.1.290.0030.01015.73
7.1.280.0030.01415.53
7.1.270.0030.00915.75
7.1.260.0070.00415.79
7.1.70.0030.00517.02
7.1.60.0140.01019.17
7.1.50.0070.01116.86
7.1.00.0000.04022.54
7.0.200.0030.00716.82
7.0.140.0100.06321.91
7.0.100.0130.07719.85
7.0.90.0030.09019.88
7.0.80.0500.08019.88
7.0.70.0100.04719.97
7.0.60.0200.06719.93
7.0.50.0100.08020.17
7.0.40.0070.07320.10
7.0.30.0100.07720.11
7.0.20.0030.09319.96
7.0.10.0130.07720.04
7.0.00.0030.07320.04
5.6.250.0070.08320.54
5.6.240.0030.09020.63
5.6.230.0070.07720.63
5.6.220.0130.08020.59
5.6.210.0130.09720.40
5.6.200.0130.07721.02
5.6.190.0100.07321.16
5.6.180.0130.07720.92
5.6.170.0100.07721.08
5.6.160.0100.08320.94
5.6.150.0100.08021.13
5.6.140.0070.08021.05
5.6.130.0100.07021.16
5.6.120.0130.06320.93
5.6.110.0130.07021.01
5.6.100.0100.07321.08
5.6.90.0070.07320.91
5.6.80.0200.06320.50
5.6.70.0070.07320.44
5.6.60.0170.07320.41
5.6.50.0100.04720.31
5.6.40.0100.07720.40
5.6.30.0130.05320.44
5.6.20.0100.05720.29
5.6.10.0070.04320.52
5.6.00.0100.07020.45
5.5.380.0070.08720.29
5.5.370.0130.06320.35
5.5.360.0070.08020.29
5.5.350.0130.07720.32
5.5.340.0270.07020.82
5.5.330.0070.08020.91
5.5.320.0130.06320.73
5.5.310.0070.09320.75
5.5.300.0070.04720.90
5.5.290.0130.08020.82
5.5.280.0200.07720.83
5.5.270.0100.07720.91
5.5.260.0130.08020.76
5.5.250.0030.07320.69
5.5.240.0070.07720.02
5.5.230.0070.08720.27
5.5.220.0130.07320.23
5.5.210.0230.05720.10
5.5.200.0070.06720.21
5.5.190.0130.07020.08
5.5.180.0100.08020.22
5.5.160.0130.06720.18
5.5.150.0130.07720.14
5.5.140.0130.07320.12
5.5.130.0170.08020.12
5.5.120.0070.07720.23
5.5.110.0030.08320.22
5.5.100.0130.07720.07
5.5.90.0170.06320.15
5.5.80.0100.07320.12
5.5.70.0100.07320.13
5.5.60.0130.07320.14
5.5.50.0030.08320.08
5.5.40.0100.07320.13
5.5.30.0100.08320.05
5.5.20.0170.06720.10
5.5.10.0070.07720.03
5.5.00.0100.07319.98
5.4.450.0030.08019.31
5.4.440.0130.04719.38
5.4.430.0070.07719.54
5.4.420.0030.08019.29
5.4.410.0070.08319.22
5.4.400.0130.07019.12
5.4.390.0100.05318.98
5.4.380.0170.06019.04
5.4.370.0130.07319.04
5.4.360.0170.07019.14
5.4.350.0000.07019.09
5.4.340.0030.08019.06
5.4.320.0170.06718.81
5.4.310.0100.07019.03
5.4.300.0000.07319.11
5.4.290.0130.07318.78
5.4.280.0130.05318.98
5.4.270.0030.07718.88
5.4.260.0070.06718.80
5.4.250.0100.07019.11
5.4.240.0070.07319.14
5.4.230.0070.08018.93
5.4.220.0170.06018.89
5.4.210.0070.08019.03
5.4.200.0070.04718.80
5.4.190.0130.07018.77
5.4.180.0100.06718.98
5.4.170.0030.05719.01
5.4.160.0070.07318.76
5.4.150.0170.06318.95
5.4.140.0070.07316.01
5.4.130.0030.08016.21
5.4.120.0070.07316.32
5.4.110.0070.07316.30
5.4.100.0200.05316.26
5.4.90.0100.05716.25
5.4.80.0100.04016.42
5.4.70.0100.06016.20
5.4.60.0100.04716.32
5.4.50.0100.06716.23
5.4.40.0100.07016.43
5.4.30.0030.07716.23
5.4.20.0100.06316.20
5.4.10.0070.06316.20
5.4.00.0130.07015.66
5.3.290.0100.06714.61
5.3.280.0100.06714.58
5.3.270.0000.08314.59
5.3.260.0000.05014.46
5.3.250.0070.07714.56
5.3.240.0300.06014.59
5.3.230.0000.04714.54
5.3.220.0070.03314.48
5.3.210.0130.03314.55
5.3.200.0130.06714.52
5.3.190.0000.08014.55
5.3.180.0070.07714.55
5.3.170.0100.04014.51
5.3.160.0130.06014.40
5.3.150.0070.07714.52
5.3.140.0070.07314.52
5.3.130.0070.05314.53
5.3.120.0030.07314.55
5.3.110.0030.08014.41
5.3.100.0030.07014.02
5.3.90.0030.05713.93
5.3.80.0100.07714.00
5.3.70.0030.07313.95
5.3.60.0070.04713.98
5.3.50.0000.05013.80
5.3.40.0070.07013.93
5.3.30.0070.05313.76
5.3.20.0070.07313.62
5.3.10.0100.07713.63
5.3.00.0070.04013.49
5.2.170.0000.07012.24
5.2.160.0130.04012.24
5.2.150.0030.06012.24
5.2.140.0000.06312.24
5.2.130.0070.05012.24
5.2.120.0100.05312.24
5.2.110.0030.06012.24
5.2.100.0070.06312.24
5.2.90.0070.06012.24
5.2.80.0030.05012.24
5.2.70.0000.06012.24
5.2.60.0030.04712.24
5.2.50.0030.05712.24
5.2.40.0070.06012.24
5.2.30.0070.05712.24
5.2.20.0100.05012.24
5.2.10.0070.04712.24
5.2.00.0030.05012.24
5.1.60.0070.04012.24
5.1.50.0030.04312.24
5.1.40.0030.05312.24
5.1.30.0100.04312.24
5.1.20.0070.05312.24
5.1.10.0030.05312.24
5.1.00.0100.04712.24
5.0.50.0130.04012.24
5.0.40.0030.04312.24
5.0.30.0030.06312.24
5.0.20.0030.04012.24
5.0.10.0000.03712.24
5.0.00.0030.06012.24
4.4.90.0070.03012.24
4.4.80.0070.03312.24
4.4.70.0070.03312.24
4.4.60.0000.03712.24
4.4.50.0030.03012.24
4.4.40.0170.03712.24
4.4.30.0030.02312.24
4.4.20.0070.03012.24
4.4.10.0070.03012.24
4.4.00.0000.05712.24
4.3.110.0030.03312.24
4.3.100.0000.03712.24
4.3.90.0070.03012.24
4.3.80.0000.04312.24
4.3.70.0030.03312.24
4.3.60.0030.03012.24
4.3.50.0000.02312.24
4.3.40.0000.05312.24
4.3.30.0000.03312.24
4.3.20.0030.04012.24
4.3.10.0000.03012.24
4.3.00.0000.03312.24

preferences:
40.62 ms | 400 KiB | 5 Q