3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = []; for($i = 0; $i < 5000; $i++) { $array[] = md5('hallo'); $array[] = md5('bla'); } echo number_format(memory_get_usage(), 0, ',', '.'); echo "\n"; echo number_format(memory_get_usage(true), 0, ',', '.');

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.2.00.0040.01419.06
7.1.70.0050.01517.13
7.1.60.0170.01319.11
7.1.50.0030.02016.96
7.1.00.0100.07322.28
7.0.200.0000.01016.86
7.0.140.0070.07722.01
7.0.60.0070.04320.96
7.0.50.0030.05318.94
7.0.40.0130.08320.04
7.0.30.0330.09020.00
7.0.20.0230.05720.00
7.0.10.0030.04719.99
7.0.00.0030.04320.08
5.6.280.0000.08322.92
5.6.210.0200.07722.30
5.6.200.0130.08019.87
5.6.190.0030.05022.08
5.6.180.0330.08022.08
5.6.170.0300.07722.04
5.6.160.0000.08722.19
5.6.150.0030.06719.73
5.6.140.0070.04319.85
5.6.130.0070.09319.96
5.6.120.0030.05722.83
5.6.110.0070.04722.88
5.6.100.0070.07022.88
5.6.90.0200.05722.87
5.6.80.0070.06022.18
5.6.70.4530.04022.16
5.5.350.0170.09022.09
5.5.340.0170.08019.74
5.5.330.0070.07021.93
5.5.320.0130.08322.03
5.5.310.0230.06321.86
5.5.300.0030.05719.73
5.5.290.0170.07019.73
5.5.280.0070.07322.48
5.5.270.0000.05022.68
5.5.260.0130.08322.55
5.5.250.0130.07722.56
5.5.240.0300.05322.06
5.4.450.0770.06720.99
5.4.440.0570.06321.16
5.4.430.0100.06721.14
5.4.420.0730.00021.02
5.4.410.0730.00021.23
5.4.400.0700.00020.76
5.4.390.0900.00020.70
5.4.380.0700.00020.73
5.4.370.0730.00020.77
5.4.360.0700.00020.88
5.4.350.0800.00020.72
5.4.340.0060.05613.77
5.4.320.0050.05014.25
5.4.310.0100.06214.25
5.4.300.0130.05914.25
5.4.290.0120.05114.25
5.4.280.0050.05114.14
5.4.270.0100.04014.15
5.4.260.0070.04814.15
5.4.250.0110.03914.14
5.4.240.0090.05214.15
5.4.230.0050.04514.14
5.4.220.0080.06814.14
5.4.210.0040.04614.14
5.4.200.0030.04614.14
5.4.190.0130.04514.13
5.4.180.0110.03914.13
5.4.170.0050.04514.14
5.4.160.0060.04514.14
5.4.150.0070.04514.14
5.4.140.0020.04913.82
5.4.130.0120.04313.81
5.4.120.0060.06713.77
5.4.110.0130.04713.76
5.4.100.0080.04513.77
5.4.90.0070.05213.77
5.4.80.0080.04413.76
5.4.70.0080.04113.76
5.4.60.0090.04113.76
5.4.50.0110.03513.76
5.4.40.0070.04313.75
5.4.30.0110.04313.75
5.4.20.0080.04013.75
5.4.10.0040.04713.74
5.4.00.0060.04313.24
5.3.290.0080.04312.80
5.3.280.0200.09912.71
5.3.270.0130.06812.73
5.3.260.0080.05412.71
5.3.250.0080.05212.72
5.3.240.0100.05412.72
5.3.230.0050.05312.71
5.3.220.0050.04112.68
5.3.210.0060.05312.68
5.3.200.0090.03812.68
5.3.190.0100.03912.68
5.3.180.0150.06512.68
5.3.170.0080.04012.67
5.3.160.0040.04212.68
5.3.150.0110.06512.68
5.3.140.0110.04312.66
5.3.130.0060.04912.66
5.3.120.0080.04212.66
5.3.110.0160.03912.66
5.3.100.0070.03912.11
5.3.90.0070.04112.08
5.3.80.0090.04012.07
5.3.70.0050.04112.07
5.3.60.0090.03512.06
5.3.50.0100.03812.00
5.3.40.0070.03812.00
5.3.30.0060.03911.95
5.3.20.0090.05011.72
5.3.10.0140.06111.70
5.3.00.0120.04411.68
5.2.170.0060.0319.18
5.2.160.0060.0359.18
5.2.150.0060.0389.18
5.2.140.0060.0479.18
5.2.130.0070.0339.14
5.2.120.0050.0329.14
5.2.110.0070.0459.15
5.2.100.0090.0359.14
5.2.90.0050.0459.14
5.2.80.0050.0349.14
5.2.70.0070.0289.13
5.2.60.0050.0309.09
5.2.50.0030.0329.05
5.2.40.0060.0299.04
5.2.30.0040.0319.01
5.2.20.0060.0339.01
5.2.10.0060.0288.92
5.2.00.0020.0348.78
5.1.60.0040.0268.07
5.1.50.0030.0268.06
5.1.40.0050.0298.04
5.1.30.0080.0298.40
5.1.20.0070.0258.42
5.1.10.0080.0228.14
5.1.00.0090.0218.14
5.0.50.0050.0206.62
5.0.40.0040.0196.48
5.0.30.0050.0346.29
5.0.20.0030.0206.26
5.0.10.0060.0246.24
5.0.00.0060.0386.23
4.4.90.0040.0214.78
4.4.80.0050.0204.76
4.4.70.0030.0174.75
4.4.60.0070.0164.76
4.4.50.0030.0174.77
4.4.40.0030.0254.71
4.4.30.0030.0174.76
4.4.20.0080.0274.84
4.4.10.0030.0184.85
4.4.00.0030.0274.76
4.3.110.0010.0194.67
4.3.100.0100.0454.66
4.3.90.0030.0194.63
4.3.80.0020.0264.59
4.3.70.0040.0144.63
4.3.60.0030.0144.63
4.3.50.0010.0174.63
4.3.40.0050.0304.54
4.3.30.0030.0223.29
4.3.20.0020.0223.25
4.3.10.0060.0183.22
4.3.00.0000.02310.05

preferences:
36.86 ms | 401 KiB | 5 Q