3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=''; for ($i=0; $i<128*1024; $i++) { $x .= str_repeat(' ', 1024); } echo memory_get_usage();

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.0440.03548.29
7.3.120.0560.03048.25
7.3.110.0580.02948.03
7.3.100.0450.01548.17
7.3.90.0410.03048.16
7.3.80.0390.02648.36
7.3.70.0270.03248.03
7.3.60.0430.01548.28
7.3.50.0370.02548.17
7.3.40.0360.02448.06
7.3.30.0260.03748.15
7.3.20.0320.02248.52
7.3.10.1040.02148.45
7.3.00.0690.01848.36
7.2.250.0440.02448.54
7.2.240.0500.03048.61
7.2.230.0420.02848.25
7.2.220.0410.02048.32
7.2.210.0290.03448.55
7.2.200.0400.02348.49
7.2.190.0320.02348.26
7.2.180.0400.02848.46
7.2.170.0400.02148.38
7.2.130.1160.02147.91
7.2.120.4320.01348.55
7.2.110.4820.02048.49
7.2.100.1280.01448.64
7.2.90.1750.01248.82
7.2.80.1180.01748.87
7.2.70.1100.02348.66
7.2.60.1100.01948.92
7.2.50.2180.01348.61
7.2.40.1570.02048.85
7.2.30.0980.02548.70
7.2.20.0890.02248.72
7.2.10.1680.01948.86
7.2.00.0600.01850.09
7.1.330.0240.02447.73
7.1.320.0290.02847.59
7.1.310.0300.02747.57
7.1.300.0360.02247.57
7.1.290.0440.02747.69
7.1.280.0280.03447.80
7.1.270.0300.02647.71
7.1.260.0260.02847.59
7.1.250.5630.02347.80
7.1.70.0130.02348.86
7.1.60.0170.01449.23
7.1.50.0210.01848.93
7.1.00.0200.03754.36
7.0.200.1000.02342.67
7.0.140.0170.08754.15
7.0.100.0330.09053.48
7.0.90.0330.07753.44
7.0.80.0200.05053.48
7.0.70.0230.04753.43
7.0.60.0500.04753.42
7.0.50.0230.04753.73
7.0.40.0200.05050.18
7.0.30.0230.05050.18
7.0.20.0900.06050.05
7.0.10.0230.05050.05
7.0.00.0170.05350.05
5.6.280.0300.09384.61
5.6.250.0430.09384.26
5.6.240.0230.07784.26
5.6.230.0170.06384.42
5.6.220.0300.04784.46
5.6.210.0200.05384.40
5.6.200.0230.07384.77
5.6.190.0370.05784.84
5.6.180.0230.05384.83
5.6.170.0230.06784.80
5.6.160.0300.06084.88
5.6.150.0270.05084.86
5.6.140.0200.06084.69
5.6.130.0270.05384.79
5.6.120.0270.07084.78
5.6.110.0130.07084.76
5.6.100.0230.06384.84
5.6.90.0100.10084.79
5.6.80.0170.06084.22
5.6.70.0400.07384.23
5.6.60.0170.06084.07
5.6.50.0300.05384.09
5.6.40.0330.08384.13
5.6.30.0470.09784.19
5.6.20.0430.11084.13
5.6.10.0370.09084.10
5.6.00.0430.08384.13
5.5.380.0330.10084.31
5.5.370.0170.06384.12
5.5.360.0200.06084.14
5.5.350.0200.05784.16
5.5.340.0100.08084.63
5.5.330.0300.04784.66
5.5.320.0270.06384.65
5.5.310.0270.05084.66
5.5.300.0230.09084.45
5.5.290.0270.05084.49
5.5.280.0270.04784.68
5.5.270.0200.06384.61
5.5.260.0200.06084.57
5.5.250.0200.08384.36
5.5.240.0270.10084.01
5.5.230.0200.05383.88
5.5.220.0370.09383.96
5.5.210.0370.09784.01
5.5.200.0270.12083.96
5.5.190.0200.10783.98
5.5.180.0430.08383.86
5.5.160.0300.07784.02
5.5.150.0300.09383.94
5.5.140.0330.08384.00
5.5.130.0330.11083.92
5.5.120.0330.09083.93
5.5.110.0400.09083.97
5.5.100.0200.08083.73
5.5.90.0230.07083.72
5.5.80.0370.05783.82
5.5.70.0270.08083.81
5.5.60.0430.09083.75
5.5.50.0400.08083.83
5.5.40.0500.08783.84
5.5.30.0130.06383.75
5.5.20.0230.05383.80
5.5.10.0370.05083.70
5.5.00.0130.13783.79
5.4.450.0200.05383.06
5.4.440.0130.09383.10
5.4.430.0130.06382.98
5.4.420.0230.05382.83
5.4.410.0200.06082.83
5.4.400.0300.08082.66
5.4.390.0230.09082.80
5.4.380.0330.08382.64
5.4.370.0200.07782.74
5.4.360.0230.11082.80
5.4.350.0270.09382.64
5.4.340.0470.09382.69
5.4.320.0430.10382.83
5.4.310.0300.08082.73
5.4.300.0300.06782.50
5.4.290.0300.07782.73
5.4.280.0330.06782.67
5.4.270.0200.07082.63
5.4.260.0270.06382.61
5.4.250.0400.09382.67
5.4.240.0430.08382.72
5.4.230.0200.07782.63
5.4.220.0400.05782.84
5.4.210.0430.10782.63
5.4.200.0270.09782.57
5.4.190.0370.05382.79
5.4.180.0230.10082.50
5.4.170.0370.06782.62
5.4.160.0270.09382.66
5.4.150.0300.10082.81
5.4.140.0230.09080.00
5.4.130.0230.08780.09
5.4.120.0300.04779.94
5.4.110.0330.09379.98
5.4.100.0270.07380.13
5.4.90.0200.09380.07
5.4.80.0400.07780.05
5.4.70.0300.05380.02
5.4.60.0330.09379.94
5.4.50.0270.05080.05
5.4.40.0270.10080.00
5.4.30.0270.09379.96
5.4.20.0300.10080.00
5.4.10.0370.10079.96
5.4.00.0400.09379.24
5.3.290.0300.10378.11
5.3.280.0170.06778.04
5.3.270.0130.07077.87
5.3.260.0200.09077.94
5.3.250.0300.09077.94
5.3.240.0330.09778.04
5.3.230.0300.10378.08
5.3.220.0330.05777.98
5.3.210.0300.07777.87
5.3.200.0370.09077.88
5.3.190.0270.11077.90
5.3.180.0230.10377.96
5.3.170.0300.09377.84
5.3.160.0330.09777.96
5.3.150.0330.05077.84
5.3.140.0230.10777.95
5.3.130.0500.08777.88
5.3.120.0370.09778.03
5.3.110.0230.07778.02
5.3.100.0470.08777.46
5.3.90.0270.07777.39
5.3.80.0370.10077.38
5.3.70.0330.09377.42
5.3.60.0370.10777.34
5.3.50.0400.09077.18
5.3.40.0370.06377.36
5.3.30.0100.12077.32
5.3.20.0100.11777.09
5.3.10.0370.10377.02
5.3.00.0370.05777.02
5.2.170.0300.09075.02
5.2.160.0230.08075.04
5.2.150.0470.08374.91
5.2.140.0300.09074.80
5.2.130.0270.09074.99
5.2.120.0230.10374.91
5.2.110.0400.04774.93
5.2.100.0200.10374.97
5.2.90.0370.09374.98
5.2.80.0270.10074.84
5.2.70.0270.09374.90
5.2.60.0300.09775.00
5.2.50.0330.09074.76
5.2.40.0300.08074.82
5.2.30.0370.09374.82
5.2.20.0370.07374.87
5.2.10.0570.06774.96
5.2.01.3470.61364.50
5.1.60.0400.073137.87
5.1.50.0600.097137.92
5.1.40.0330.107137.91
5.1.30.0570.073138.06
5.1.20.0470.120138.20
5.1.10.0530.100137.91
5.1.00.0600.100137.90
5.0.50.0400.090136.52
5.0.40.0600.117136.21
5.0.30.0770.060136.05
5.0.20.0700.130136.03
5.0.10.0630.130136.02
5.0.00.0630.140135.80
4.4.90.0770.117133.79
4.4.80.0730.097133.81
4.4.70.0600.080133.77
4.4.60.0530.130133.77
4.4.50.0500.123133.83
4.4.40.0670.133133.78
4.4.30.0630.097133.89
4.4.20.0530.077133.84
4.4.10.0470.140133.88
4.4.00.0470.123133.89
4.3.110.0830.107133.82
4.3.100.0730.120133.66
4.3.90.0470.087134.55
4.3.80.1030.090134.28
4.3.70.0830.120133.66
4.3.60.0530.087133.68
4.3.50.0330.087133.61
4.3.40.0730.103133.64
4.3.30.0530.123132.35
4.3.20.0630.113132.28
4.3.10.0500.093132.39
4.3.00.0570.093132.46

preferences:
40.22 ms | 401 KiB | 5 Q