3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (phpversion() != '7.0.0') { die; } $ids = []; for($i=0; $i<500; $i++) { $time = time(); $randomString1 = bin2hex(random_bytes(20)); $randomString2 = bin2hex(random_bytes(10)); $ids[] = md5($time.$randomString1.$randomString2); } $a = array_count_values($ids); var_dump( arsort( $a ) );

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.3.120.0090.00617.15
7.3.110.0080.00817.15
7.3.100.0080.00317.15
7.3.90.0100.00717.15
7.3.80.0070.01117.15
7.3.70.0060.01217.15
7.3.60.0070.00417.15
7.3.50.0100.00717.15
7.3.40.0130.00317.15
7.3.30.0060.00917.15
7.3.20.0060.00917.15
7.3.10.0120.00516.74
7.3.00.0080.00816.74
7.2.240.0040.01417.15
7.2.230.0070.01017.15
7.2.220.0100.00717.15
7.2.210.0070.00417.15
7.2.200.0090.00617.15
7.2.190.0040.01417.15
7.2.180.0030.01217.15
7.2.170.0090.00617.15
7.2.160.0070.00717.15
7.2.150.0030.01317.15
7.2.140.0080.00317.15
7.2.130.0110.00516.85
7.2.120.0100.00816.78
7.2.110.0080.00716.79
7.2.100.0080.00616.90
7.2.90.0090.00916.86
7.2.80.0040.01116.97
7.2.70.0100.00916.74
7.2.60.0100.00516.77
7.2.50.0090.00716.67
7.2.40.0140.00616.75
7.2.30.0050.01216.82
7.2.20.0100.00316.80
7.2.10.0040.00916.85
7.2.00.0090.00717.48
7.1.330.0070.01017.15
7.1.320.0060.00617.15
7.1.310.0040.01217.15
7.1.300.0120.00417.15
7.1.290.0030.01317.15
7.1.280.0030.01317.15
7.1.270.0100.00717.15
7.1.260.0030.01017.15
7.1.250.0090.00416.11
7.1.100.0000.01317.85
7.1.70.0030.00317.02
7.1.60.0100.01419.52
7.1.50.0080.00816.86
7.1.00.0030.07722.35
7.0.200.0000.00916.73
7.0.100.0100.06720.03
7.0.90.0030.08719.97
7.0.80.0000.09019.97
7.0.70.0100.08719.97
7.0.60.0070.04019.99
7.0.50.0430.08020.30
7.0.40.0070.08720.14
7.0.30.0200.06320.13
7.0.20.0070.09020.15
7.0.10.0100.07719.95
7.0.00.0170.05720.05
5.6.280.0000.03320.93
5.6.250.0100.05020.59
5.6.240.0030.05020.66
5.6.230.0100.08720.68
5.6.220.0070.05020.51
5.6.210.0100.05320.74
5.6.200.0070.05721.11
5.6.190.0070.08321.13
5.6.180.0070.08320.95
5.6.170.0100.07321.03
5.6.160.0070.08321.04
5.6.150.0100.08021.11
5.6.140.0070.08320.93
5.6.130.0170.07021.13
5.6.120.0100.07321.04
5.6.110.0030.08720.94
5.6.100.0200.04020.94
5.6.90.0030.05021.00
5.6.80.0000.04320.46
5.6.70.0070.08020.33
5.6.60.0030.07020.38
5.6.50.0130.06720.46
5.6.40.0030.08320.29
5.6.30.0170.07020.31
5.6.20.0130.07020.40
5.6.10.0100.04020.43
5.6.00.0200.07020.29
5.5.380.0130.05320.39
5.5.370.0070.06720.37
5.5.360.0070.05320.34
5.5.350.0130.08020.43
5.5.340.0170.07020.89
5.5.330.0070.08320.73
5.5.320.0130.08020.82
5.5.310.0070.05020.87
5.5.300.0100.07020.82
5.5.290.0100.05320.86
5.5.280.0030.08720.77
5.5.270.0130.06320.91
5.5.260.0100.07720.91
5.5.250.0070.08320.70
5.5.240.0100.06020.25
5.5.230.0070.08020.21
5.5.220.0100.07020.29
5.5.210.0000.08320.18
5.5.200.0100.07720.17
5.5.190.0100.05020.21
5.5.180.0030.08020.26
5.5.160.0100.07320.06
5.5.150.0070.08319.98
5.5.140.0170.06720.18
5.5.130.0100.07320.17
5.5.120.0070.08020.18
5.5.110.0100.05020.27
5.5.100.0000.07020.10
5.5.90.0070.06020.09
5.5.80.0070.08320.17
5.5.70.0100.05320.08
5.5.60.0100.05720.13
5.5.50.0170.06720.11
5.5.40.0030.08020.13
5.5.30.0170.07020.13
5.5.20.0100.07720.02
5.5.10.0100.06720.05
5.5.00.0130.06720.06

preferences:
34.94 ms | 401 KiB | 5 Q