3v4l.org

run code in 300+ PHP versions simultaneously
<?php static $log = ""; $log .= sprintf("--%s--\n", "foo"); print $log; ?>

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.0120.00618.43
8.3.50.0120.00922.11
8.3.40.0070.00718.57
8.3.30.0070.00718.93
8.3.20.0080.00020.21
8.3.10.0000.00820.39
8.3.00.0030.00717.38
8.2.180.0100.00716.63
8.2.170.0040.01122.96
8.2.160.0030.01020.35
8.2.150.0070.00024.18
8.2.140.0080.00324.66
8.2.130.0050.00326.16
8.2.120.0080.00021.92
8.2.110.0060.00322.24
8.2.100.0040.00717.72
8.2.90.0080.00019.09
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0040.00418.09
8.2.30.0000.00719.42
8.2.20.0080.00017.67
8.2.10.0000.00718.03
8.2.00.0040.00417.52
8.1.280.0100.00725.92
8.1.270.0080.00023.79
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0090.00023.82
8.1.230.0110.00019.15
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0070.00317.35
8.1.190.0080.00017.35
8.1.180.0000.00918.10
8.1.170.0030.00618.64
8.1.160.0000.00721.96
8.1.150.0000.00718.86
8.1.140.0030.00517.39
8.1.130.0070.00017.81
8.1.120.0000.00717.52
8.1.110.0040.00417.41
8.1.100.0040.00417.41
8.1.90.0000.00817.28
8.1.80.0000.00817.37
8.1.70.0030.00317.29
8.1.60.0060.00317.50
8.1.50.0050.00317.46
8.1.40.0050.00317.31
8.1.30.0040.00417.41
8.1.20.0050.00217.60
8.1.10.0040.00417.49
8.1.00.0080.00017.46
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0000.00718.35
8.0.270.0000.00717.17
8.0.260.0000.00617.24
8.0.250.0000.00716.95
8.0.240.0030.00716.90
8.0.230.0030.00316.83
8.0.220.0040.00416.77
8.0.210.0000.00816.81
8.0.200.0030.00316.88
8.0.190.0030.00516.95
8.0.180.0050.00316.91
8.0.170.0040.00416.88
8.0.160.0030.00317.00
8.0.150.0030.00516.81
8.0.140.0030.00316.82
8.0.130.0050.00013.29
8.0.120.0080.00016.83
8.0.110.0040.00416.89
8.0.100.0020.00516.74
8.0.90.0030.00516.76
8.0.80.0130.00716.88
8.0.70.0070.00016.70
8.0.60.0070.00016.89
8.0.50.0000.00716.91
8.0.30.0110.00817.06
8.0.20.0120.01017.40
8.0.10.0030.00517.04
8.0.00.0060.01316.70
7.4.330.0020.00215.00
7.4.320.0000.00716.32
7.4.300.0060.00016.54
7.4.290.0020.00516.32
7.4.280.0070.00416.53
7.4.270.0030.00316.45
7.4.260.0000.00616.46
7.4.250.0070.00016.41
7.4.240.0020.00616.47
7.4.230.0040.00416.46
7.4.220.0090.01816.41
7.4.210.0070.01116.46
7.4.200.0080.00016.62
7.4.160.0090.00916.57
7.4.150.0030.01617.40
7.4.140.0090.00817.86
7.4.130.0130.00316.50
7.4.120.0070.01016.37
7.4.110.0070.01016.48
7.4.100.0060.01216.50
7.4.90.0030.01516.40
7.4.80.0030.02019.39
7.4.70.0090.00916.31
7.4.60.0060.01216.36
7.4.50.0040.00416.58
7.4.40.0170.00716.36
7.4.30.0070.01016.27
7.4.00.0080.00714.83
7.3.330.0030.00313.04
7.3.320.0000.00513.19
7.3.310.0030.00316.34
7.3.300.0060.00016.18
7.3.290.0110.00716.20
7.3.280.0090.01116.22
7.3.270.0100.01417.40
7.3.260.0140.00316.53
7.3.250.0030.01416.29
7.3.240.0130.00316.20
7.3.230.0030.01516.39
7.3.210.0100.00716.11
7.3.200.0030.01419.39
7.3.190.0070.01016.54
7.3.180.0100.00616.56
7.3.170.0060.00916.41
7.3.160.0000.01516.25
7.3.120.0070.01114.78
7.3.110.0060.01014.74
7.3.100.0030.01314.98
7.3.90.0100.00314.83
7.3.80.0000.01314.84
7.3.70.0030.00714.81
7.3.60.0120.00314.82
7.3.50.0040.00414.72
7.3.40.0040.00814.78
7.3.30.0030.01014.48
7.3.20.0070.00316.71
7.3.10.0140.00016.52
7.3.00.0000.01016.66
7.2.330.0120.00616.18
7.2.320.0100.00916.50
7.2.310.0060.01316.71
7.2.300.0100.00716.61
7.2.290.0100.00716.63
7.2.250.0100.01014.83
7.2.240.0070.01315.00
7.2.230.0060.01015.06
7.2.220.0120.00315.13
7.2.210.0030.01014.70
7.2.200.0030.00914.83
7.2.190.0090.00315.06
7.2.180.0030.00914.78
7.2.170.0040.01114.75
7.2.00.0130.01019.30
7.1.330.0070.00715.70
7.1.320.0090.00615.52
7.1.310.0000.01615.80
7.1.300.0040.00415.71
7.1.290.0100.00715.80
7.1.280.0090.00315.68
7.1.270.0000.01115.41
7.1.260.0040.01215.42
7.1.200.0070.00515.78
7.1.100.0000.01218.03
7.1.70.0000.01017.15
7.1.60.0060.00919.61
7.1.50.0110.01134.75
7.1.00.0100.07322.39
7.0.200.0000.00816.63
7.0.140.0030.07321.99
7.0.60.0070.06719.93
7.0.50.0130.08017.66
7.0.40.0170.08020.24
7.0.30.0230.04020.20
7.0.20.0200.05320.17
7.0.10.0100.06720.19
7.0.00.0100.07020.16
5.6.280.0070.07021.09
5.6.210.0070.03720.60
5.6.200.0130.08018.21
5.6.190.0070.04020.45
5.6.180.0230.07320.64
5.6.170.0200.08320.62
5.6.160.0070.04020.32
5.6.150.0070.08018.22
5.6.140.0070.04018.11
5.6.130.0070.08018.16
5.6.120.0030.05721.13
5.6.110.0030.09321.08
5.6.100.0000.09321.00
5.6.90.0030.04320.97
5.6.80.0070.07020.35
5.6.70.3470.04020.52
5.5.350.0330.05720.39
5.5.340.0000.04317.98
5.5.330.0100.08020.25
5.5.320.0330.04020.22
5.5.310.0200.03720.32
5.5.300.0100.04317.88
5.5.290.0030.04317.98
5.5.280.0070.06020.74
5.5.270.0100.04320.66
5.5.260.0070.05320.78
5.5.250.0070.08320.57
5.5.240.0200.03020.14
5.4.450.0270.07019.41
5.4.440.0230.06019.13
5.4.430.0430.05019.45
5.4.420.0270.04319.41
5.4.410.0330.04019.41
5.4.400.0270.06019.08
5.4.390.0330.04019.25
5.4.380.0430.06719.26
5.4.370.0300.05019.17
5.4.360.0430.03719.24
5.4.350.0300.05319.16
5.4.340.0470.06718.90
5.4.320.0330.07719.08
5.4.310.0270.04019.08
5.4.300.0300.05018.91
5.4.290.0400.07019.15
5.4.280.0470.03318.94
5.4.270.0370.06319.09
5.4.260.0430.06019.08
5.4.250.0370.06718.78
5.4.240.0330.05318.76
5.4.230.0200.04319.08
5.4.220.0400.07018.78
5.4.210.0330.05319.25
5.4.200.0300.03319.07
5.4.190.0230.03719.05
5.4.180.0300.04318.87
5.4.170.0300.06019.15
5.4.160.0270.04018.91
5.4.150.0370.06719.09
5.4.140.0500.03716.18
5.4.130.0300.06716.44
5.4.120.0470.06016.27
5.4.110.0400.03016.41
5.4.100.0300.04316.43
5.4.90.0230.04316.48
5.4.80.0470.02716.41
5.4.70.0470.05716.32
5.4.60.0370.06316.37
5.4.50.0400.05316.17
5.4.40.0500.06716.38
5.4.30.0330.03316.39
5.4.20.0370.05316.36
5.4.10.0300.05316.16
5.4.00.0270.03715.90
5.3.290.0400.06014.72
5.3.280.0270.05314.43
5.3.270.0300.06314.57
5.3.260.0270.07714.43
5.3.250.0400.06714.51
5.3.240.0400.07014.64
5.3.230.0400.05014.54
5.3.220.0370.03714.52
5.3.210.0370.06714.54
5.3.200.0300.03314.42
5.3.190.0370.05314.54
5.3.180.0400.04014.60
5.3.170.0470.05714.41
5.3.160.0300.06314.49
5.3.150.0270.04314.54
5.3.140.0300.06714.48
5.3.130.0370.05014.42
5.3.120.0270.05314.59
5.3.110.0400.06714.49
5.3.100.0370.05713.96
5.3.90.0370.04013.88
5.3.80.0330.07013.79
5.3.70.0470.05313.96
5.3.60.0230.04013.95
5.3.50.0230.04013.92
5.3.40.0330.04013.88
5.3.30.0300.06313.84
5.3.20.0270.06313.78
5.3.10.0300.05313.49
5.3.00.0270.03713.61
5.2.170.0270.05711.08
5.2.160.0270.05311.20
5.2.150.0230.03311.04
5.2.140.0200.02710.98
5.2.130.0300.04711.11
5.2.120.0270.05710.95
5.2.110.0300.03311.16
5.2.100.0200.03010.99
5.2.90.0270.04310.95
5.2.80.0230.06011.25
5.2.70.0200.03010.93
5.2.60.0200.03710.98
5.2.50.0270.05010.85
5.2.40.0300.02311.03
5.2.30.0230.04010.98
5.2.20.0170.03011.11
5.2.10.0200.06710.96
5.2.00.0270.02710.86
5.1.60.0200.04010.15
5.1.50.0270.0209.86
5.1.40.0130.0309.91
5.1.30.0200.02310.45
5.1.20.0270.01710.50
5.1.10.0130.0439.95
5.1.00.0230.03310.00
5.0.50.0170.0438.48
5.0.40.0270.0338.49
5.0.30.0170.0338.19
5.0.20.0130.0178.25
5.0.10.0100.0208.31
5.0.00.0070.0338.03
4.4.90.0070.0237.77
4.4.80.0100.0337.77
4.4.70.0170.0177.77
4.4.60.0100.0277.77
4.4.50.0130.0177.77
4.4.40.0130.0477.77
4.4.30.0070.0177.77
4.4.20.0130.0137.77
4.4.10.0170.0277.77
4.4.00.0130.0277.77
4.3.110.0070.0307.77
4.3.100.0130.0177.77
4.3.90.0130.0137.77
4.3.80.0070.0277.77
4.3.70.0070.0177.77
4.3.60.0070.0177.77
4.3.50.0100.0137.77
4.3.40.0100.0277.77
4.3.30.0100.0237.77
4.3.20.0100.0337.77
4.3.10.0070.0137.77
4.3.00.0070.0177.77

preferences:
30.88 ms | 401 KiB | 5 Q