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 += intval2($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.0140.00718.10
8.3.50.0100.01121.88
8.3.40.0110.00418.73
8.3.30.0030.01018.67
8.3.20.0040.00420.26
8.3.10.0070.00021.78
8.3.00.0040.00420.20
8.2.180.0120.00316.63
8.2.170.0120.00622.96
8.2.160.0110.00620.35
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0030.00617.48
8.2.110.0030.00620.56
8.2.100.0040.00717.50
8.2.90.0040.00419.03
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0040.00418.04
8.2.50.0030.00518.07
8.2.40.0080.00019.21
8.2.30.0000.00720.68
8.2.20.0040.00417.68
8.2.10.0040.00418.05
8.2.00.0000.00718.09
8.1.280.0110.00425.92
8.1.270.0120.00323.84
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0030.00623.96
8.1.230.0030.00917.42
8.1.220.0000.00717.74
8.1.210.0090.00018.77
8.1.200.0060.00317.35
8.1.190.0030.00517.00
8.1.180.0040.00418.10
8.1.170.0030.00518.56
8.1.160.0040.00421.79
8.1.150.0070.00018.73
8.1.140.0040.00417.26
8.1.130.0060.00317.54
8.1.120.0040.00417.28
8.1.110.0050.00317.27
8.1.100.0040.00417.29
8.1.90.0040.00417.37
8.1.80.0000.00817.37
8.1.70.0030.00317.36
8.1.60.0030.00617.54
8.1.50.0000.00717.55
8.1.40.0080.00017.52
8.1.30.0030.00517.64
8.1.20.0000.00817.59
8.1.10.0050.00217.53
8.1.00.0030.00517.55
8.0.300.0000.00718.77
8.0.290.0060.00316.63
8.0.280.0000.00718.37
8.0.270.0070.00017.19
8.0.260.0030.00617.07
8.0.250.0040.00416.87
8.0.240.0000.00616.96
8.0.230.0060.00316.98
8.0.220.0000.00716.85
8.0.210.0040.00416.91
8.0.200.0040.00416.96
8.0.190.0060.00316.84
8.0.180.0070.00016.80
8.0.170.0050.00316.78
8.0.160.0040.00416.79
8.0.150.0000.00816.70
8.0.140.0070.00016.86
8.0.130.0050.00013.37
8.0.120.0000.00816.88
8.0.110.0000.00716.91
8.0.100.0040.00416.83
8.0.90.0070.00016.85
8.0.80.0060.01216.89
8.0.70.0000.00716.71
8.0.60.0050.00316.88
8.0.50.0050.00216.82
8.0.30.0090.00717.03
8.0.20.0090.00917.40
8.0.10.0040.00416.95
8.0.00.0130.00516.64
7.4.330.0050.00015.08
7.4.320.0060.00016.51
7.4.300.0060.00016.59
7.4.290.0080.00316.40
7.4.280.0090.00016.57
7.4.270.0030.00316.41
7.4.260.0030.00316.38
7.4.250.0040.00416.45
7.4.240.0040.00416.47
7.4.230.0070.00016.64
7.4.220.0100.00716.65
7.4.210.0030.01316.39
7.4.200.0030.00316.34
7.4.160.0080.00816.45
7.4.150.0120.00617.40
7.4.140.0090.01017.86
7.4.130.0040.01416.65
7.4.120.0050.01216.49
7.4.110.0070.01016.56
7.4.100.0070.01016.34
7.4.90.0060.01216.38
7.4.80.0080.00819.39
7.4.70.0050.01216.36
7.4.60.0040.01116.46
7.4.50.0050.00316.61
7.4.40.0050.01216.48
7.4.30.0170.00816.27
7.4.00.0070.01014.80
7.3.330.0000.00613.15
7.3.320.0030.00313.12
7.3.310.0030.00316.21
7.3.300.0030.00416.23
7.3.290.0080.00616.32
7.3.280.0120.00616.36
7.3.270.0060.01017.40
7.3.260.0110.00716.52
7.3.250.0100.00916.44
7.3.240.0190.00016.50
7.3.230.0120.00416.39
7.3.210.0070.01016.38
7.3.200.0060.00916.43
7.3.190.0120.00416.62
7.3.180.0120.00316.45
7.3.170.0070.01016.52
7.3.160.0090.00916.42
7.3.120.0030.01214.88
7.3.110.0040.01114.79
7.3.100.0070.00714.93
7.3.90.0060.00314.92
7.3.80.0060.00915.00
7.3.70.0050.00314.84
7.3.60.0030.01014.86
7.3.50.0000.01514.79
7.3.40.0060.01014.85
7.3.30.0070.01014.84
7.3.20.0040.00416.88
7.3.10.0040.00416.55
7.3.00.0020.00516.64
7.2.330.0130.00616.69
7.2.320.0110.00616.51
7.2.310.0060.01016.34
7.2.300.0140.00316.53
7.2.290.0070.01016.42
7.2.240.0040.01114.90
7.2.230.0030.00715.21
7.2.220.0030.01415.18
7.2.210.0030.00614.94
7.2.200.0080.00815.06
7.2.190.0100.00014.91
7.2.180.0000.01214.97
7.2.170.0120.00315.01
7.2.160.0060.01015.05
7.2.150.0000.01216.92
7.2.140.0060.01016.87
7.2.130.0000.01416.55
7.2.120.0060.00616.68
7.2.110.0060.01016.63
7.2.100.0060.01016.95
7.2.90.0040.00816.81
7.2.80.0120.00316.60
7.2.70.0070.01017.00
7.2.60.0060.00716.74
7.2.50.0000.01416.62
7.2.40.0000.01216.76
7.2.30.0040.01116.68
7.2.20.0060.01216.83
7.2.10.0030.01316.66
7.2.00.0030.01218.00
7.1.330.0000.01315.52
7.1.320.0060.00915.50
7.1.310.0100.00315.92
7.1.300.0000.01715.53
7.1.290.0050.00515.70
7.1.280.0060.01115.68
7.1.270.0000.00915.77
7.1.260.0030.00615.54
7.1.250.0060.00615.63
7.1.200.0000.00915.74
7.1.100.0030.00818.11
7.1.70.0000.00717.09
7.1.60.0140.01019.19
7.1.50.0090.00416.88
7.1.00.0000.07722.32
7.0.200.0040.00416.72
7.0.60.0100.05720.07
7.0.50.0030.05317.82
7.0.40.0130.06320.36
7.0.30.0300.06320.30
7.0.20.0200.09020.17
7.0.10.0100.05320.17
7.0.00.0070.07020.08
5.6.280.0070.06720.86
5.6.210.0100.07320.52
5.6.200.0100.06018.08
5.6.190.0000.07320.27
5.6.180.0170.04720.21
5.6.170.0170.06320.71
5.6.160.0130.04320.45
5.6.150.0030.07018.13
5.6.140.0070.07718.22
5.6.130.0170.05718.14
5.6.120.0070.05320.99
5.6.110.0100.05321.11
5.6.100.0030.08720.88
5.6.90.0230.07320.95
5.6.80.0070.08020.37
5.5.350.0230.07720.43
5.5.340.0070.03317.93
5.5.330.0000.04320.07
5.5.320.0500.07020.29
5.5.310.0230.08020.24
5.5.300.0030.08318.02
5.5.290.0030.04717.92
5.5.280.0070.05720.87
5.5.270.0000.05020.79
5.5.260.0100.07020.76
5.5.250.0100.05020.71
5.5.240.0070.07320.12
5.4.450.0200.04319.41
5.4.440.0300.05719.25
5.4.430.0200.06019.11
5.4.420.0370.07319.45
5.4.410.0300.06019.13
5.4.400.0230.07319.22
5.4.390.0300.07019.25
5.4.380.0230.07018.94
5.4.370.0300.04319.16
5.4.360.0230.07719.22
5.4.350.0270.05319.22
5.4.340.0300.04319.08
5.4.320.0400.05318.79
5.4.310.0270.04319.05
5.4.300.0230.04019.24
5.4.290.0300.07719.09
5.4.280.0330.07018.88
5.4.270.0300.05719.16
5.4.260.0230.05019.13
5.4.250.0300.07718.80
5.4.240.0270.04019.09
5.4.230.0370.05019.23
5.4.220.0270.04719.15
5.4.210.0230.03719.24
5.4.200.0130.04319.15
5.4.190.0230.03319.12
5.4.180.0170.04019.20
5.4.170.0230.03319.07
5.4.160.0230.03318.86
5.4.150.0230.03319.21
5.4.140.0230.06016.54
5.4.130.0200.03716.49
5.4.120.0130.04316.35
5.4.110.0230.03016.43
5.4.100.0170.05316.06
5.4.90.0270.02716.39
5.4.80.0230.04016.41

preferences:
51.05 ms | 401 KiB | 5 Q