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

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.100.0450.03214.69
7.2.90.0280.03714.26
7.2.80.0510.05114.47
7.2.70.0790.04414.71
7.2.60.0550.03114.87
7.2.50.0910.04514.59
7.2.40.0970.02714.72
7.2.30.1030.04214.95
7.2.20.0750.03915.23
7.2.10.0680.06215.16
7.2.00.0640.04114.93
7.1.220.0380.03013.79
7.1.210.0630.02913.70
7.1.200.0700.03713.61
7.1.190.0970.03613.63
7.1.180.0940.02913.61
7.1.170.0730.03313.61
7.1.160.0930.02113.94
7.1.150.0900.04513.80
7.1.140.0840.04013.70
7.1.130.1080.03713.86
7.1.120.0820.03813.61
7.1.110.0990.04813.61
7.1.100.0900.03013.64
7.1.90.0530.04913.91
7.1.80.0820.03713.61
7.1.70.0290.02613.92
7.1.60.1110.03231.66
7.1.50.0810.03831.96
7.1.40.0360.04732.04
7.1.30.1350.04432.24
7.1.20.0960.03731.90
7.0.310.0940.04613.61
7.0.300.1010.05713.61
7.0.290.0970.04313.70
7.0.280.1160.04513.61
7.0.270.0740.05313.63
7.0.260.1080.02913.61
7.0.250.0900.03013.61
7.0.240.0770.03913.69
7.0.230.1040.03413.61
7.0.220.0980.02813.61
7.0.210.0690.02913.61
7.0.200.0970.01913.61
7.0.190.0910.03213.70
7.0.180.0750.03313.77
7.0.170.1200.04813.82
7.0.160.0640.03213.75
5.6.380.0360.07614.43
5.6.370.0400.07014.09
5.6.360.0460.07814.39
5.6.350.0290.09914.59
5.6.340.0490.05614.59
5.6.330.0400.08214.64
5.6.320.0410.08314.37
5.6.310.0260.08914.58

preferences:
35.39 ms | 401 KiB | 5 Q