3v4l.org

run code in 300+ PHP versions simultaneously
<?php function chrono() { $temps = explode(' ', microtime()); return $temps[0]+$temps[1]; } $debut = chrono(); for($i=0;$i<1000;$i++) { $p = hash('sha512', 'toto'); } echo'<hr>'; echo round(chrono()-$debut,10);

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.0070.00719.39
7.1.70.0030.00617.19
7.1.60.0060.00617.19
7.1.50.0060.00617.03
7.1.00.0070.07722.46
7.0.200.0030.01316.94
7.0.140.0000.08022.08
7.0.60.0100.08019.93
7.0.50.0030.04017.96
7.0.40.0100.07720.05
7.0.30.0470.08720.17
7.0.20.0330.07720.19
7.0.10.0030.04720.34
7.0.00.0130.04020.11
5.6.280.0030.07721.07
5.6.210.0030.04720.65
5.6.200.0000.05718.18
5.6.190.0000.04720.65
5.6.180.0370.07020.64
5.6.170.0130.04020.64
5.6.160.0100.06320.59
5.6.150.0100.07718.14
5.6.140.0030.06718.21
5.6.130.0070.03718.24
5.6.120.0030.05720.97
5.6.110.0130.08021.11
5.6.100.0070.09021.05
5.6.90.0230.06321.10
5.6.80.0070.08320.41
5.6.70.4400.03720.43
5.5.350.0100.08320.47
5.5.340.0130.04717.99
5.5.330.0100.08320.41
5.5.320.0230.04020.30
5.5.310.0330.05020.50
5.5.300.0070.04017.98
5.5.290.0030.04017.92
5.5.280.0030.05320.74
5.5.270.0000.04320.87
5.5.260.0100.08720.73
5.5.250.0100.04720.59
5.5.240.0070.04720.26
5.4.450.0530.04319.62
5.4.440.0270.04319.38
5.4.430.0630.04019.69
5.4.420.0470.05019.54
5.4.410.0170.04718.73
5.4.400.0070.08318.77
5.4.390.0230.04018.58
5.4.380.0130.05718.53
5.4.370.0170.05718.79
5.4.360.0230.05018.80
5.4.350.0230.05318.75
5.4.340.0330.04318.77
5.4.320.0050.03712.50
5.4.310.0070.03812.50
5.4.300.0080.03712.51
5.4.290.0050.04012.50
5.4.280.0040.04312.40
5.4.270.0060.04212.40
5.4.260.0030.04112.40
5.4.250.0060.03912.41
5.4.240.0090.03512.40
5.4.230.0040.04112.39
5.4.220.0040.04712.39
5.4.210.0070.03712.39
5.4.200.0050.03912.39
5.4.190.0080.03712.39
5.4.180.0080.03612.39
5.4.170.0170.04412.38
5.4.160.0190.04212.37
5.4.150.0100.05512.38
5.4.140.0180.04412.05
5.4.130.0160.04612.05
5.4.120.0160.05012.00
5.4.110.0180.04112.00
5.4.100.0160.04812.00
5.4.90.0230.03712.00
5.4.80.0140.04612.00
5.4.70.0220.04111.99
5.4.60.0170.04311.99
5.4.50.0150.04411.99
5.4.40.0180.04311.98
5.4.30.0110.05011.97
5.4.20.0140.04511.97
5.4.10.0150.04411.98
5.4.00.0150.04111.46
5.3.290.0050.04112.80
5.3.280.0090.03512.71
5.3.270.0160.04812.73
5.3.260.0190.04512.72
5.3.250.0140.05012.72
5.3.240.0160.04812.72
5.3.230.0210.05212.71
5.3.220.0190.04712.68
5.3.210.0180.04612.68
5.3.200.0100.06012.68
5.3.190.0140.05112.68
5.3.180.0170.04512.68
5.3.170.0140.05012.67
5.3.160.0270.03512.67
5.3.150.0150.04712.67
5.3.140.0170.04612.66
5.3.130.0140.04812.66
5.3.120.0420.08312.66
5.3.110.0150.04712.66
5.3.100.0130.04912.12
5.3.90.0140.04712.11
5.3.80.0160.04612.08
5.3.70.0150.04912.09
5.3.60.0140.04912.07
5.3.50.0160.04812.01
5.3.40.0170.04612.01
5.3.30.0190.04211.98
5.3.20.0190.04311.77
5.3.10.0130.04511.73
5.3.00.0170.04511.71
5.2.170.0090.0429.26
5.2.160.0110.0409.26
5.2.150.0150.0379.25
5.2.140.0120.0389.25
5.2.130.0140.0369.21
5.2.120.0160.0349.21
5.2.110.0120.0389.22
5.2.100.0160.0329.22
5.2.90.0140.0359.22
5.2.80.0160.0339.20
5.2.70.0170.0329.20
5.2.60.0140.0359.16
5.2.50.0130.0359.13
5.2.40.0130.0389.11
5.2.30.0110.0389.07
5.2.20.0120.0399.08
5.2.10.0100.0389.00
5.2.00.0120.0378.85
5.1.60.0120.0298.13
5.1.50.0150.0288.13
5.1.40.0100.0318.12
5.1.30.0120.0328.47
5.1.20.0130.0318.50
5.1.10.0100.0348.16
5.1.00.0080.0338.16
5.0.50.0090.0256.63
5.0.40.0130.0206.49
5.0.30.0080.0376.31
5.0.20.0080.0256.30
5.0.10.0070.0266.28
5.0.00.0080.0386.27
4.4.90.0080.0184.78
4.4.80.0080.0174.75
4.4.70.0060.0204.76
4.4.60.0060.0204.75
4.4.50.0100.0154.77
4.4.40.0080.0294.71
4.4.30.0080.0194.76
4.4.20.0090.0184.85
4.4.10.0080.0194.85
4.4.00.0090.0274.76
4.3.110.0120.0144.66
4.3.100.0090.0164.66
4.3.90.0060.0194.63
4.3.80.0060.0294.58
4.3.70.0080.0174.63
4.3.60.0060.0184.63
4.3.50.0040.0214.63
4.3.40.0090.0254.54
4.3.30.0020.0213.34
4.3.20.0040.0193.32
4.3.10.0060.0173.29
4.3.00.0000.02015.13

preferences:
36.98 ms | 401 KiB | 5 Q