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; } echo PHP_EOL;

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.0050.01115.24
7.4.00.0080.01115.18
7.3.130.0110.00615.21
7.3.120.0060.00814.99
7.3.110.0090.01014.99
7.3.100.0080.00714.91
7.3.90.0100.00514.79
7.3.80.0080.00614.75
7.3.70.0030.00814.82
7.3.60.0090.00614.82
7.3.50.0050.00814.84
7.3.40.0120.00214.98
7.3.30.0000.01214.70
7.3.20.0040.01116.86
7.3.10.0050.00816.71
7.3.00.0040.00816.88
7.2.260.0100.00715.17
7.2.250.0070.01115.08
7.2.240.0060.00915.13
7.2.230.0050.01015.21
7.2.220.0030.01115.10
7.2.210.0080.00815.31
7.2.200.0050.00915.30
7.2.190.0060.00615.14
7.2.180.0060.00615.15
7.2.170.0070.00915.11
7.2.160.0030.01015.00
7.2.150.0080.00616.95
7.2.140.0080.00817.13
7.2.130.0070.00517.07
7.2.120.0120.00416.94
7.2.110.0070.00716.88
7.2.100.0060.00917.09
7.2.90.0080.00817.13
7.2.80.0050.01117.17
7.2.70.0090.00516.88
7.2.60.0090.00617.12
7.2.50.0100.00417.04
7.2.40.0110.00717.14
7.2.30.0100.00317.02
7.2.20.0060.00917.05
7.2.10.0020.01017.02
7.2.00.0050.00817.84
7.1.330.0050.01015.77
7.1.320.0060.00715.73
7.1.310.0080.00415.85
7.1.300.0090.00415.86
7.1.290.0020.01315.76
7.1.280.0030.01215.95
7.1.270.0070.00715.93
7.1.260.0090.00615.89
7.1.250.0070.00715.86
7.1.240.0100.00615.74
7.1.230.0110.00315.92
7.1.220.0050.01215.85
7.1.210.0050.00715.81
7.1.200.0090.00515.99
7.1.190.0040.00915.74
7.1.180.0080.00515.89
7.1.170.0080.00815.77
7.1.160.0060.00915.87
7.1.150.0020.01116.03
7.1.140.0070.00715.85
7.1.130.0020.01115.91
7.1.120.0060.00916.01
7.1.110.0060.00915.82
7.1.100.0030.01315.93
7.1.90.0050.01215.97
7.1.80.0020.01015.94
7.1.70.0020.01116.41
7.1.60.0050.01016.33
7.1.50.0040.01116.29
7.1.40.0040.00816.12
7.1.30.0060.00616.10
7.1.20.0040.01016.14
7.1.10.0050.00716.09
7.1.00.0060.00716.22
7.0.330.0100.00415.48
7.0.320.0030.01015.44
7.0.310.0070.00715.37
7.0.300.0070.00715.29
7.0.290.0070.00615.33
7.0.280.0060.01015.58
7.0.270.0050.00815.53
7.0.260.0080.00615.36
7.0.250.0050.00915.48
7.0.240.0070.00815.44
7.0.230.0060.00715.48
7.0.220.0030.01115.61
7.0.210.0060.00715.34
7.0.200.0050.00815.88
7.0.190.0050.00715.88
7.0.180.0040.00815.75
7.0.170.0050.00815.93
7.0.160.0050.00915.89
7.0.150.0060.00615.84
7.0.140.0050.00915.79
7.0.130.0090.00415.80
7.0.120.0070.00915.79
7.0.110.0070.00415.83
7.0.100.0050.00715.84
7.0.90.0040.00715.76
7.0.80.0080.00315.82
7.0.70.0080.00515.80
7.0.60.0040.00815.80
7.0.50.0060.00615.76
7.0.40.0050.00813.91
7.0.30.0040.00913.86
7.0.20.0040.00713.71
7.0.10.0050.00813.87
7.0.00.0030.00713.81
5.6.400.0050.00814.42
5.6.390.0020.01314.22
5.6.380.0080.00914.51
5.6.370.0030.00914.45
5.6.360.0070.00914.29
5.6.350.0130.00014.28
5.6.340.0080.00514.47
5.6.330.0050.01014.30
5.6.320.0110.00614.46
5.6.310.0090.00514.42
5.6.300.0100.01616.55
5.6.290.0120.01416.51
5.6.280.0050.02216.55
5.6.270.0100.02616.59
5.6.260.0090.01616.56
5.6.250.0070.01816.55
5.6.240.0050.02116.71
5.6.230.0080.01916.60
5.6.220.0050.02316.51
5.6.210.0050.02216.49
5.6.200.0020.02116.53
5.6.190.0060.02116.49
5.6.180.0110.01416.61
5.6.170.0070.02316.52
5.6.160.0050.02116.51
5.6.150.0030.02616.48
5.6.140.0070.01916.58
5.6.130.0060.01716.58
5.6.120.0090.01816.67
5.6.110.0050.02216.49
5.6.100.0110.01816.51
5.6.90.0060.02216.50
5.6.80.0020.04016.37
5.6.70.0050.02216.37
5.6.60.0040.01916.38
5.6.50.0050.02216.33
5.6.40.0090.01816.38
5.6.30.0040.02416.30
5.6.20.0090.02016.25
5.6.10.0050.03216.23
5.6.00.0070.01716.29
5.5.380.0030.04417.67
5.5.370.0030.04217.58
5.5.360.0090.04117.56
5.5.350.0060.04117.45
5.5.340.0070.07318.18
5.5.330.0030.05117.84
5.5.320.0030.04418.18
5.5.310.0060.07818.08
5.5.300.0070.03717.70
5.5.290.0070.04118.08
5.5.280.0030.04217.84
5.5.270.0000.05818.02
5.5.260.0130.03918.11
5.5.250.0030.04817.99
5.5.240.0030.03817.48
5.5.230.0040.04217.40
5.5.220.0030.04117.41
5.5.210.0000.04617.42
5.5.200.0100.03417.10
5.5.190.0070.06017.21
5.5.180.0000.04317.47
5.5.160.0070.03617.36
5.5.150.0100.03317.05
5.5.140.0070.04117.47
5.5.130.0030.04517.39
5.5.120.0030.04017.48
5.5.110.0030.04217.44
5.5.100.0000.08217.38
5.5.90.0030.05217.33
5.5.80.0070.03816.96
5.5.70.0000.04217.10
5.5.60.0030.03817.27
5.5.50.0100.03317.38
5.5.40.0000.05817.33
5.5.30.0070.05917.28
5.5.20.0030.03917.41
5.5.10.0100.06517.36
5.5.00.0030.05817.09
5.4.450.0100.04019.25
5.4.440.0030.04519.38
5.4.430.0100.03319.56
5.4.420.0060.03819.49
5.4.410.0030.07219.44
5.4.400.0070.03718.99
5.4.390.0130.02919.09
5.4.380.0070.03819.07
5.4.370.0060.03719.21
5.4.360.0060.03919.09
5.4.350.0040.04318.99
5.4.340.0100.03319.07
5.4.320.0140.03418.89
5.4.310.0060.03818.98
5.4.300.0100.04819.21
5.4.290.0030.03819.06
5.4.280.0070.08019.14
5.4.270.0070.06819.07
5.4.260.0070.05419.24
5.4.250.0030.03918.99
5.4.240.0070.06218.92
5.4.230.0100.06619.16
5.4.220.0030.03918.95
5.4.210.0030.06519.13
5.4.200.0000.04719.11
5.4.190.0100.06819.06
5.4.180.0060.04819.11
5.4.170.0070.03618.97
5.4.160.0060.03519.14
5.4.150.0070.04318.88
5.4.140.0030.04116.46
5.4.130.0030.03616.67
5.4.120.0030.04116.49
5.4.110.0030.07016.49
5.4.100.0000.08316.64
5.4.90.0030.04816.73
5.4.80.0060.03816.49
5.4.70.0070.03316.71
5.4.60.0000.05116.68
5.4.50.0030.03616.60
5.4.40.0060.03816.73
5.4.30.0000.04316.71
5.4.20.0060.03816.70
5.4.10.0030.03816.67
5.4.00.0060.03815.90
5.3.290.0030.04214.74
5.3.280.0060.04014.78
5.3.270.0100.03614.96
5.3.260.0090.03414.88
5.3.250.0060.03514.87
5.3.240.0000.04014.84
5.3.230.0030.04514.65
5.3.220.0040.03714.62
5.3.210.0070.07014.84
5.3.200.0100.08714.82
5.3.190.0070.03814.75
5.3.180.0070.03314.75
5.3.170.0030.03914.84
5.3.160.0000.04914.86
5.3.150.0070.07514.75
5.3.140.0000.04414.83
5.3.130.0030.05314.62
5.3.120.0000.04414.83
5.3.110.0030.03714.43
5.3.100.0070.05214.29
5.3.90.0000.07814.01
5.3.80.0060.06414.07
5.3.70.0070.07113.96
5.3.60.0030.04014.35
5.3.50.0000.04014.13
5.3.40.0030.04114.21
5.3.30.0030.03513.96
5.3.20.0090.03214.05
5.3.10.0030.03613.96
5.3.00.0030.03513.96
5.2.170.0100.05013.96
5.2.160.0060.03513.96
5.2.150.0030.02913.96
5.2.140.0060.02613.96
5.2.130.0000.06313.96
5.2.120.0000.06513.96
5.2.110.0000.04713.96
5.2.100.0090.02513.96
5.2.90.0030.02813.96
5.2.80.0030.03013.96
5.2.70.0070.03613.96
5.2.60.0060.02913.96
5.2.50.0060.02513.96
5.2.40.0060.02513.96
5.2.30.0030.03113.96
5.2.20.0030.03113.96
5.2.10.0070.02713.96
5.2.00.0030.03113.96
5.1.60.0000.02913.96
5.1.50.0040.02813.96
5.1.40.0040.02913.96
5.1.30.0060.02513.96
5.1.20.0040.02513.96
5.1.10.0060.02213.96
5.1.00.0000.02713.96
5.0.50.0000.02313.96
5.0.40.0000.02313.96
5.0.30.0000.03313.96
5.0.20.0000.02313.96
5.0.10.0000.02913.96
5.0.00.0000.03313.96
4.4.90.0000.02613.96
4.4.80.0040.01413.96
4.4.70.0000.02113.96
4.4.60.0000.01813.96
4.4.50.0030.01513.96
4.4.40.0030.03013.96
4.4.30.0000.01813.96
4.4.20.0000.01813.96
4.4.10.0000.01913.96
4.4.00.0000.02713.96
4.3.110.0000.01713.96
4.3.100.0030.01413.96
4.3.90.0000.03613.96
4.3.80.0070.03013.96
4.3.70.0030.01313.96
4.3.60.0030.01213.96
4.3.50.0040.01413.96
4.3.40.0030.02113.96
4.3.30.0030.01713.96
4.3.20.0000.02113.96
4.3.10.0030.01613.96
4.3.00.0000.01813.96

preferences:
30.17 ms | 403 KiB | 5 Q