3v4l.org

run code in 300+ PHP versions simultaneously
<?php function findFacotrs($number) { $factors = array(); for($x = 1; $x <= ($number/2); $x++) { if ($number % $x == 0) { array_push($factors, $x); } } echo $factors; } findFactors(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)
8.3.60.0140.00318.55
8.3.50.0170.00521.01
8.3.40.0070.00718.80
8.3.30.0130.00319.09
8.3.20.0040.00420.26
8.3.10.0060.01023.48
8.3.00.0060.00323.27
8.2.180.0090.00616.32
8.2.170.0110.00422.96
8.2.160.0140.00022.09
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0000.00817.63
8.2.110.0070.00319.40
8.2.100.0060.00617.63
8.2.90.0050.00319.30
8.2.80.0000.00817.97
8.2.70.0030.00617.60
8.2.60.0040.00417.80
8.2.50.0090.00018.07
8.2.40.0040.00421.02
8.2.30.0070.00419.69
8.2.20.0080.00017.66
8.2.10.0040.00418.05
8.2.00.0000.00717.99
8.1.280.0040.01125.92
8.1.270.0000.00920.38
8.1.260.0000.00826.35
8.1.250.0050.00228.09
8.1.240.0060.00322.30
8.1.230.0070.00717.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.10
8.1.190.0040.00417.00
8.1.180.0040.00418.10
8.1.170.0080.00018.71
8.1.160.0000.00821.85
8.1.150.0000.00818.66
8.1.140.0070.00017.25
8.1.130.0000.00717.59
8.1.120.0000.00817.30
8.1.110.0040.00417.38
8.1.100.0050.00217.28
8.1.90.0000.00717.37
8.1.80.0040.00417.21
8.1.70.0030.00317.32
8.1.60.0000.00817.45
8.1.50.0090.00017.48
8.1.40.0000.00717.30
8.1.30.0040.00417.42
8.1.20.0000.00717.63
8.1.10.0070.00017.51
8.1.00.0000.00817.32
8.0.300.0000.00818.77
8.0.290.0000.00916.75
8.0.280.0000.00818.39
8.0.270.0040.00417.18
8.0.260.0060.00017.17
8.0.250.0040.00416.94
8.0.240.0000.00816.91
8.0.230.0000.00716.95
8.0.220.0030.00316.76
8.0.210.0070.00016.88
8.0.200.0000.00616.96
8.0.190.0040.00416.98
8.0.180.0040.00416.97
8.0.170.0080.00016.86
8.0.160.0040.00416.85
8.0.150.0030.00416.78
8.0.140.0070.00016.86
8.0.130.0060.00013.32
8.0.120.0000.00816.96
8.0.110.0030.00316.73
8.0.100.0000.00716.84
8.0.90.0040.00416.73
8.0.80.0000.01716.84
8.0.70.0040.00416.79
8.0.60.0040.00416.77
8.0.50.0070.00016.82
8.0.30.0100.00816.91
8.0.20.0100.00817.40
8.0.10.0040.00416.98
8.0.00.0110.00816.72
7.4.330.0050.00015.08
7.4.320.0030.00316.39
7.4.300.0000.00616.41
7.4.290.0030.00316.39
7.4.280.0080.00316.53
7.4.270.0070.00016.55
7.4.260.0000.00616.57
7.4.250.0000.00716.36
7.4.240.0040.00316.51
7.4.230.0000.00816.56
7.4.220.0070.01116.54
7.4.210.0070.00716.64
7.4.200.0070.00016.53
7.4.160.0120.00316.30
7.4.150.0070.01017.40
7.4.140.0100.00917.86
7.4.130.0070.00916.40
7.4.120.0140.00316.48
7.4.110.0150.00316.36
7.4.100.0140.00916.64
7.4.90.0100.00716.46
7.4.80.0110.00819.39
7.4.70.0100.01416.49
7.4.60.0060.01216.46
7.4.50.0060.00316.55
7.4.40.0140.00616.45
7.4.30.0130.00316.67
7.4.00.0080.00814.80
7.3.330.0000.00513.14
7.3.320.0000.00713.29
7.3.310.0080.00016.15
7.3.300.0030.00316.32
7.3.290.0080.00916.28
7.3.280.0070.01016.33
7.3.270.0070.01017.40
7.3.260.0140.00316.25
7.3.250.0100.00816.38
7.3.240.0100.01016.29
7.3.230.0030.01516.39
7.3.210.0030.01316.37
7.3.200.0060.01216.26
7.3.190.0060.01016.23
7.3.180.0090.01216.36
7.3.170.0160.00716.56
7.3.160.0160.00316.40
7.3.120.0090.00914.68
7.3.110.0040.01114.81
7.3.100.0070.00714.87
7.3.90.0060.00614.88
7.3.80.0040.00414.95
7.3.70.0120.00014.91
7.3.60.0060.00314.76
7.3.50.0000.01414.44
7.3.40.0060.00614.83
7.3.30.0060.00614.91
7.3.20.0100.00316.68
7.3.10.0030.01016.60
7.3.00.0070.00716.48
7.2.330.0110.00716.32
7.2.320.0130.00716.25
7.2.310.0060.01216.38
7.2.300.0040.01116.48
7.2.290.0120.00616.57
7.2.250.0140.00314.76
7.2.240.0030.01714.64
7.2.230.0030.01414.82
7.2.220.0030.00714.83
7.2.210.0070.00714.75
7.2.200.0030.01014.90
7.2.190.0060.01014.71
7.2.180.0030.01014.88
7.2.170.0070.00714.61
7.2.60.0060.00616.52
7.2.00.0070.00719.27
7.1.330.0090.00615.77
7.1.320.0040.00915.67
7.1.310.0030.00915.34
7.1.300.0120.00415.63
7.1.290.0100.00715.43
7.1.280.0000.01515.55
7.1.270.0030.01215.43
7.1.260.0000.01115.35
7.1.200.0130.00715.67
7.1.100.0060.00617.93
7.1.70.0000.00717.02
7.1.60.0110.01419.42
7.1.50.0130.01034.73
7.1.00.0000.10022.33
7.0.200.0000.00916.50
7.0.60.0030.08320.03
7.0.50.0000.04717.85
7.0.40.0070.05320.10
7.0.30.0400.06320.30
7.0.20.0300.04720.22
7.0.10.0100.08320.11
7.0.00.0130.03320.18
5.6.210.0000.04320.55
5.6.200.0170.07018.18
5.6.190.0100.03720.33
5.6.180.0230.04320.68
5.6.170.0430.06720.48
5.6.160.0070.07320.61
5.6.150.0000.04018.15
5.6.140.0100.07718.23
5.6.130.0130.03718.18
5.6.120.0070.05320.97
5.6.110.0070.06021.01
5.6.100.0070.04721.11
5.6.90.0130.07320.99
5.6.80.0070.06320.34
5.5.350.0300.07320.33
5.5.340.0070.03717.97
5.5.330.0100.06320.36
5.5.320.0330.07320.20
5.5.310.0370.07320.30
5.5.300.0100.07718.03
5.5.290.0070.08318.08
5.5.280.0100.03320.73
5.5.270.0070.08320.85
5.5.260.0030.07720.86
5.5.250.0000.05320.69
5.5.240.0070.04020.15
5.4.450.0600.06019.60
5.4.440.0070.06019.55
5.4.430.0200.05719.46
5.4.420.0470.05019.63
5.4.410.0370.05719.34
5.4.400.0200.05018.84
5.4.390.0230.04719.31
5.4.380.0130.05719.15
5.4.370.0270.04318.87
5.4.360.0130.05719.24
5.4.350.0130.05719.27
5.4.340.0230.05318.87
5.4.320.0200.05019.12
5.4.310.0330.05319.15
5.4.300.0230.04719.14
5.4.290.0170.05019.14
5.4.280.0170.05019.24
5.4.270.0200.05019.22
5.4.260.0030.06019.22
5.4.250.0200.04719.23
5.4.240.0300.04319.00
5.4.230.0100.05019.13
5.4.220.0070.05719.26
5.4.210.0300.06718.89
5.4.200.0400.05017.10
5.4.190.0330.04719.22
5.4.180.0230.04719.32
5.4.170.0170.05019.06
5.4.160.0100.05318.95
5.4.150.0430.05719.03
5.4.140.0200.05016.54
5.4.130.0130.04316.72
5.4.120.0370.04316.41
5.4.110.0330.05016.34
5.4.100.2030.04716.25
5.4.90.0230.07316.72
5.4.80.0200.06016.41
5.4.70.0070.05716.48
5.4.60.0230.04316.24
5.4.50.0170.06316.69
5.4.40.0070.05716.52
5.4.30.0200.05316.48
5.4.20.0070.06016.43
5.4.10.0070.05316.57
5.4.00.0100.06715.88
5.3.290.0170.07014.56
5.3.280.0170.05014.73
5.3.270.0100.06014.60
5.3.260.0170.05314.51
5.3.250.0200.05014.83
5.3.240.0230.06014.66
5.3.230.0100.05714.59
5.3.220.0170.05014.46
5.3.210.0170.05014.56
5.3.200.0100.05314.57
5.3.190.0270.05014.55
5.3.180.0130.05014.59
5.3.170.0130.05314.71
5.3.160.0170.04714.53
5.3.150.0200.04314.79
5.3.140.0200.04314.70
5.3.130.0130.05014.62
5.3.120.0230.04314.45
5.3.110.0170.05014.45
5.3.100.0200.04314.09
5.3.90.0170.04714.03
5.3.80.0130.05014.24
5.3.70.0070.05714.06
5.3.60.0130.05013.92
5.3.50.0070.05714.03
5.3.40.0170.04713.88
5.3.30.0170.04313.99
5.3.20.0170.04313.92
5.3.10.0100.05013.66
5.3.00.0030.06013.69
5.2.170.0130.04011.16
5.2.160.0170.03311.15
5.2.150.0170.03711.39
5.2.140.0170.03711.14
5.2.130.0130.03711.19
5.2.120.0030.04711.10
5.2.110.0170.03311.05
5.2.100.0100.03711.15
5.2.90.0170.03011.32
5.2.80.0170.03311.02
5.2.70.0130.03711.16
5.2.60.0100.04010.91
5.2.50.0100.04011.03
5.2.40.0100.03711.00
5.2.30.0130.04311.21
5.2.20.0000.04711.01
5.2.10.0200.04010.77
5.2.00.0270.04310.86
5.1.60.0270.0309.83
5.1.50.0230.0409.89
5.1.40.0400.02310.13
5.1.30.0300.03710.20
5.1.20.0230.04010.35
5.1.10.0170.02710.30
5.1.00.0000.04010.05
5.0.50.0070.0278.63
5.0.40.0030.0278.48
5.0.30.0030.0438.22
5.0.20.0070.0238.28
5.0.10.0030.0278.39
5.0.00.0030.0438.00
4.4.90.0170.0175.84
4.4.80.0030.0235.82
4.4.70.0000.0275.84
4.4.60.0000.0235.79
4.4.50.0070.0175.86
4.4.40.0130.0375.86
4.4.30.0000.0235.85
4.4.20.0070.0175.93
4.4.10.0070.0175.91
4.4.00.0030.0335.78
4.3.110.0000.0235.71
4.3.100.0070.0205.71
4.3.90.0000.0235.71
4.3.80.0030.0335.78
4.3.70.0030.0205.74
4.3.60.0030.0205.66
4.3.50.0070.0175.74
4.3.40.0070.0305.72
4.3.30.0070.0234.50
4.3.20.0030.0204.49
4.3.10.0030.0204.44
4.3.00.0030.0207.56

preferences:
54.13 ms | 401 KiB | 5 Q