3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($str) { test2($str); } function test2($str) { test3($str); } function test3($str) { echo "before: ".round(memory_get_usage()/1024/1024, 2)." MB\n"; $t = microtime(true); debug_backtrace(false); echo "time: ".(microtime(true)-$t)." ms\n"; echo "after: ".round(memory_get_usage()/1024/1024, 2)." MB\n"; } test(str_repeat('a', 10000));

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)
7.4.00.0070.01114.89
7.3.120.0110.00614.83
7.3.110.0040.01414.84
7.3.100.0090.00614.75
7.3.90.0030.00914.70
7.3.80.0000.01514.96
7.3.70.0120.00414.78
7.3.60.0070.00714.57
7.3.50.0000.01014.88
7.3.40.0090.00614.96
7.3.30.0070.00314.64
7.3.20.0030.01016.50
7.3.10.0080.00616.68
7.3.00.0080.00616.58
7.2.250.0130.00315.12
7.2.240.0040.01515.03
7.2.230.0070.01015.21
7.2.220.0090.00614.67
7.2.210.0090.00615.21
7.2.200.0050.00815.09
7.2.190.0000.01115.20
7.2.180.0060.01015.16
7.2.170.0080.00415.02
7.2.130.0060.00616.87
7.2.120.0060.00616.78
7.2.110.0080.00316.86
7.2.100.0060.00516.79
7.2.90.0050.00716.72
7.2.80.0050.00916.71
7.2.70.0070.00916.86
7.2.60.0040.00916.87
7.2.50.0060.00716.80
7.2.40.0060.00716.74
7.2.30.0070.00816.72
7.2.20.0080.00916.81
7.2.10.0080.00816.67
7.2.00.0070.00817.63
7.1.330.0060.00915.89
7.1.320.0060.00915.80
7.1.310.0110.00315.89
7.1.300.0030.00715.79
7.1.290.0100.00315.56
7.1.280.0030.00615.43
7.1.270.0060.00315.78
7.1.260.0070.00315.71
7.1.250.0040.00915.68
7.1.70.0000.01017.23
7.1.60.0100.01019.30
7.1.50.0040.00716.71
7.1.00.0100.07022.30
7.0.200.0110.00714.93
7.0.140.0030.07322.00
7.0.120.0100.06322.13
7.0.60.0230.07719.84
7.0.50.0070.04717.89
7.0.40.0170.08020.23
7.0.30.0200.08320.09
7.0.20.0300.04720.05
7.0.10.0100.06020.06
7.0.00.0070.06020.19
5.6.280.0030.07321.13
5.6.210.0370.06020.69
5.6.200.0000.05018.28
5.6.190.0070.04320.68
5.6.180.0270.06320.54
5.6.170.0400.06720.61
5.6.160.0170.07720.68
5.6.150.0030.04718.18
5.6.140.0030.04018.16
5.6.130.0030.05718.15
5.6.120.0130.04321.05
5.6.110.0100.05721.03
5.6.100.0170.07321.01
5.6.90.0030.04721.12
5.6.80.0070.05020.39
5.5.350.0200.04020.33
5.5.340.0070.05717.95
5.5.330.0170.04320.21
5.5.320.0370.07020.27
5.5.310.0230.04320.23
5.5.300.0070.04018.08
5.5.290.0070.03717.99
5.5.280.0030.04720.99
5.5.270.0130.06020.87
5.5.260.0070.05721.00
5.5.250.0170.07720.72
5.5.240.0000.07720.26
5.4.450.3930.04019.59
5.4.440.0100.07719.32
5.4.430.1070.06019.45
5.4.420.4430.04019.27
5.4.410.4670.03319.41
5.4.400.3870.04319.13
5.4.390.3700.04319.06
5.4.380.3800.04019.10
5.4.370.3930.03318.96
5.4.360.3830.03718.93
5.4.350.3700.03319.13
5.4.340.4000.03719.26
5.4.320.3800.04019.10
5.4.310.4000.03719.10
5.4.300.3930.04019.14
5.4.290.3870.03719.23
5.4.280.3930.04319.12
5.4.270.3830.03718.97
5.4.260.3470.03719.22
5.4.250.3770.04019.09
5.4.240.3930.03719.09
5.4.230.4030.03318.92
5.4.220.0070.07019.12
5.4.210.0770.06719.05
5.4.200.3930.03319.09
5.4.190.3870.04019.09
5.4.180.3830.04019.24
5.4.170.3970.03719.30
5.4.160.3600.03719.29
5.4.150.3530.04019.09
5.4.140.3500.03016.44
5.4.130.2730.04016.45
5.4.120.3600.03716.34
5.4.110.0000.03716.57
5.4.100.3730.03316.59
5.4.90.3030.04016.63
5.4.80.3930.03016.37
5.4.70.4030.03716.59
5.4.60.3830.04016.57
5.4.50.3930.03016.24
5.4.40.3730.03716.66
5.4.30.3800.03716.46
5.4.20.3970.03716.24
5.4.10.4000.03716.60
5.4.00.3700.03315.75
5.3.290.3900.03714.72
5.3.280.1570.03714.73
5.3.270.3730.04014.74
5.3.260.3470.03714.66
5.3.250.3230.03314.73
5.3.240.3700.04014.64
5.3.230.3100.04014.64
5.3.220.0730.03714.75
5.3.210.0030.03714.70
5.3.200.0430.03314.61
5.3.190.3830.03014.61
5.3.180.3970.04014.68
5.3.170.3970.03314.62
5.3.160.4130.03014.67
5.3.150.3430.04714.61
5.3.140.3670.03314.67
5.3.130.3630.03014.59
5.3.120.4030.03714.57
5.3.110.3800.03314.60
5.3.100.3400.04014.19
5.3.90.4100.03714.05
5.3.80.3670.03314.15
5.3.70.3870.04014.07
5.3.60.3800.03713.94
5.3.50.3670.03314.05
5.3.40.4000.03713.96
5.3.30.3700.02713.92
5.3.20.3970.03713.66
5.3.10.5600.03313.77
5.3.00.3900.03713.68
5.2.170.3300.02711.25
5.2.160.3070.03011.37
5.2.150.3130.02711.41
5.2.140.3070.03311.26
5.2.130.3130.03011.22
5.2.120.3070.02711.22
5.2.110.3330.02711.35
5.2.100.3400.02311.28
5.2.90.3070.02711.30
5.2.80.3300.02711.20
5.2.70.3100.02311.25
5.2.60.3200.02311.21
5.2.50.3330.03011.29
5.2.40.2700.03311.09
5.2.30.2700.03311.09
5.2.20.2800.03011.09
5.2.10.2770.02711.05
5.2.00.2500.02310.80
5.1.60.2700.0239.94
5.1.50.2570.02710.07
5.1.40.2670.0239.97
5.1.30.2530.02310.36
5.1.20.2430.02710.38
5.1.10.2600.02310.05
5.1.00.2800.02010.13
5.0.50.1570.0208.60
5.0.40.1630.0208.41
5.0.30.1630.0338.18
5.0.20.1770.0178.28
5.0.10.1430.0208.21
5.0.00.1670.0338.21
4.4.90.1470.0178.18
4.4.80.1430.0138.18
4.4.70.1430.0208.18
4.4.60.1370.0178.18
4.4.50.1570.0138.18
4.4.40.1230.0208.18
4.4.30.1470.0138.18
4.4.20.1300.0178.18
4.4.10.1400.0178.18
4.4.00.1570.0278.18
4.3.110.1830.0178.18
4.3.100.1770.0178.18
4.3.90.1530.0138.18
4.3.80.1570.0308.18
4.3.70.1770.0108.18
4.3.60.1430.0178.18
4.3.50.1570.0108.18
4.3.40.1530.0208.18
4.3.30.0800.0178.18
4.3.20.0970.0238.18
4.3.10.0970.0208.18
4.3.00.0900.0208.18

preferences:
40.11 ms | 401 KiB | 5 Q