3v4l.org

run code in 300+ PHP versions simultaneously
<?php function build_order_no() { mt_srand((double) microtime() * 1000000); return date('Ymd') . str_pad(mt_rand(1, 99999), 5, '0', STR_PAD_LEFT); } $i = 10; while($i) { $no = build_order_no(); $uniqid = uniqid(); var_dump("$no\n$uniqid\n"); // file_put_contents('test.log', "$no\n$uniqid\n", FILE_APPEND); --$i; }

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.0090.01115.05
7.3.120.0090.00814.97
7.3.110.0110.00714.94
7.3.100.0070.00515.03
7.3.90.0010.01315.15
7.3.80.0070.00915.07
7.3.70.0050.00914.80
7.3.60.0060.00814.86
7.3.50.0030.01014.96
7.3.40.0040.00715.03
7.3.30.0050.01014.98
7.3.20.0040.00616.74
7.3.10.0050.00416.63
7.3.00.0070.00716.77
7.2.250.0080.00915.13
7.2.240.0080.00815.00
7.2.230.0040.01015.25
7.2.220.0080.00315.31
7.2.210.0030.01215.19
7.2.200.0060.00815.16
7.2.190.0080.00615.19
7.2.180.0090.00615.23
7.2.170.0060.00915.13
7.2.00.0000.01219.52
7.1.330.0050.00815.99
7.1.320.0060.00815.97
7.1.310.0090.00615.84
7.1.300.0090.00415.78
7.1.290.0060.00815.79
7.1.280.0060.01115.67
7.1.270.0070.00815.85
7.1.260.0040.01115.79
7.1.70.0090.00917.13
7.1.60.0070.00417.37
7.1.50.0050.01117.07
7.1.40.0000.01516.72
7.1.30.0040.01216.71
7.1.20.0140.00016.75
7.1.10.0000.01316.74
7.1.00.0040.00416.86
7.0.200.0050.00517.03
7.0.190.0080.00416.70
7.0.180.0040.00816.21
7.0.170.0000.01116.25
7.0.160.0080.00416.29
7.0.150.0000.01016.49
7.0.140.0070.00416.52
7.0.130.0000.01016.62
7.0.120.0050.00316.66
7.0.110.0040.00416.39
7.0.100.0000.00916.34
7.0.90.0040.00416.38
7.0.80.0030.00816.49
7.0.70.0050.00316.52
7.0.60.0000.01616.25
7.0.50.0040.00416.45
7.0.40.0000.01316.21
7.0.30.0030.00816.21
7.0.20.0000.00916.21
7.0.10.0040.00416.21
7.0.00.0040.00416.21
5.6.300.0030.04520.68
5.6.290.0070.04720.93
5.6.280.0070.05320.91
5.6.270.0030.04920.91
5.6.260.0000.04820.79
5.6.250.0030.04520.90
5.6.240.0030.04020.82
5.6.230.0070.07420.82
5.6.220.0060.04220.94
5.6.210.0030.05421.02
5.6.200.0070.04020.93
5.6.190.0000.04720.84
5.6.180.0030.05020.77
5.6.170.0030.04620.86
5.6.160.0100.06620.98
5.6.150.0000.04420.84
5.6.140.0000.05120.73
5.6.130.0030.04321.02
5.6.120.0070.05220.95
5.6.110.0000.04320.72
5.6.100.0030.04021.02
5.6.90.0030.04420.88
5.6.80.0100.03520.21
5.6.70.0000.05020.20
5.6.60.0060.03820.14
5.6.50.0030.04920.41
5.6.40.0000.05320.28
5.6.30.0030.04820.29
5.6.20.0100.03920.20
5.6.10.0040.04220.39
5.6.00.0160.05520.27
5.5.380.0070.04217.52
5.5.370.0040.04017.55
5.5.360.0130.07117.56
5.5.350.0030.04217.52
5.5.340.0030.04118.12
5.5.330.0070.04118.07
5.5.320.0000.04818.01
5.5.310.0030.04818.08
5.5.300.0100.04417.83
5.5.290.0070.04018.19
5.5.280.0000.04418.09
5.5.270.0000.05317.70
5.5.260.0070.05218.12
5.5.250.0460.03317.90
5.5.240.0100.03017.56
5.5.230.0060.04217.12
5.5.220.0060.03417.56
5.5.210.0030.04017.13
5.5.200.0000.04217.47
5.5.190.0030.04217.39
5.5.180.0030.04317.36
5.5.160.0040.04017.45
5.5.150.0030.04917.52
5.5.140.0070.03717.41
5.5.130.0030.04817.43
5.5.120.0090.04417.44
5.5.110.0030.04117.43
5.5.100.0090.03317.29
5.5.90.0140.03417.43
5.5.80.0070.03317.38
5.5.70.0090.03617.33
5.5.60.0000.04517.10
5.5.50.0070.03917.35
5.5.40.0030.04917.25
5.5.30.0070.03817.33
5.5.20.0030.07216.94
5.5.10.0040.04017.41
5.5.00.0100.03517.26
5.4.450.0030.04519.32
5.4.440.0030.05519.21
5.4.430.0100.03619.34
5.4.420.0030.04619.32
5.4.410.0000.04319.11
5.4.400.0030.03719.01
5.4.390.0070.03318.96
5.4.380.0040.05018.96
5.4.370.0110.03918.98
5.4.360.0090.04418.92
5.4.350.0060.03719.13
5.4.340.0030.03818.98
5.4.320.0000.04818.98
5.4.310.0090.03519.09
5.4.300.0060.04619.13
5.4.290.0000.04018.83
5.4.280.0100.05018.87
5.4.270.0090.03119.12
5.4.260.0070.04018.91
5.4.250.0030.03819.00
5.4.240.0030.04218.90
5.4.230.0000.04219.08
5.4.220.0100.05718.89
5.4.210.0030.03718.86
5.4.200.0000.04518.86
5.4.190.0070.03719.09
5.4.180.0030.03819.00
5.4.170.0060.04718.81
5.4.160.0070.03718.80
5.4.150.0000.04218.90
5.4.140.0030.07116.42
5.4.130.0100.07016.68
5.4.120.0000.04816.59
5.4.110.0060.03216.51
5.4.100.0030.04216.67
5.4.90.0030.03616.68
5.4.80.0000.03816.61
5.4.70.0000.04716.67
5.4.60.0090.02816.39
5.4.50.0100.06816.40
5.4.40.0060.03416.71
5.4.30.0030.03616.48
5.4.20.0030.03416.38
5.4.10.0030.07816.48
5.4.00.0060.03216.21
5.3.290.0000.04616.21
5.3.280.0040.04716.21
5.3.270.0030.03716.21
5.3.260.0070.05216.21
5.3.250.0090.03616.21
5.3.240.0030.05416.21
5.3.230.0210.03116.21
5.3.220.0030.04016.21
5.3.210.0030.03816.21
5.3.200.0030.03716.21
5.3.190.0000.04316.21
5.3.180.0000.05016.21
5.3.170.0060.04416.21
5.3.160.0030.03616.21
5.3.150.0090.03116.21
5.3.140.0030.03816.21
5.3.130.0270.03416.21
5.3.120.0030.03716.21
5.3.110.0000.05116.21
5.3.100.0000.04016.21
5.3.90.0030.04616.21
5.3.80.0030.04416.21
5.3.70.0070.03916.21
5.3.60.0030.03316.21
5.3.50.0030.03916.21
5.3.40.0000.04016.21
5.3.30.0000.04216.21
5.3.20.0000.06316.21
5.3.10.0000.04716.21
5.3.00.0000.03716.21
5.2.170.0030.02816.21
5.2.160.0000.03116.21
5.2.150.0030.02816.21
5.2.140.0030.03516.21
5.2.130.0030.03116.21
5.2.120.0100.03516.21
5.2.110.0040.02916.21
5.2.100.0000.03216.21
5.2.90.0000.03616.21
5.2.80.0030.02716.21
5.2.70.0000.03616.21
5.2.60.0030.05616.21
5.2.50.0000.04316.21
5.2.40.0030.05416.21
5.2.30.0100.04216.21
5.2.20.0000.03416.21
5.2.10.0000.03316.21
5.2.00.0030.03616.21
5.1.60.0030.02316.21
5.1.50.0060.02716.21
5.1.40.0000.03216.21
5.1.30.0030.02416.21
5.1.20.0000.02716.21
5.1.10.0000.03216.21
5.1.00.0000.04516.21
5.0.50.0000.05116.21
5.0.40.0000.02716.21
5.0.30.0060.03216.21
5.0.20.0140.02016.21
5.0.10.0030.02616.21
5.0.00.0000.03516.21
4.4.90.0000.02016.21
4.4.80.0070.03816.21
4.4.70.0030.02616.21
4.4.60.0030.01616.21
4.4.50.0000.01816.21
4.4.40.0030.02916.21
4.4.30.0000.01816.21
4.4.20.0000.03816.21
4.4.10.0000.01716.21
4.4.00.0000.04516.21
4.3.110.0000.01816.21
4.3.100.0030.01316.21
4.3.90.0030.01916.21
4.3.80.0030.03316.21
4.3.70.0060.01516.21
4.3.60.0030.01416.21
4.3.50.0030.01316.21
4.3.40.0000.02716.21
4.3.30.0040.01416.21
4.3.20.0000.01916.21
4.3.10.0030.02516.21
4.3.00.0000.01716.21

preferences:
38.06 ms | 400 KiB | 5 Q