3v4l.org

run code in 300+ PHP versions simultaneously
<?php $users = []; foreach ($users as $user) { echo "useradd $user usermod -aG sftp $user usermod -s /bin/false $user mkdir /etc/ssh/$user touch /etc/ssh/$user/authorised_keys chmod 0755 /home/$user chown root:$user /home/$user mkdir /home/$user/uploads chown $user:$user /home/$user/uploads\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.40.0100.00718.54
8.3.30.0100.00319.09
8.3.20.0040.00420.37
8.3.10.0030.00523.48
8.3.00.0080.00020.68
8.2.170.0110.00422.96
8.2.160.0070.01020.23
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00020.85
8.2.110.0060.00321.97
8.2.100.0130.00317.63
8.2.90.0040.00419.02
8.2.80.0050.00317.97
8.2.70.0000.00817.63
8.2.60.0080.00317.80
8.2.50.0060.00318.07
8.2.40.0040.00419.95
8.2.30.0000.01018.31
8.2.20.0000.00817.75
8.2.10.0040.00417.94
8.2.00.0000.00817.59
8.1.270.0040.00423.97
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.84
8.1.230.0110.00018.83
8.1.220.0030.00617.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0000.00817.00
8.1.180.0080.00018.10
8.1.170.0040.00418.64
8.1.160.0040.00422.01
8.1.150.0000.00718.51
8.1.140.0000.00717.36
8.1.130.0070.00017.82
8.1.120.0080.00017.48
8.1.110.0040.00417.51
8.1.100.0030.00417.48
8.1.90.0030.00517.41
8.1.80.0050.00317.41
8.1.70.0000.00717.41
8.1.60.0040.00417.55
8.1.50.0030.00517.48
8.1.40.0070.00017.47
8.1.30.0030.00617.67
8.1.20.0000.00817.58
8.1.10.0070.00017.35
8.1.00.0000.00717.35
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0040.00418.32
8.0.270.0030.00317.16
8.0.260.0060.00017.30
8.0.250.0030.00316.95
8.0.240.0000.00716.96
8.0.230.0000.00716.95
8.0.220.0000.00616.80
8.0.210.0100.00016.93
8.0.200.0030.00316.92
8.0.190.0000.00716.91
8.0.180.0000.00816.90
8.0.170.0040.00416.87
8.0.160.0070.00016.80
8.0.150.0040.00416.84
8.0.140.0070.00016.81
8.0.130.0000.00613.31
8.0.120.0000.00816.71
8.0.110.0000.00716.81
8.0.100.0000.00716.98
8.0.90.0000.00716.77
8.0.80.0040.01116.82
8.0.70.0050.00316.91
8.0.60.0000.00716.92
8.0.50.0000.00716.84
8.0.30.0080.01017.23
8.0.20.0140.00917.40
8.0.10.0040.00416.87
8.0.00.0110.00716.67
7.4.330.0060.00015.20
7.4.320.0040.00416.65
7.4.300.0000.00616.48
7.4.290.0090.00016.65
7.4.280.0040.00416.62
7.4.270.0040.00416.58
7.4.260.0000.00916.58
7.4.250.0040.00416.47
7.4.240.0030.00516.55
7.4.230.0070.00016.39
7.4.220.0150.01216.68
7.4.210.0060.00916.51
7.4.200.0000.00716.34
7.4.160.0130.00716.74
7.4.150.0120.00617.40
7.4.140.0140.00317.86
7.4.130.0100.00816.47
7.4.120.0100.00816.51
7.4.110.0060.01316.38
7.4.100.0110.01116.51
7.4.90.0090.00916.46
7.4.80.0100.01019.39
7.4.70.0070.01316.45
7.4.60.0130.00616.51
7.4.50.0040.00416.30
7.4.40.0030.01316.37
7.4.30.0080.00716.56
7.4.10.0100.00715.18
7.4.00.0090.00714.91
7.3.330.0000.00512.99
7.3.320.0030.00313.15
7.3.310.0030.00316.26
7.3.300.0070.00016.25
7.3.290.0070.00716.21
7.3.280.0130.00416.31
7.3.270.0100.00717.40
7.3.260.0090.01316.35
7.3.250.0140.00616.38
7.3.240.0130.01016.24
7.3.230.0060.00916.52
7.3.210.0030.01716.43
7.3.200.0130.00519.39
7.3.190.0170.00416.29
7.3.180.0080.00816.57
7.3.170.0030.01316.50
7.3.160.0090.00916.42
7.3.130.0030.01714.80
7.3.120.0080.00714.96
7.3.110.0120.00414.87
7.3.100.0060.00814.86
7.3.90.0080.00314.66
7.3.80.0050.00914.89
7.3.70.0060.00914.76
7.3.60.0030.00914.72
7.3.50.0000.01014.69
7.3.40.0080.00614.66
7.3.30.0060.00714.85
7.3.20.0050.00516.66
7.3.10.0070.00516.61
7.3.00.0090.00316.70
7.2.330.0100.00716.36
7.2.320.0130.00316.68
7.2.310.0060.01016.64
7.2.300.0090.00616.64
7.2.290.0130.00316.29
7.2.260.0040.00714.93
7.2.250.0130.00715.04
7.2.240.0100.00714.99
7.2.230.0070.00715.08
7.2.220.0050.01214.98
7.2.210.0030.00814.89
7.2.200.0070.00814.95
7.2.190.0020.01314.93
7.2.180.0000.01114.87
7.2.170.0020.00815.01
7.2.160.0070.00414.92
7.2.150.0030.01016.58
7.2.140.0060.00816.61
7.2.130.0090.00616.83
7.2.120.0100.00716.94
7.2.110.0040.00816.71
7.2.100.0060.00316.88
7.2.90.0070.01017.00
7.2.80.0100.00017.06
7.2.70.0050.00516.77
7.2.60.0030.01016.70
7.2.50.0060.01016.97
7.2.40.0000.01516.80
7.2.30.0040.00416.70
7.2.20.0030.01016.97
7.2.10.0030.01316.84
7.2.00.0050.00818.06
7.1.330.0020.01215.72
7.1.320.0050.00715.68
7.1.310.0050.00815.70
7.1.300.0060.00515.74
7.1.290.0040.00915.58
7.1.280.0020.01215.70
7.1.270.0030.00815.64
7.1.260.0050.00715.68
7.1.250.0030.01415.81
7.1.240.0090.00615.59
7.1.230.0030.01015.62
7.1.220.0080.00415.76
7.1.210.0110.00415.47
7.1.200.0030.00915.35
7.1.190.0000.01215.73
7.1.180.0040.00715.80
7.1.170.0070.00715.65
7.1.160.0000.01315.86
7.1.150.0060.00615.60
7.1.140.0090.00615.63
7.1.130.0100.00315.71
7.1.120.0040.00415.62
7.1.110.0070.00715.75
7.1.100.0030.01116.86
7.1.90.0090.00915.74
7.1.80.0100.00615.71
7.1.70.0040.00516.48
7.1.60.0020.01517.79
7.1.50.0070.00516.30
7.1.40.0070.01015.48
7.1.30.0110.00315.73
7.1.20.0070.00715.66
7.1.10.0040.00815.44
7.1.00.0050.02318.95
7.0.330.0030.01015.40
7.0.320.0040.00415.34
7.0.310.0090.00315.45
7.0.300.0030.01015.33
7.0.290.0000.00915.45
7.0.280.0070.00715.15
7.0.270.0000.01315.37
7.0.260.0030.00715.48
7.0.250.0040.00815.26
7.0.240.0110.00415.29
7.0.230.0040.01115.50
7.0.220.0070.00415.13
7.0.210.0030.01015.31
7.0.200.0030.00816.09
7.0.190.0030.01015.45
7.0.180.0030.00915.19
7.0.170.0080.00615.38
7.0.160.0000.00815.04
7.0.150.0060.00915.42
7.0.140.0000.04418.75
7.0.130.0000.01515.41
7.0.120.0050.00315.61
7.0.110.0000.01215.11
7.0.100.0030.00515.17
7.0.90.0040.00415.28
7.0.80.0090.00315.17
7.0.70.0050.00315.48
7.0.60.0070.04617.64
7.0.50.0070.02516.66
7.0.40.0070.02716.74
7.0.30.0180.04316.75
7.0.20.0170.04216.67
7.0.10.0040.04716.78
7.0.00.0070.02316.84
5.6.400.0000.01514.38
5.6.390.0040.00814.66
5.6.380.0060.00614.04
5.6.370.0000.00914.34
5.6.360.0030.01014.12
5.6.350.0000.00813.78
5.6.340.0060.00314.04
5.6.330.0100.00714.45
5.6.320.0090.00914.18
5.6.310.0000.01314.24
5.6.300.0000.01114.16
5.6.290.0070.00713.86
5.6.280.0030.04117.66
5.6.270.0000.00814.41
5.6.260.0030.01014.29
5.6.250.0030.01014.13
5.6.240.0000.01114.33
5.6.230.0030.01014.22
5.6.220.0040.00414.40
5.6.210.0070.04217.34
5.6.200.0040.04416.21
5.6.190.0070.04317.49
5.6.180.0100.02617.44
5.6.170.0190.03717.33
5.6.160.0020.02717.45
5.6.150.0070.04516.36
5.6.140.0050.02316.25
5.6.130.0150.03616.27
5.6.120.0120.04117.75
5.6.110.0040.04417.64
5.6.100.0080.04517.57
5.6.90.0130.02817.55
5.6.80.0020.05217.22
5.6.70.0030.00714.33
5.6.60.0030.01014.25
5.6.50.0030.01013.75
5.6.40.0060.00614.09
5.6.30.0060.00614.06
5.6.20.0030.00613.86
5.6.10.0060.00914.27
5.6.00.0070.00714.20
5.5.380.0060.00314.32
5.5.370.0060.00614.29
5.5.360.0080.00814.23
5.5.350.0080.03717.34
5.5.340.0080.02815.96
5.5.330.0110.04517.24
5.5.320.0260.03817.23
5.5.310.0130.03317.22
5.5.300.0050.04116.07
5.5.290.0080.03116.04
5.5.280.0100.04117.51
5.5.270.0050.03517.68
5.5.260.0120.03717.62
5.5.250.0020.04017.37
5.5.240.0220.03317.20
5.5.230.0100.00014.08
5.5.220.0030.01214.21
5.5.210.0040.00714.30
5.5.200.0120.00314.34
5.5.190.0000.01314.30
5.5.180.0080.00414.15
5.5.170.0030.01014.22
5.5.160.0040.00414.08
5.5.150.0090.00314.34
5.5.140.0000.01014.05
5.5.130.0060.00614.38
5.5.120.0000.01414.32
5.5.110.0000.01214.25
5.5.100.0040.01114.14
5.5.90.0040.00714.18
5.5.80.0060.00614.06
5.5.70.0060.00613.96
5.5.60.0030.01013.98
5.5.50.0100.00714.30
5.5.40.0060.00914.13
5.5.30.0070.00713.82
5.5.20.0070.00714.09
5.5.10.0060.00314.33
5.5.00.0120.00414.37
5.4.450.0450.03316.07
5.4.440.0410.03115.97
5.4.430.0480.02615.93
5.4.420.0350.00516.05
5.4.410.0050.03415.66
5.4.400.0070.03815.70
5.4.390.0200.03215.68
5.4.380.0170.04415.56
5.4.370.0070.02715.54
5.4.360.0080.02815.56
5.4.350.0060.02412.30
5.4.340.0050.02312.30
5.4.330.0000.00612.63
5.4.320.0030.02312.54
5.4.310.0040.03112.54
5.4.300.0050.02212.54
5.4.290.0050.02112.54
5.4.280.0090.01912.49
5.4.270.0070.01912.49
5.4.260.0080.02412.49
5.4.250.0030.02112.49
5.4.240.0020.02412.49
5.4.230.0050.02212.49
5.4.220.0040.02212.49
5.4.210.0080.02212.49
5.4.200.0060.02212.49
5.4.190.0080.01912.48
5.4.180.0060.02212.48
5.4.170.0040.02412.49
5.4.160.0080.02112.49
5.4.150.0040.02112.49
5.4.140.0070.02412.33
5.4.130.0070.02412.32
5.4.120.0060.02112.30
5.4.110.0050.02112.30
5.4.100.0060.02012.30
5.4.90.0040.02112.30
5.4.80.0050.02012.29
5.4.70.0020.02212.29
5.4.60.0040.02212.29
5.4.50.0030.02212.29
5.4.40.0060.02012.29
5.4.30.0080.02012.29
5.4.20.0060.02312.29
5.4.10.0050.02412.29
5.4.00.0060.02112.03
5.3.290.0040.02412.72
5.3.280.0060.02112.67
5.3.270.0040.02312.68
5.3.260.0090.02012.68
5.3.250.0060.02212.68
5.3.240.0060.02512.68
5.3.230.0030.02912.67
5.3.220.0050.02612.65
5.3.210.0030.02912.65
5.3.200.0060.02312.66
5.3.190.0070.01912.65
5.3.180.0080.02612.65
5.3.170.0090.02712.65
5.3.160.0030.03212.65
5.3.150.0070.02712.65
5.3.140.0040.03012.64
5.3.130.0080.02612.64
5.3.120.0020.03312.64
5.3.110.0090.02712.64
5.3.100.0080.01912.37
5.3.90.0090.01912.35
5.3.80.0060.02212.35
5.3.70.0040.02212.35
5.3.60.0100.01812.34
5.3.50.0040.02512.32
5.3.40.0080.02112.32
5.3.30.0040.02212.29
5.3.20.0060.02212.18
5.3.10.0030.02912.16
5.3.00.0060.02312.15
5.2.170.0060.0369.18
5.2.160.0060.0339.18
5.2.150.0060.0389.18
5.2.140.0080.0399.18
5.2.130.0090.0349.14
5.2.120.0040.0429.14
5.2.110.0070.0389.14
5.2.100.0070.0399.14
5.2.90.0090.0459.14
5.2.80.0040.0449.14
5.2.70.0060.0319.14
5.2.60.0070.0289.09
5.2.50.0030.0319.06
5.2.40.0040.0299.04
5.2.30.0050.0299.01
5.2.20.0090.0249.00
5.2.10.0060.0328.93
5.2.00.0030.0368.79
5.1.60.0070.0278.07
5.1.50.0050.0278.06
5.1.40.0040.0248.05
5.1.30.0010.0308.40
5.1.20.0030.0278.41
5.1.10.0030.0278.14
5.1.00.0050.0258.14
5.0.50.0040.0206.62
5.0.40.0020.0206.48
5.0.30.0020.0336.30
5.0.20.0050.0176.27
5.0.10.0010.0226.23
5.0.00.0020.0326.23
4.4.90.0020.0164.78
4.4.80.0020.0164.75
4.4.70.0020.0164.76
4.4.60.0020.0164.75
4.4.50.0040.0144.77
4.4.40.0050.0264.71
4.4.30.0060.0184.76
4.4.20.0010.0184.85
4.4.10.0030.0174.85
4.4.00.0020.0294.76
4.3.110.0030.0164.66
4.3.100.0040.0184.66
4.3.90.0040.0194.63
4.3.80.0030.0314.59
4.3.70.0010.0224.63
4.3.60.0030.0184.62
4.3.50.0010.0204.63
4.3.40.0040.0264.54
4.3.30.0030.0173.28
4.3.20.0010.0173.26
4.3.10.0030.0153.22
4.3.00.0200.0176.43

preferences:
46.09 ms | 400 KiB | 5 Q