3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); for ($i = 0; $i < 100000; ++$i) $a[] = rand(); $t = microtime(true); echo (microtime(true) - $t) / 1000000;

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.01319.56
7.3.120.0150.01319.64
7.3.110.0120.01619.75
7.3.100.0150.00719.77
7.3.90.0060.01319.33
7.3.80.0100.00719.43
7.3.70.0110.01119.55
7.3.60.0100.01319.50
7.3.50.0130.01119.48
7.3.40.0110.01019.72
7.3.30.0090.01019.73
7.3.20.0080.00822.40
7.3.10.0120.01322.40
7.3.00.0160.01022.40
7.2.250.0140.01419.57
7.2.240.0100.01919.72
7.2.230.0070.01519.89
7.2.220.0140.01219.88
7.2.210.0070.01719.67
7.2.200.0070.01319.59
7.2.190.0090.01219.90
7.2.180.0030.01819.80
7.2.170.0050.01719.73
7.2.160.0150.00619.55
7.2.150.0070.00722.89
7.2.140.0060.01022.54
7.2.130.0080.01322.53
7.2.120.0140.01622.62
7.2.110.0210.01422.48
7.2.100.0210.01122.83
7.2.90.0220.01022.76
7.2.80.0140.01222.58
7.2.70.0220.00922.86
7.2.60.0190.01022.57
7.2.50.0190.01322.92
7.2.40.0190.01222.90
7.2.30.0150.01322.59
7.2.20.0180.01222.33
7.2.10.0170.01322.48
7.2.00.0150.01323.34
7.1.330.0030.02121.58
7.1.320.0070.01221.76
7.1.310.0050.01721.81
7.1.300.0090.01621.78
7.1.290.0050.01821.68
7.1.280.0050.01921.72
7.1.270.0080.01221.65
7.1.260.0030.01421.69
7.1.250.0180.01521.61
7.1.100.0000.01723.62
7.1.70.0060.01323.21
7.1.60.0290.01041.32
7.1.50.0180.01840.87
7.1.40.0200.01740.51
7.1.30.0260.01040.49
7.1.20.0220.01240.55
7.1.10.0070.01422.67
7.1.00.0100.01322.27
7.0.200.0030.01722.48
7.0.190.0040.01522.59
7.0.180.0030.01922.13
7.0.170.0100.01022.28
7.0.160.0000.02022.15
7.0.150.0030.01622.29
7.0.140.0120.00922.48
7.0.130.0000.02122.43
7.0.120.0030.01822.40
7.0.110.0070.01422.47
7.0.100.0090.01222.38
7.0.90.0040.01822.28
7.0.80.0070.01422.26
7.0.70.0040.01622.30
7.0.60.0030.01722.20
7.0.50.0060.02522.24
7.0.40.0060.01622.49
7.0.30.0130.01022.21
7.0.20.0060.01722.44
7.0.10.0090.01222.40
7.0.00.0140.00722.28

preferences:
35.76 ms | 401 KiB | 5 Q