3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getStuff() { $stuff = range(0, 1000); $result = []; foreach ($stuff as $elem) { $result[] = pow($elem, 2); } return $result; } $stuffssss = getStuff(); foreach ($stuffssss as $stuff) { echo "$stuff\n"; }

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.0130.00718.43
8.3.50.0140.00721.27
8.3.40.0070.01018.56
8.3.30.0190.00018.79
8.3.20.0000.00918.77
8.3.10.0000.00919.16
8.3.00.0040.00421.73
8.2.180.0110.00716.75
8.2.170.0170.00322.96
8.2.160.0090.00920.39
8.2.150.0100.00024.18
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0060.01617.75
8.2.110.0090.00320.50
8.2.100.0100.00317.91
8.2.90.0030.00519.34
8.2.80.0080.00018.04
8.2.70.0030.00617.61
8.2.60.0030.00618.04
8.2.50.0000.00918.07
8.2.40.0030.00618.34
8.2.30.0040.00419.90
8.2.20.0040.00417.75
8.2.10.0040.00417.79
8.2.00.0000.00817.86
8.1.280.0160.00025.92
8.1.270.0000.01022.18
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0040.00822.65
8.1.230.0060.00620.97
8.1.220.0040.00418.77
8.1.210.0090.00018.98
8.1.200.0090.00617.48
8.1.190.0040.00417.51
8.1.180.0080.00018.10
8.1.170.0000.00818.77
8.1.160.0040.00418.97
8.1.150.0040.00418.72
8.1.140.0030.00517.47
8.1.130.0000.00817.54
8.1.120.0000.00717.50
8.1.110.0080.00017.49
8.1.100.0000.00817.53
8.1.90.0080.00317.44
8.1.80.0040.00417.38
8.1.70.0040.00417.57
8.1.60.0030.00617.55
8.1.50.0040.00417.46
8.1.40.0030.00717.49
8.1.30.0060.00317.59
8.1.20.0030.00617.74
8.1.10.0000.00817.59
8.1.00.0070.00417.48
8.0.300.0000.00920.10
8.0.290.0080.00017.30
8.0.280.0040.00418.52
8.0.270.0040.00417.30
8.0.260.0070.00016.83
8.0.250.0000.00817.01
8.0.240.0030.00617.04
8.0.230.0000.00717.09
8.0.220.0040.00416.88
8.0.210.0030.00716.98
8.0.200.0030.00616.97
8.0.190.0050.00317.06
8.0.180.0060.00317.00
8.0.170.0070.00316.99
8.0.160.0040.00417.02
8.0.150.0060.00316.94
8.0.140.0080.00016.89
8.0.130.0020.00513.44
8.0.120.0030.00616.82
8.0.110.0000.00816.83
8.0.100.0050.00316.87
8.0.90.0030.00516.80
8.0.80.0130.01017.03
8.0.70.0080.00017.09
8.0.60.0080.00017.04
8.0.50.0000.00716.91
8.0.30.0130.01217.17
8.0.20.0190.00817.40
8.0.10.0030.00617.07
8.0.00.0110.01216.92
7.4.330.0000.00514.83
7.4.320.0030.00316.68
7.4.300.0000.00716.62
7.4.290.0000.00716.68
7.4.280.0040.00416.66
7.4.270.0040.00416.49
7.4.260.0090.00013.36
7.4.250.0000.00716.65
7.4.240.0080.00016.64
7.4.230.0000.00716.75
7.4.220.0090.00916.60
7.4.210.0070.00916.60
7.4.200.0080.00016.57
7.4.190.0000.00716.75
7.4.160.0150.00616.53
7.4.150.0150.00817.40
7.4.140.0140.01117.86
7.4.130.0100.01016.68
7.4.120.0090.01416.62
7.4.110.0110.01116.66
7.4.100.0060.01516.56
7.4.90.0130.00916.71
7.4.80.0100.01719.37
7.4.70.0120.00916.59
7.4.60.0100.01016.51
7.4.50.0030.00616.54
7.4.40.0030.01422.27
7.4.30.0110.01616.64
7.4.00.0070.01114.63
7.3.330.0050.00013.17
7.3.320.0030.00313.33
7.3.310.0040.00416.28
7.3.300.0000.00716.38
7.3.290.0070.01016.38
7.3.280.0100.01116.43
7.3.270.0100.01017.40
7.3.260.0080.01418.24
7.3.250.0180.00516.53
7.3.240.0110.01116.54
7.3.230.0190.00316.66
7.3.210.0060.01616.43
7.3.200.0070.01119.39
7.3.190.0200.00016.52
7.3.180.0180.00316.40
7.3.170.0170.01116.61
7.3.160.0110.01516.75
7.3.120.0100.00614.67
7.2.330.0110.01316.56
7.2.320.0150.01216.46
7.2.310.0150.00916.78
7.2.300.0170.00316.91
7.2.290.0060.01516.53
7.2.80.0070.00416.80
7.2.60.0070.00716.77
7.2.00.0070.00719.50
7.1.200.0100.00615.91
7.1.100.0040.00818.39
7.1.70.0040.00417.34
7.1.60.0090.01219.40
7.1.50.0130.01316.85
7.1.00.0030.04722.51
7.0.200.0000.00816.68
7.0.140.0100.06722.18
7.0.80.0500.03720.08
7.0.70.0470.08019.91
7.0.60.0400.08720.03
7.0.50.0330.06320.45
7.0.40.0100.08020.18
7.0.30.0030.07019.95
7.0.20.0070.08720.05
7.0.10.0200.06320.07
7.0.00.0070.06720.07
5.6.280.0100.07021.15
5.6.230.0070.08020.86
5.6.220.0130.07320.83
5.6.210.0000.07720.90
5.6.200.0100.07721.30
5.6.190.0030.04321.30
5.6.180.0030.03721.21
5.6.170.0070.07721.33
5.6.160.0000.04021.20
5.6.150.0000.08321.22
5.6.140.0100.08321.21
5.6.130.0070.04721.33
5.6.120.0130.05721.27
5.6.110.0030.04721.26
5.6.100.0100.07021.33
5.6.90.0030.08321.25
5.6.80.0070.03720.72
5.6.70.0100.07720.59
5.6.60.0000.08020.68
5.6.50.0130.07320.68
5.6.40.0000.04320.70
5.6.30.0030.05720.64
5.6.20.0000.04720.65
5.6.10.0100.08020.71
5.6.00.0130.07320.63
5.5.370.0070.04320.63
5.5.360.0070.04320.81
5.5.350.0030.06720.59
5.5.340.0000.04721.16
5.5.330.0170.03021.13
5.5.320.0030.07321.10
5.5.310.0030.03721.01
5.5.300.0070.06321.03
5.5.290.0070.08321.17
5.5.280.0000.07021.17
5.5.270.0100.05721.04
5.5.260.0070.03321.14
5.5.250.0070.09020.89
5.5.240.0070.04320.56
5.5.230.0070.03320.54
5.5.220.0070.07020.45
5.5.210.0030.07320.56
5.5.200.0030.05320.44
5.5.190.0070.04020.49
5.5.180.0070.03320.54
5.5.160.0100.07020.43
5.5.150.0130.08320.53
5.5.140.0100.05320.25
5.5.130.0030.08320.45
5.5.120.0070.08720.52
5.5.110.0000.06020.50
5.5.100.0070.04020.31
5.5.90.0030.04020.32
5.5.80.0070.03720.35
5.5.70.0030.08720.41
5.5.60.0030.04320.22
5.5.50.0030.04020.40
5.5.40.0170.05020.29
5.5.30.0000.04720.19
5.5.20.0030.04320.34
5.5.10.0030.06020.27
5.5.00.0070.08020.24
5.4.450.0230.06319.51
5.4.440.0030.05019.61
5.4.430.0100.03719.57
5.4.420.0030.08719.75
5.4.410.0070.03019.57
5.4.400.0070.03019.21
5.4.390.0030.03319.43
5.4.380.0030.07319.07
5.4.370.0070.03019.22
5.4.360.0200.07019.25
5.4.350.0000.03719.21
5.4.340.0030.05319.29
5.4.320.0070.06319.28
5.4.310.0030.07719.29
5.4.300.0130.07019.39
5.4.290.0130.06719.22
5.4.280.0170.07319.29
5.4.270.0100.07719.27
5.4.260.0030.05319.30
5.4.250.0070.03719.25
5.4.240.0100.08019.17
5.4.230.0000.05319.27
5.4.220.0000.04319.20
5.4.210.0000.04319.16
5.4.200.0000.04719.20
5.4.190.0030.04319.24
5.4.180.0030.04719.20
5.4.170.0130.07019.06
5.4.160.0030.05319.24
5.4.150.0070.05719.19
5.4.140.0000.08016.67
5.4.130.0000.07716.64
5.4.120.0070.06316.46
5.4.110.0030.03016.70
5.4.100.0000.08316.62
5.4.90.0070.06016.51
5.4.80.0000.07316.56
5.4.70.0000.03316.61
5.4.60.0170.05316.71
5.4.50.0030.04016.54
5.4.40.0030.04016.59
5.4.30.0070.03716.51
5.4.20.0030.08016.56
5.4.10.0000.03316.48
5.4.00.0100.06716.09
5.3.290.0030.07314.64
5.3.280.0100.03314.64
5.3.270.0100.06714.54
5.3.260.0070.04014.56
5.3.250.0030.04314.53
5.3.240.0030.04714.66
5.3.230.0070.07314.71
5.3.220.0070.06714.63
5.3.210.0030.03714.60
5.3.200.0100.05314.63
5.3.190.0030.04014.54
5.3.180.0030.03714.55
5.3.170.0030.03314.50
5.3.160.0070.06014.54
5.3.150.0030.07014.67
5.3.140.0100.03314.54
5.3.130.0030.03314.61
5.3.120.0130.02314.48
5.3.110.0000.08714.66
5.3.100.0000.03314.11
5.3.90.0070.02714.09
5.3.80.0000.03314.12
5.3.70.0030.03014.03
5.3.60.0100.06714.12
5.3.50.0070.07713.93
5.3.40.0000.03313.93
5.3.30.0070.06013.88
5.3.20.0030.03013.63
5.3.10.0030.05313.59
5.3.00.0100.05013.53
5.2.170.0070.06012.34
5.2.160.0030.03712.34
5.2.150.0070.03712.34
5.2.140.0000.02712.34
5.2.130.0030.06712.34
5.2.120.0030.04312.34
5.2.110.0000.04712.34
5.2.100.0030.06712.34
5.2.90.0030.06012.34
5.2.80.0000.04312.34
5.2.70.0000.07012.34
5.2.60.0030.03712.34
5.2.50.0000.05312.34
5.2.40.0000.05312.34
5.2.30.0070.05312.34
5.2.20.0100.03312.34
5.2.10.0000.06012.34
5.2.00.0000.02712.34
5.1.60.0000.03712.34
5.1.50.0030.02712.34
5.1.40.0070.04312.34
5.1.30.0030.05712.34
5.1.20.0070.05312.34
5.1.10.0000.02312.34
5.1.00.0070.05712.34
5.0.50.0030.02012.34
5.0.40.0030.03012.34
5.0.30.0070.04712.34
5.0.20.0030.01712.34
5.0.10.0000.04312.34
5.0.00.0000.04712.34
4.4.90.0030.03312.34
4.4.80.0070.03012.34
4.4.70.0030.01712.34
4.4.60.0030.03012.34
4.4.50.0000.01312.34
4.4.40.0000.02012.34
4.4.30.0030.01312.34
4.4.20.0030.01312.34
4.4.10.0030.02012.34
4.4.00.0000.02712.34
4.3.110.0000.01712.34
4.3.100.0030.01312.34
4.3.90.0000.01312.34
4.3.80.0000.03012.34
4.3.70.0030.01012.34
4.3.60.0070.01712.34
4.3.50.0030.02712.34
4.3.40.0030.05312.34
4.3.30.0000.03012.34
4.3.20.0000.03712.34
4.3.10.0070.02312.34
4.3.00.0000.03712.34

preferences:
45.14 ms | 401 KiB | 5 Q