3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ddd = str_repeat('a', 1024 * 1024 * 2 - memory_get_usage()); $pass = str_repeat('a', 1024 * 1024 * 9); $pass . $pass; __halt_compiler();

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.10.0210.01743.20
7.4.00.0310.01443.28
7.3.130.0270.02043.22
7.3.120.0270.01443.12
7.3.110.0300.01643.23
7.3.100.0210.01843.17
7.3.90.0220.01743.13
7.3.80.0250.01243.13
7.3.70.0130.02043.15
7.3.60.0200.01243.22
7.3.50.0210.01543.32
7.3.40.0170.01643.06
7.3.30.0220.00743.08
7.3.20.0110.00845.36
7.3.10.0060.01745.49
7.3.00.0080.01145.48
7.2.260.0220.02443.39
7.2.250.0300.01543.41
7.2.240.0190.01543.66
7.2.230.0200.02043.33
7.2.220.0190.01743.47
7.2.210.0200.01943.22
7.2.200.0160.01843.37
7.2.190.0220.01343.41
7.2.180.0180.01643.35
7.2.170.0210.01743.53
7.2.160.0160.02043.48
7.2.150.0090.01545.62
7.2.140.0100.01145.46
7.2.130.0100.01245.87
7.2.120.0090.00945.68
7.2.110.0150.01245.62
7.2.100.0090.01145.75
7.2.90.0130.00545.65
7.2.80.0160.01045.81
7.2.70.0050.01345.60
7.2.60.0080.01245.76
7.2.50.0060.01645.71
7.2.40.0070.01245.56
7.2.30.0080.01345.62
7.2.20.0090.01145.85
7.2.10.0100.01545.87
7.2.00.0140.01045.75
7.1.330.0070.01344.56
7.1.320.0180.01044.75
7.1.310.0070.01444.61
7.1.300.0110.01044.56
7.1.290.0100.01244.68
7.1.280.0150.00844.55
7.1.270.0110.00844.60
7.1.260.0060.01344.64
7.1.250.0030.01844.59
7.1.240.0080.01744.69
7.1.230.0120.00644.85
7.1.220.0120.00844.54
7.1.210.0060.00944.40
7.1.200.0180.00644.65
7.1.190.0090.01044.69
7.1.180.0110.00844.53
7.1.170.0070.01144.53
7.1.160.0090.01244.53
7.1.150.0090.01644.61
7.1.140.0130.00744.64
7.1.130.0100.01044.41
7.1.120.0060.01344.48
7.1.110.0120.01044.60
7.1.100.0130.00544.68
7.1.90.0130.01044.51
7.1.80.0120.00944.64
7.1.70.1390.01445.26
7.1.60.0100.01445.09
7.1.50.0100.01545.20
7.1.40.0110.00544.70
7.1.30.0140.00944.61
7.1.20.0020.02144.50
7.1.10.0110.00744.65
7.1.00.0080.02346.78
7.0.330.0060.01044.17
7.0.320.0070.01044.33
7.0.310.0110.00944.28
7.0.300.0030.01444.27
7.0.290.0090.01444.45
7.0.280.0060.01644.15
7.0.270.0090.01244.26
7.0.260.0120.00844.35
7.0.250.0100.00944.45
7.0.240.0090.01444.54
7.0.230.0060.01644.17
7.0.220.0070.01644.36
7.0.210.0140.00744.31
7.0.200.0160.00544.71
7.0.190.0120.00444.52
7.0.180.0090.01244.30
7.0.170.0140.00544.35
7.0.160.0110.01344.27
7.0.150.0120.00744.09
7.0.140.0090.03046.50
7.0.130.0050.01544.02
7.0.120.0080.01144.31
7.0.110.0120.00844.43
7.0.100.0120.00844.43
7.0.90.0060.00944.35
7.0.80.0140.00644.26
7.0.70.0100.01444.42
7.0.60.0100.03645.79
7.0.50.0160.03645.07
7.0.40.0080.02742.51
7.0.30.0260.02342.53
7.0.20.0330.02242.39
7.0.10.0300.02742.47
7.0.00.0110.02142.37
5.6.400.0230.01243.00
5.6.390.0230.00842.81
5.6.380.0150.01443.01
5.6.370.0220.01442.66
5.6.360.0150.01842.89
5.6.350.0230.01042.88
5.6.340.0170.01242.84
5.6.330.0140.01542.79
5.6.320.0190.01042.73
5.6.310.0210.01242.91
5.6.300.0170.01542.90
5.6.290.0170.01243.01
5.6.280.0170.01142.92
5.6.270.0170.01742.84
5.6.260.0220.01242.88
5.6.250.0150.01242.90
5.6.240.0210.00942.80
5.6.230.0240.01342.78
5.6.220.0190.01142.71
5.6.210.0240.03545.12
5.6.200.0230.02144.06
5.6.190.0170.02344.77
5.6.180.3240.02344.80
5.6.170.0440.03644.85
5.6.160.0230.03944.98
5.6.150.0220.03944.11
5.6.140.0200.03644.22
5.6.130.0120.03844.25
5.6.120.0190.03145.18
5.6.110.0180.03745.06
5.6.100.0180.03544.98
5.6.90.0190.03745.04
5.6.80.0190.03144.89
5.6.70.0300.03544.72
5.6.60.0190.01142.75
5.6.50.0210.01342.75
5.6.40.0210.00842.77
5.6.30.0270.00742.61
5.6.20.0230.01042.57
5.6.10.0180.01242.84
5.6.00.0210.01342.66
5.5.380.0210.01543.05
5.5.370.0170.01742.95
5.5.360.0130.01642.87
5.5.350.0270.02344.95
5.5.340.0130.03644.11
5.5.330.0210.04244.81
5.5.320.0330.02644.82
5.5.310.0330.02644.72
5.5.300.0150.04043.92
5.5.290.0150.03643.90
5.5.280.0270.03445.09
5.5.270.0210.02645.00
5.5.260.0170.02244.95
5.5.250.0150.03344.92
5.5.240.0210.03344.70
5.5.230.0160.01642.72
5.5.220.0140.01942.82
5.5.210.0170.01842.86
5.5.200.0280.00342.42
5.5.190.0170.01442.80
5.5.180.0190.01142.50
5.5.170.0250.01442.58
5.5.160.0200.02042.75
5.5.150.0220.00742.60
5.5.140.0190.01042.84
5.5.130.0290.00942.76
5.5.120.0250.01142.72
5.5.110.0180.01442.69
5.5.100.0170.01442.77
5.5.90.0160.01442.74
5.5.80.0200.01342.48
5.5.70.0190.01142.91
5.5.60.0180.01042.59
5.5.50.0140.01642.71
5.5.40.0220.01242.60
5.5.30.0160.01642.66
5.5.20.0180.01342.70
5.5.10.0210.01842.71
5.5.00.0250.01342.57
5.4.450.0750.02942.37
5.4.440.0290.02842.37
5.4.430.0650.02642.36
5.4.420.0890.02342.18
5.4.410.0900.02642.31
5.4.400.0410.03242.06
5.4.390.0540.02841.96
5.4.380.0360.02941.99
5.4.370.0280.02341.84
5.4.360.0240.02741.92
5.4.350.0220.02741.96
5.4.340.0220.03241.93
5.4.330.0170.01439.40
5.4.320.0180.02239.95
5.4.310.0140.02739.95
5.4.300.0140.02539.96
5.4.290.0190.02040.00
5.4.280.0210.02639.95
5.4.270.0170.02439.89
5.4.260.0170.03242.10
5.4.250.0230.02642.15
5.4.240.0200.02742.04
5.4.230.0200.02942.06
5.4.220.0280.02441.97
5.4.210.0170.03241.99
5.4.200.0210.03441.94
5.4.190.0270.02841.96
5.4.180.0220.03941.87
5.4.170.0240.02242.10
5.4.160.0210.02841.98
5.4.150.0230.02641.91
5.4.140.0190.02941.20
5.4.130.0190.03641.29
5.4.120.0210.03041.31
5.4.110.0200.03541.24
5.4.100.0230.03141.22
5.4.90.0240.02941.13
5.4.80.0230.03341.14
5.4.70.0170.02741.06
5.4.60.0210.02741.17
5.4.50.0210.02841.28
5.4.40.0210.03141.18
5.4.30.0180.03241.25
5.4.20.0190.03341.04
5.4.10.0240.02941.18
5.4.00.0220.02441.03
5.3.290.0130.02939.38
5.3.280.0160.02839.87
5.3.270.0240.03039.90
5.3.260.0200.03039.95
5.3.250.0200.03139.92
5.3.240.0210.02739.93
5.3.230.0170.03839.90
5.3.220.0230.03439.80
5.3.210.0160.03339.92
5.3.200.0270.02939.84
5.3.190.0230.02839.86
5.3.180.0160.03540.03
5.3.170.0170.03139.98
5.3.160.0250.03239.93
5.3.150.0280.02639.97
5.3.140.0240.02839.85
5.3.130.0230.02839.91
5.3.120.0180.03139.83
5.3.110.0240.02139.95
5.3.100.0250.02839.64
5.3.90.0230.03039.66
5.3.80.0220.03139.66
5.3.70.0220.03239.58
5.3.60.0250.02839.63
5.3.50.0230.02639.70
5.3.40.0190.03339.67
5.3.30.0190.02839.57
5.3.20.0240.02239.45
5.3.10.0210.02439.50
5.3.00.0170.03339.44
5.2.170.0200.05039.72
5.2.160.0270.06039.74
5.2.150.0330.05039.64
5.2.140.0200.04739.72
5.2.130.0230.04739.58
5.2.120.0230.05739.67
5.2.110.0270.05739.69
5.2.100.0170.06039.60
5.2.90.0230.05739.58
5.2.80.0270.04339.78
5.2.70.0270.05339.58
5.2.60.0230.04339.64
5.2.50.0200.06039.61
5.2.40.0230.04339.45
5.2.30.0270.05739.45
5.2.20.0300.04739.51
5.2.10.0170.06339.39
5.2.00.0000.04710.61
5.1.60.0030.0539.76
5.1.50.0030.04310.05
5.1.40.0000.0539.90
5.1.30.0100.03710.26
5.1.20.0100.04710.29
5.1.10.0030.04010.14
5.1.00.0030.04710.11
5.0.50.0030.0408.59
5.0.40.0100.0278.31
5.0.30.0070.0438.15
5.0.20.0170.0178.34
5.0.10.0070.0338.22
5.0.00.0030.0538.16
4.4.90.0000.0277.25
4.4.80.0030.0337.25
4.4.70.0070.0177.25
4.4.60.0030.0237.25
4.4.50.0030.0277.25
4.4.40.0030.0477.25
4.4.30.0200.0137.25
4.4.20.0030.0237.25
4.4.10.0030.0277.25
4.4.00.0000.0477.25
4.3.110.0030.0307.25
4.3.100.0000.0377.25
4.3.90.0070.0177.25
4.3.80.0000.0477.25
4.3.70.0100.0137.25
4.3.60.0070.0237.25
4.3.50.0000.0337.25
4.3.40.0000.0337.25
4.3.30.0030.0307.25
4.3.20.0030.0277.25
4.3.10.0000.0277.25
4.3.00.0170.0237.26

preferences:
34.4 ms | 401 KiB | 5 Q