3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); $end = mircotime(true); $assign = $end - $start; $start = microtime(true); mircotime(true); mircotime(true); $end = mircotime(true); echo "Clean call: " . $assign . "\n"; echo "3 (+ assign) microtime calls: " . ($end-$start) . "\n"; echo "2 calls cleaned: " . (($end-$start) - $assign);

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.3.120.0070.01114.87
7.3.110.0100.00715.00
7.3.100.0100.00714.60
7.3.90.0060.00614.75
7.3.80.0090.00314.74
7.3.70.0070.00714.86
7.3.60.0060.00614.85
7.3.50.0040.01214.83
7.3.40.0100.00014.61
7.3.30.0030.01014.82
7.3.20.0030.01516.67
7.3.10.0050.00716.55
7.3.00.0080.00216.44
7.2.240.0040.01514.90
7.2.230.0000.01415.13
7.2.220.0030.00714.79
7.2.210.0060.00314.91
7.2.200.0070.00714.88
7.2.190.0050.00515.04
7.2.180.0080.00814.93
7.2.170.0090.00314.83
7.2.160.0040.00914.98
7.2.150.0070.01116.64
7.2.140.0060.00916.90
7.2.130.0060.00816.65
7.2.120.0040.00716.86
7.2.110.0070.00616.77
7.2.100.0070.00816.73
7.2.90.0040.00916.78
7.2.80.0060.00816.87
7.2.70.0080.00616.63
7.2.60.0060.00816.87
7.2.50.0040.01016.80
7.2.40.0020.01216.74
7.2.30.0060.01116.70
7.2.20.0070.00916.74
7.2.10.0030.00716.75
7.2.00.0040.00817.34
7.1.330.0130.00315.88
7.1.320.0000.01715.40
7.1.310.0000.01415.69
7.1.300.0060.00615.57
7.1.290.0100.00615.58
7.1.280.0030.00615.79
7.1.270.0080.00615.85
7.1.260.0000.01415.74
7.1.250.0040.00915.65
7.1.70.0030.01017.09
7.1.60.0070.01119.82
7.1.50.0070.01717.01
7.1.00.0000.07722.43
7.0.200.0000.00816.71
7.0.140.0070.07022.22
7.0.60.0030.06719.93
7.0.50.0030.04317.91
7.0.40.0000.09320.12
7.0.30.0230.08320.18
7.0.20.0330.07020.09
7.0.10.0270.08320.19
7.0.00.0100.08719.99
5.6.280.0000.07720.92
5.6.210.0030.09020.49
5.6.200.0030.08718.18
5.6.190.0030.04320.45
5.6.180.0370.06320.39
5.6.170.0230.07720.45
5.6.160.0030.04320.43
5.6.150.0130.03318.16
5.6.140.0070.08018.21
5.6.130.0030.08018.07
5.6.120.0100.05021.00
5.6.110.0230.07720.97
5.6.100.0170.07720.97
5.6.90.0100.08720.96
5.6.80.0070.05320.35
5.5.350.0130.02720.35
5.5.340.0000.06717.88
5.5.330.0070.08320.36
5.5.320.0030.08720.57
5.5.310.0230.08020.20
5.5.300.0030.06018.02
5.5.290.0200.07017.96
5.5.280.0130.08020.73
5.5.270.0070.08020.79
5.5.260.0070.08020.87
5.5.250.0170.05320.71
5.5.240.0070.05020.36
5.4.450.0700.07019.47
5.4.440.1030.05019.32
5.4.430.0070.05719.61
5.4.420.0930.07019.47
5.4.410.0630.06719.31
5.4.400.0900.06018.79
5.4.390.0800.05319.20
5.4.380.0230.07318.63
5.4.370.0070.05718.54
5.4.360.0070.05718.45
5.4.350.0050.03711.98
5.4.340.0050.04211.97
5.4.320.0070.03512.45
5.4.310.0060.04112.45
5.4.300.0100.03812.46
5.4.290.0090.04512.45
5.4.280.0120.03112.32
5.4.270.0060.03912.32
5.4.260.0060.04112.32
5.4.250.0120.03812.32
5.4.240.0160.03312.32
5.4.230.0080.04512.32
5.4.220.0060.04112.31
5.4.210.0080.03812.32
5.4.200.0080.04312.32
5.4.190.0120.03412.31
5.4.180.0040.04012.31
5.4.170.0100.03912.32
5.4.160.0100.04212.32
5.4.150.0050.04412.32
5.4.140.0050.04712.00
5.4.130.0110.03811.99
5.4.120.0100.04811.95
5.4.110.0100.04811.94
5.4.100.0100.04811.94
5.4.90.0100.05211.94
5.4.80.0080.05111.94
5.4.70.0070.05211.94
5.4.60.0090.04911.94
5.4.50.0100.05011.94
5.4.40.0110.04811.92
5.4.30.0100.07011.92
5.4.20.0200.08111.92
5.4.10.0160.07011.92
5.4.00.0120.05911.41
5.3.290.0060.04212.80
5.3.280.0140.05712.70
5.3.270.0130.07312.72
5.3.260.0090.05812.72
5.3.250.0120.05112.72
5.3.240.0080.05612.71
5.3.230.0090.05612.71
5.3.220.0130.05112.68
5.3.210.0100.04712.68
5.3.200.0100.05812.68
5.3.190.0140.04112.68
5.3.180.0080.04012.67
5.3.170.0060.04112.67
5.3.160.0060.04112.68
5.3.150.0050.04612.67
5.3.140.0060.04312.66
5.3.130.0100.04212.66
5.3.120.0070.04112.66
5.3.110.0080.03812.66
5.3.100.0090.03612.12
5.3.90.0090.03712.09
5.3.80.0080.04712.07
5.3.70.0150.04912.07
5.3.60.0100.04612.06
5.3.50.0090.04612.00
5.3.40.0090.04812.00
5.3.30.0110.04611.94
5.3.20.0120.04711.70
5.3.10.0050.04011.66
5.3.00.0070.04711.66
5.2.170.0070.0339.15
5.2.160.0040.0329.15
5.2.150.0080.0339.15
5.2.140.0050.0379.15
5.2.130.0050.0349.11
5.2.120.0040.0319.11
5.2.110.0070.0299.12
5.2.100.0070.0319.12
5.2.90.0040.0359.11
5.2.80.0060.0299.11
5.2.70.0030.0319.11
5.2.60.0060.0299.06
5.2.50.0060.0309.03
5.2.40.0070.0279.00
5.2.30.0080.0278.98
5.2.20.0050.0288.97
5.2.10.0060.0278.90
5.2.00.0040.0288.76
5.1.60.0050.0248.04
5.1.50.0040.0258.04
5.1.40.0030.0258.02
5.1.30.0020.0278.38
5.1.20.0080.0228.39
5.1.10.0050.0248.12
5.1.00.0030.0278.13
5.0.50.0040.0206.59
5.0.40.0050.0186.46
5.0.30.0030.0316.27
5.0.20.0010.0226.25
5.0.10.0050.0216.22
5.0.00.0030.0326.21
4.4.90.0020.0164.78
4.4.80.0050.0134.76
4.4.70.0040.0144.75
4.4.60.0030.0154.76
4.4.50.0010.0174.77
4.4.40.0020.0254.71
4.4.30.0030.0154.76
4.4.20.0030.0204.85
4.4.10.0000.0184.85
4.4.00.0060.0314.76
4.3.110.0020.0184.67
4.3.100.0030.0144.67
4.3.90.0040.0144.63
4.3.80.0040.0234.58
4.3.70.0020.0164.63
4.3.60.0030.0144.63
4.3.50.0020.0204.62
4.3.40.0030.0324.54
4.3.30.0020.0163.30
4.3.20.0030.0153.28
4.3.10.0010.0163.24
4.3.00.0070.0277.27

preferences:
48.41 ms | 401 KiB | 5 Q