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), ), ) ); }

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.0110.01119.45
7.1.70.0030.01017.04
7.1.60.0130.02719.17
7.1.50.0200.02016.91
7.1.00.0000.07022.22
7.0.200.0070.00716.79
7.0.140.0100.08022.11
7.0.100.0130.08319.97
7.0.90.0030.09319.88
7.0.80.0270.08019.95
7.0.70.0100.08019.96
7.0.60.0100.08019.98
7.0.50.0100.05020.27
7.0.40.0100.04020.14
7.0.30.0130.07720.00
7.0.20.0130.09320.04
7.0.10.0100.04020.08
7.0.00.0130.08719.99
5.6.280.0130.08320.98
5.6.250.0170.09020.60
5.6.240.0130.04720.67
5.6.230.0130.09320.66
5.6.220.0200.08720.49
5.6.210.0200.06720.68
5.6.200.0070.08721.04
5.6.190.0030.06321.07
5.6.180.0330.07021.07
5.6.170.0200.08320.95
5.6.160.0170.09321.03
5.6.150.0100.05021.05
5.6.140.0200.08321.10
5.6.130.0170.07021.04
5.6.120.0170.10021.05
5.6.110.0200.08321.16
5.6.100.0130.05721.08
5.6.90.0170.09321.01
5.6.80.0270.06320.49
5.6.70.0130.08320.39
5.6.60.0070.06020.50
5.6.50.0270.08320.44
5.6.40.0200.08720.40
5.6.30.0030.06020.38
5.6.20.0030.09720.43
5.6.10.0200.08320.46
5.6.00.0200.08320.38
5.5.380.0270.08320.40
5.5.370.0300.07720.43
5.5.360.0270.06320.41
5.5.350.0400.07720.40
5.5.340.0330.07020.86
5.5.330.0300.07320.85
5.5.320.0170.06320.80
5.5.310.0070.07320.97
5.5.300.0300.07020.93
5.5.290.0170.07020.95
5.5.280.0070.09320.93
5.5.270.0300.07320.94
5.5.260.0300.07320.70
5.5.250.0200.08020.78
5.5.240.0130.09720.36
5.5.230.0230.08020.27
5.5.220.0200.06020.32
5.5.210.0170.07320.15
5.5.200.0170.09320.20
5.5.190.0300.05320.05
5.5.180.0430.07320.30
5.5.160.0330.08720.24
5.5.150.0130.08320.27
5.5.140.0270.06320.30
5.5.130.0430.09320.20
5.5.120.0230.06020.28
5.5.110.0170.06020.29
5.5.100.0070.08020.17
5.5.90.0200.06720.11
5.5.80.0300.05320.16
5.5.70.0170.06320.20
5.5.60.0470.07020.02
5.5.50.0230.08720.02
5.5.40.0170.07320.14
5.5.30.0030.08320.13
5.5.20.0300.06720.20
5.5.10.0170.06320.17
5.5.00.0300.07320.03
5.4.450.0200.06719.30
5.4.440.0200.09319.29
5.4.430.0230.08019.24
5.4.420.0130.08019.25
5.4.410.0100.05319.05
5.4.400.0130.09018.90
5.4.390.0030.08318.92
5.4.380.0070.08718.88
5.4.370.0230.04019.04
5.4.360.0100.08319.02
5.4.350.0200.08019.02
5.4.340.0170.04718.97
5.4.320.0170.07718.75
5.4.310.0130.04019.02
5.4.300.0100.07719.07
5.4.290.0130.08318.77
5.4.280.0170.08319.08
5.4.270.0030.06018.98
5.4.260.0230.06719.02
5.4.250.0170.09018.83
5.4.240.0070.05319.04
5.4.230.0070.06719.01
5.4.220.0100.07018.96
5.4.210.0130.08319.01
5.4.200.0170.07318.88
5.4.190.0130.08319.03
5.4.180.0130.08018.97
5.4.170.0200.07318.88
5.4.160.0270.07719.02
5.4.150.0200.08018.90
5.4.140.0130.08716.30
5.4.130.0030.09716.19
5.4.120.0170.07316.14
5.4.110.0070.05316.25
5.4.100.0030.06716.19
5.4.90.0330.07016.34
5.4.80.0130.06016.34
5.4.70.0070.06316.19
5.4.60.0270.06316.28
5.4.50.0270.06016.34
5.4.40.0170.05316.37
5.4.30.0170.05316.23
5.4.20.0200.05716.44
5.4.10.0300.06316.23
5.4.00.0200.06715.85
5.3.290.0170.06314.46
5.3.280.0030.10314.33
5.3.270.0230.07714.34
5.3.260.0130.09014.43
5.3.250.0230.06314.34
5.3.240.0200.09014.34
5.3.230.0100.08314.44
5.3.220.0130.08314.30
5.3.210.0130.07714.41
5.3.200.0070.07314.41
5.3.190.0130.08314.20
5.3.180.0230.08014.39
5.3.170.0130.08014.40
5.3.160.0230.06314.38
5.3.150.0130.05014.35
5.3.140.0100.09314.38
5.3.130.0100.09714.23
5.3.120.0270.08014.21
5.3.110.0030.09014.18
5.3.100.0130.04013.87
5.3.90.0170.06013.78
5.3.80.0100.09313.78
5.3.70.0200.05713.73
5.3.60.0170.08313.71
5.3.50.0170.09713.64
5.3.40.0200.07713.71
5.3.30.0100.08313.62
5.3.20.0070.04313.46
5.3.10.0070.08313.43
5.3.00.0230.07313.27
5.2.170.0230.06016.10
5.2.160.0200.06316.02
5.2.150.0270.05716.09
5.2.140.0200.06019.57
5.2.130.0300.05316.22
5.2.120.0200.06716.07
5.2.110.0230.05716.12
5.2.100.0100.07715.98
5.2.90.0270.05019.97
5.2.80.0300.06016.48
5.2.70.0400.05016.09
5.2.60.0200.03719.77
5.2.50.0100.07317.30
5.2.40.0100.07325.08
5.2.30.0130.09322.57
5.2.20.0270.07021.78
5.2.10.0170.07018.84
5.2.00.0100.03012.33
5.1.60.0100.05012.33
5.1.50.0070.04712.33
5.1.40.0070.03312.33
5.1.30.0030.05312.33
5.1.20.0070.03312.33
5.1.10.0000.05012.33
5.1.00.0100.04712.33
5.0.50.0070.03012.33
5.0.40.0030.04712.33
5.0.30.0070.06312.33
5.0.20.0000.04712.33
5.0.10.0130.03712.33
5.0.00.0000.06312.33
4.4.90.0030.03312.33
4.4.80.0000.03712.33
4.4.70.0030.03312.33
4.4.60.0000.03712.33
4.4.50.0030.03712.33
4.4.40.0000.04712.33
4.4.30.0030.03312.33
4.4.20.0000.03712.33
4.4.10.0070.03012.33
4.4.00.0100.04712.33
4.3.110.0030.02712.33
4.3.100.0070.02712.33
4.3.90.0070.03012.33
4.3.80.0000.05712.33
4.3.70.0030.03312.33
4.3.60.0100.02712.33
4.3.50.0070.02312.33
4.3.40.0030.05312.33
4.3.30.0030.01712.33
4.3.20.0000.03312.33
4.3.10.0030.03312.33
4.3.00.0000.03712.33

preferences:
34.49 ms | 401 KiB | 5 Q