3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ["6c","af","2a","7c","27","62","42","d0","2a","7b","9e","0b","fa","d9","cc","0e","10","fb","eb","a5","af","2f","d9","d5","d7","f4","b6"]; //////////////////////////////////////////////////////////////////// $time_start = microtime(true); foreach($arr as $lang) { echo "value_{$lang}"; } $time_end = microtime(true); $time1 = $time_end - $time_start; echo "Did nothing in $time1 seconds\n"; ///////////////////////////////////////////////////////////////////// $time_start = microtime(true); foreach($arr as $lang) { echo $lang; } $time_end = microtime(true); $time2 = $time_end - $time_start; echo "Did nothing in $time2 seconds\n"; echo $time1 <=> $time2; echo PHP_EOL . ($time1 - $time2); $o = $time1 - $time2; echo ($o/$time2*100) . '%';

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.10.0060.01114.80
7.4.00.0080.01114.83
7.3.130.0080.01114.90
7.3.120.0080.01014.94
7.3.110.0050.01214.66
7.3.100.0070.00814.75
7.3.90.0050.01014.87
7.3.80.0070.00714.98
7.3.70.0070.00914.83
7.3.60.0090.00614.84
7.3.50.0050.01114.64
7.3.40.0040.01014.79
7.3.30.0100.00314.74
7.3.20.0090.00716.32
7.3.10.0080.00816.22
7.3.00.0080.00716.41
7.2.260.0070.01114.93
7.2.250.0070.01015.20
7.2.240.0060.01115.08
7.2.230.0080.00815.17
7.2.220.0070.00915.10
7.2.210.0060.01114.95
7.2.200.0100.00515.07
7.2.190.0110.00715.04
7.2.180.0090.00715.00
7.2.170.0050.01015.04
7.2.160.0030.01115.08
7.2.150.0090.01016.59
7.2.140.0090.00716.59
7.2.130.0060.01116.47
7.2.120.0060.00816.47
7.2.110.0080.00816.34
7.2.100.0070.01016.47
7.2.90.0080.00816.54
7.2.80.0090.00916.42
7.2.70.0070.00916.51
7.2.60.0060.01116.55
7.2.50.0100.00616.54
7.2.40.0090.00816.42
7.2.30.0070.01016.51
7.2.20.0070.00916.50
7.2.10.0060.01016.53
7.2.00.0060.00916.39
7.1.330.0080.00715.73
7.1.320.0060.00815.43
7.1.310.0070.00715.51
7.1.300.0080.00715.41
7.1.290.0080.00615.35
7.1.280.0060.01015.55
7.1.270.0060.00815.41
7.1.260.0100.00915.33
7.1.250.0070.00815.22
7.1.240.0050.00915.64
7.1.230.0050.00815.89
7.1.220.0050.01015.77
7.1.210.0140.00015.86
7.1.200.0070.00715.88
7.1.190.0070.00815.93
7.1.180.0110.00415.83
7.1.170.0070.00515.83
7.1.160.0080.00415.71
7.1.150.0070.00815.82
7.1.140.0020.01015.77
7.1.130.0100.00215.78
7.1.120.0030.00915.83
7.1.110.0060.00715.98
7.1.100.0030.01115.85
7.1.90.0100.00415.86
7.1.80.0050.00915.80
7.1.70.0080.00715.87
7.1.60.0050.00915.67
7.1.50.0100.00415.83
7.1.40.0040.01115.97
7.1.30.0070.00715.73
7.1.20.0060.00715.79
7.1.10.0090.00515.76
7.1.00.0050.01115.95

preferences:
35.66 ms | 401 KiB | 5 Q