3v4l.org

run code in 300+ PHP versions simultaneously
<?php $amount = 100 * 100000; $tri = 10000; $charaData = array('character_int' => 400); for ($i=0; $i<$tri; ++$i) $up += intval($amount / 100000) * mt_rand_a(100000, ($charaData['character_int'] + 100) * 500 / 3) / 100000; echo $up / $tri;

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)
8.3.60.0070.01418.43
8.3.50.0100.01221.21
8.3.40.0070.00718.72
8.3.30.0070.00718.62
8.3.20.0000.00720.20
8.3.10.0000.00821.71
8.3.00.0050.00320.32
8.2.180.0100.01016.50
8.2.170.0040.01522.96
8.2.160.0030.01320.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0060.00317.50
8.2.110.0060.00320.52
8.2.100.0040.00817.63
8.2.90.0000.00719.13
8.2.80.0030.00617.97
8.2.70.0050.00517.38
8.2.60.0040.00418.05
8.2.50.0060.00318.07
8.2.40.0080.00019.20
8.2.30.0040.00420.52
8.2.20.0040.00417.75
8.2.10.0000.00718.12
8.2.00.0000.00717.99
8.1.280.0070.00725.92
8.1.270.0070.01423.79
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0100.00023.83
8.1.230.0110.00017.42
8.1.220.0050.00317.77
8.1.210.0070.00418.77
8.1.200.0030.00717.48
8.1.190.0060.00317.23
8.1.180.0030.00618.10
8.1.170.0040.00418.51
8.1.160.0070.00021.95
8.1.150.0040.00418.82
8.1.140.0050.00317.35
8.1.130.0040.00417.65
8.1.120.0040.00417.43
8.1.110.0040.00417.40
8.1.100.0040.00417.42
8.1.90.0040.00417.47
8.1.80.0000.00717.43
8.1.70.0030.00317.51
8.1.60.0000.00917.63
8.1.50.0000.00817.58
8.1.40.0080.00017.60
8.1.30.0000.00817.59
8.1.20.0040.00417.57
8.1.10.0000.00717.48
8.1.00.0000.00817.45
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0050.00318.44
8.0.270.0070.00017.25
8.0.260.0040.00417.16
8.0.250.0040.00416.91
8.0.240.0070.00017.04
8.0.230.0100.00017.06
8.0.220.0030.00316.87
8.0.210.0040.00416.97
8.0.200.0030.00316.88
8.0.190.0040.00416.95
8.0.180.0040.00416.93
8.0.170.0080.00016.96
8.0.160.0000.00716.86
8.0.150.0070.00016.79
8.0.140.0000.00716.83
8.0.130.0030.00613.37
8.0.120.0000.00816.91
8.0.110.0000.00716.81
8.0.100.0030.00616.68
8.0.90.0040.00416.91
8.0.80.0120.00316.80
8.0.70.0000.00716.82
8.0.60.0040.00416.93
8.0.50.0040.00416.66
8.0.30.0100.00716.96
8.0.20.0120.00917.40
8.0.10.0000.00816.93
8.0.00.0140.00716.88
7.4.330.0030.00215.13
7.4.320.0000.00616.64
7.4.300.0000.00616.35
7.4.290.0040.00416.51
7.4.280.0000.00816.46
7.4.270.0070.00016.40
7.4.260.0040.00216.58
7.4.250.0030.00616.51
7.4.240.0020.00516.48
7.4.230.0030.00316.63
7.4.220.0040.01416.45
7.4.210.0070.00716.49
7.4.200.0030.00316.50
7.4.160.0070.01016.40
7.4.150.0080.01217.40
7.4.140.0060.01217.86
7.4.130.0130.00516.52
7.4.120.0070.01016.57
7.4.110.0090.00916.70
7.4.100.0150.00316.63
7.4.90.0090.00916.61
7.4.80.0120.00319.39
7.4.70.0130.00316.48
7.4.60.0120.00316.63
7.4.50.0040.00416.41
7.4.40.0100.00516.38
7.4.30.0130.01016.48
7.4.00.0000.01314.84
7.3.330.0030.00313.22
7.3.320.0030.00313.15
7.3.310.0000.00716.23
7.3.300.0030.00316.37
7.3.290.0090.00716.40
7.3.280.0110.00816.44
7.3.270.0070.01117.40
7.3.260.0030.01516.54
7.3.250.0110.00516.43
7.3.240.0090.01016.35
7.3.230.0080.00816.39
7.3.210.0090.00916.41
7.3.200.0110.00616.61
7.3.190.0090.00616.32
7.3.180.0100.00616.46
7.3.170.0130.00316.43
7.3.160.0030.01416.54
7.3.120.0110.00714.77
7.3.110.0100.00315.10
7.3.100.0030.01414.74
7.3.90.0100.00714.82
7.3.80.0070.00414.66
7.3.70.0090.00314.96
7.3.60.0080.00414.93
7.3.50.0000.01514.93
7.3.40.0080.00414.93
7.3.30.0000.01514.84
7.3.20.0090.00016.89
7.3.10.0040.00816.70
7.3.00.0030.01016.71
7.2.330.0080.01616.59
7.2.320.0090.00916.63
7.2.310.0130.00716.75
7.2.300.0100.00716.61
7.2.290.0150.00616.38
7.2.240.0090.00315.14
7.2.230.0070.01015.15
7.2.220.0100.00015.07
7.2.210.0060.00914.64
7.2.200.0030.00914.84
7.2.190.0120.00015.02
7.2.180.0000.01414.90
7.2.170.0040.01114.69
7.2.160.0000.01414.80
7.2.150.0030.01216.65
7.2.140.0140.00016.93
7.2.130.0080.00616.86
7.2.120.0040.00616.68
7.2.110.0120.00516.79
7.2.100.0090.00716.85
7.2.90.0070.00716.61
7.2.80.0060.00616.61
7.2.70.0060.00816.72
7.2.60.0070.00516.83
7.2.50.0030.00916.67
7.2.40.0050.01016.71
7.2.30.0080.00616.81
7.2.20.0090.00416.81
7.2.10.0070.00716.78
7.2.00.0110.00417.47
7.1.330.0060.00615.98
7.1.320.0070.00715.46
7.1.310.0070.00715.94
7.1.300.0040.00715.70
7.1.290.0100.00015.74
7.1.280.0040.00815.79
7.1.270.0000.01015.54
7.1.260.0000.01315.87
7.1.250.0030.01015.58
7.1.200.0100.00515.45
7.1.100.0110.00317.93
7.1.70.0070.00317.20
7.1.60.0130.01319.19
7.1.50.0070.01316.98
7.1.00.0070.07022.31
7.0.200.0030.00616.72
7.0.60.0230.06019.97
7.0.50.0000.04317.86
7.0.40.0000.08720.08
7.0.30.0200.04320.09
7.0.20.0200.08320.16
7.0.10.0070.06020.17
7.0.00.0130.08019.99
5.6.280.0030.03320.82
5.6.210.0130.07720.61
5.6.200.0130.04718.22
5.6.190.0030.06320.64
5.6.180.0370.04020.27
5.6.170.0230.04320.33
5.6.160.0070.04020.44
5.6.150.0100.03318.21
5.6.140.0030.06718.19
5.6.130.0070.04318.20
5.6.120.0030.04321.05
5.6.110.0030.04720.93
5.6.100.0070.03720.85
5.6.90.0070.05320.96
5.6.80.0100.05020.50
5.5.350.0170.04020.44
5.5.340.0030.05017.93
5.5.330.0070.08320.22
5.5.320.0300.03720.31
5.5.310.0200.07320.30
5.5.300.0070.08018.00
5.5.290.0070.04017.98
5.5.280.0100.04020.64
5.5.270.0170.07320.86
5.5.260.0070.08720.86
5.5.250.0070.08320.68
5.5.240.0000.08020.25
5.4.450.0770.06019.47
5.4.440.0900.06019.63
5.4.430.0770.05719.48
5.4.420.0770.04719.42
5.4.410.0800.06019.40
5.4.400.0730.06719.20
5.4.390.0930.06319.16
5.4.380.0730.06019.12
5.4.370.0870.05719.15
5.4.360.0870.08019.26
5.4.350.1030.06718.80
5.4.340.0800.05019.34
5.4.320.0830.06018.95
5.4.310.0670.07019.16
5.4.300.0800.06319.14
5.4.290.0970.06019.30
5.4.280.0830.06319.27
5.4.270.0900.05319.22
5.4.260.0900.06019.25
5.4.250.0930.05319.15
5.4.240.0730.06719.29
5.4.230.0900.06019.12
5.4.220.1000.05719.32
5.4.210.0630.07318.98
5.4.200.1070.05318.81
5.4.190.1000.05719.13
5.4.180.0930.05719.24
5.4.170.1030.05018.77
5.4.160.0730.05319.12
5.4.150.0730.07319.29
5.4.140.0930.06316.49
5.4.130.1070.07316.50
5.4.120.0970.06016.22
5.4.110.1130.04016.19
5.4.100.1070.05016.21
5.4.90.0970.05016.58
5.4.80.0930.05316.38
5.4.70.0000.07716.46
5.4.60.0230.05716.45
5.4.50.0170.04016.36
5.4.40.0300.06016.38
5.4.30.0030.04016.45
5.4.20.0070.05016.31
5.4.10.0270.03716.41

preferences:
51.16 ms | 401 KiB | 5 Q